How to install phpmyadmin on CentOs 5.3
This should work on any version of CentOs5 but I know for sure it works on 5.3
su -
To drop to a root shell
cd /var/www/html
This command changes our directory to /var/www/html The default web server directory.
With this command we are downloading the phpmyadmin tar file
tar -xvfz phpMyAdmin-2.11.9.6-english.tar.gz
Here are are un-taring the file to a directory
mv phpMyAdmin-2.11.9.5 phpmyadmin
In this step we are renaming the directory to something easier to navigate
cd phpmyadmin
Here we move into the phpmyadmin directory
cp config.sample.inc.php config.inc.php
We are copying the sample config file to something we can use. The default config.inc.php nano config.ing.php
I like to use nano for a command line editor but you can use vi or any other editor you prefer.
Only edit this one line
$cfg['Servers'][$i]['auth_type'] = ‘http‘; # From the default ‘cookies’
service httpd restart
Here we restart the web server service, this may not be needed but it never hurts Now you can log into: http://your.domain.com/phpmyadmin/ With your mysql credentials and see that it works.
Post a reply