How to install PhpMyAdmin on Linux (CentOS)

| One Comment

Usually I relay on AppServ when it comes to installing the web-server and its necessary components. Recently I found my “PhpMyAdmin” missing from the installation. I expected it to be a bit complicated but rather turned out to be very easy.

Here is how you can get it done.

  1. Login as a root user or

    # su
  2. Move to your web directory

    # cd /var/www/html
  3. Download the desired PhpMyAdmin package

    Choose either of the command depending on the version you server support. phpMyAdmin-2.11.3 is compatible with PHP 4+ and MySQL 3+ and phpMyAdmin-3.2.4 compatible with PHP 5 and MySQL 5.

    # wget -c http://prdownloads.sourceforge.net/phpmyadmin/
    phpMyAdmin-2.11.3-english.tar.gz?download


    # wget -c http://prdownloads.sourceforge.net/phpmyadmin/
    phpMyAdmin-3.2.4-english.tar.gz?download

  4. Unzip and extract the files
    # tar xvfz phpMyAdmin-3.2.4-english.tar.gz
  5. Rename the extrcted folder to phpmyadmin
    # mv phpMyAdmin-3.2.4-english phpmyadm
  6. Move to the new folder
    # cd phpmyadmin

  7. copy the smaple config and make a new conig file
    # cp config.sample.inc.php config.inc.php
  8. Edit the config.inc.php file

    # nano config.inc.php

    Go to the flilowing line and change to ‘http’

    ………
    $cfg['Servers'][$i]['auth_type'] = ‘http’; # default is cookies

    ……..
    To save the edited file press “Ctrl+o” and press “Enter” key

    To exit file press “Ctrl+x
  9. Restart the webserver
    # /etc/init.d/httpd restart

Now you can go to the url “www.yourserver.com/phpmyadmin”. You will get a popup authentication box. Enter the mysql username and password

One Response to How to install PhpMyAdmin on Linux (CentOS)

  1. Pingback: » How to install PhpMyAdmin on Linux (CentOS) @Blokeish.com | Just linux!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
Designed and developed by Alfie Punnoose @ Blokeish.com