How to install PhpMyAdmin on Linux (CentOS)
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.
- Login as a root user or
# su - Move to your web directory
# cd /var/www/html - 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 -
Unzip and extract the files
# tar xvfz phpMyAdmin-3.2.4-english.tar.gz -
Rename the extrcted folder to phpmyadmin
# mv phpMyAdmin-3.2.4-english phpmyadm -
Move to the new folder
# cd phpmyadmin -
copy the smaple config and make a new conig file
# cp config.sample.inc.php config.inc.php - 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” -
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






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