Modify main menu items

Discussion in 'General' started by ramoncio, May 17, 2007.

  1. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    Hi!
    I have been testing Elastix for some months and I think it is really nice.
    But I have added some programs that I like, mainly webmin, phpmyadmin and backuppc.
    They work great in my Elastix test server.
    BackupPC was some tricky to install, I had to change de default user backuppc for asterisk, and edit some config files, but finally got it working. Maybe if you are interested I can post a howto for BackupPC.
    Anyway, can you tell me which file/s should I modify to add some links to Elastix's main menu?
    Thanks in advance!
    I'm waiting anxiously to test 0.8 version. I hope it won't be released too late.
    Keep on doing this great work!!!<br><br>Post edited by: ramoncio, at: 2007/05/16 20:23
     
  2. lek

    lek Guest

    Dear Ramoncio,

    You need to add an entry to the /var/www/db/menu.db database. It's a SQLite 3 database.

    We are writing some Developer's documentation. We hope to finish this week.

    You can access some draft chapters here:

    http://www.elastix.org/index.php?option ... ers_manual

    At this moment there is only a spanish version ;)
     
  3. sapmanoy

    Joined:
    Jul 10, 2007
    Messages:
    4
    Likes Received:
    0
    ramoncio,

    could you please post the script/process how you install the webmin and phpmyadmin on elastix...
     
  4. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    Webmin is very easy:
    Code:
    wget http://puzzle.dl.sourceforge.net/sourceforge/webadmin/webmin-1.360-1.noarch.rpm
    rpm -ivh webmin-1.360-1.noarch.rpm
    
    And for phpmyadmin (nano installation is not needed, but I like it more than vi):
    Code:
    yum install nano
    wget http://surfnet.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.11.0-rc1-all-languages.tar.bz2
    tar xfjv phpMyAdmin-2.11.0-rc1-all-languages.tar.bz2
    cd phpMyAdmin-2.11.0-rc1-all-languages
    mv phpMyAdmin-2.11.0-rc1-all-languages /var/www/html/phpmyadmin
    cd /var/www/html/phpmyadmin
    cp config.sample.inc.php config.inc.php
    nano config.inc.php
    
    now you have to add this to the config.inf.php file:

    Code:
    $cfg['Servers'][$i]['user']          = 'root';
    $cfg['Servers'][$i]['password']      = 'eLaStIx.2oo7'; // Elastix's mysql password
    
    and you have to enter a blowfish_secret too for cookie auth in config.inc.php

    Then you can access your server in http://serverip/phpmyadmin

    I hope this helps you!
     
  5. bart

    Joined:
    Jun 21, 2007
    Messages:
    14
    Likes Received:
    0
    OK, Sorry... I'm a noob:

    "and you have to enter a blowfish_secret too for cookie auth in config.inc.php"

    Where is this info "blowfish_secret" on a new install?

    Bart
     
  6. tbberetin

    Joined:
    Aug 19, 2007
    Messages:
    11
    Likes Received:
    0
    I have the same problem. PHPMYAdmin should be part of a package.
     
  7. tbberetin

    Joined:
    Aug 19, 2007
    Messages:
    11
    Likes Received:
    0
    I have the same problem. PHPMYAdmin should be part of a package.
     
  8. tbberetin

    Joined:
    Aug 19, 2007
    Messages:
    11
    Likes Received:
    0
    I have the same problem. PHPMYAdmin should be part of a package.
     
  9. tbberetin

    Joined:
    Aug 19, 2007
    Messages:
    11
    Likes Received:
    0
    I don't know if anyone manage to do this but i did, and here is how.

    Here is the installation file, just run it from SSH
    1. rpm -ivh http://centos.karan.org/el4/misc/testin ... noarch.rpm

    this will install phpmyadmin and prompt with hyper link to access phpmyadmin within web browser.

    2. At this point you have to go to
    /usr/share/phpMyAdmin/config.inc.php

    use NANO or somethin similar to edit the file. Add blow fish code, root username and password and thats it.

    3.Blowfish can be found in /var/www/html/recordings/includes/main.conf.php

    open it with NANO and copy blow fish with it to your config.inc.php file.

    After this you will be able to access your php my admin on ttp://YOUR IP ADDRESS/phpMyAdmin/

    If you need to change privileges and add user you will need to do additional step in order to have it work.

    You will get this info if you go to privileges in phpmyadmin do this:

    Warning: Your privilege table structure seem to be older than this
    MySQL version!
    Please run the script mysql_fix_privilege_tables that should be
    included in your MySQL server distribution to solve this problem


    Use SSH to connect to you server,


    1. sudo -s
    2. mysql_fix_privilege_tables YOUR PASSWORD
    3. You Are Done

    Your Php My Admin is working just fine now.


    NOW AS WE ARE ALL FREAKS THAT LIKE TO HAVE THE NEWEST VERSION OF EVERYTHING TO UPDATE PHPMYADMIN DO THIS.

    This is how i did it ...

    go to this link to download newest phpmyadmin
    http://www.phpmyadmin.net/home_page/index.php

    1. Make a copy of your main.conf.php you where configuring previously.

    2. Delete all the other files from the directory
    /usr/share/phpMyAdmin/

    3. Uzip all the files download in ZIP package from phpmyadmin web page.

    4. Copy back your backup
    main.conf.php to the directory.

    At this point you should be able to access your new version of phpmyadmin as mentioned earlier.

    If needed repeat the script to fix your mysql table.
     
  10. cowboy47

    Joined:
    Jun 14, 2007
    Messages:
    276
    Likes Received:
    0
    I am very much interested in your scripts and modifications for the backuppc app. Could you please post them?

    I agree that phpMyAdmin & Webmin should be part of the package but they are not difficult to install. RTM (Read the Manual) the instructions are very clear.

    C
     
  11. cowboy47

    Joined:
    Jun 14, 2007
    Messages:
    276
    Likes Received:
    0
    I am very much interested in your scripts and modifications for the backuppc app. Could you please post them?

    I agree that phpMyAdmin & Webmin should be part of the package but they are not difficult to install. RTM (Read the Manual) the instructions are very clear.

    C
     
  12. tbberetin

    Joined:
    Aug 19, 2007
    Messages:
    11
    Likes Received:
    0
    Why does the forum post our posts more then onec when we reply?


    What manual?
     
  13. cowboy47

    Joined:
    Jun 14, 2007
    Messages:
    276
    Likes Received:
    0
    When you untar or unzip the archive, there is always a text file of either README, INSTALL or something. In the example of phpmyadmin, there is both a text & html documentation file which goes through a step by step instructions.
     

Share This Page