Subscribe via feed.

How to install phpmyadmin on CentOs 5.3

Posted by The Squad on October 28, 2009 – 12:17 pm

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.

wget  http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/2.11.9.6/phpMyAdmin-2.11.9.6-english.tar.gz/download

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.

Tags: , ,
This post is under “Tech” and has no respond so far.

Post a reply