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

    # wget -c

  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
  8. Edit the file

    # nano

    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 “”. 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) | Just linux!

Leave a Reply

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