Tuesday, 12 November 2013

phpMyAdmin on CentOS



Log into your command line and make sure you're in as root.

Go to your web directory

# cd /var/www/html/

Grab it down to your server

# wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.2/phpMyAdmin-4.0.2-all-languages.tar.gz

Unarchive

# tar -zxvf phpMyAdmin-4.0.2-all-languages.tar.gz

You'll end up with a directory /var/www/html/phpMyAdmin-4.0.2-all-languages so rename it

# mv phpMyAdmin-4.0.2-all-languages phpMyAdmin

Then change the permissions so Apache can execute.

# chmod -R 755 phpMyAdmin

Change directory and create a config file

# cd phpMyadmin

# mv config.sample.inc.php config.inc.php

Go in and edit anything if you need to, you probably won't.

Now you can go to http:///phpMyAdmin/index.php and log in.

If you are unable to log in, you might want to check if your php sessions are working OK. Check the php.ini file for session.save_path and make sure that path is writeable.

You can change your language on the login screen.


Share:

No comments:

Post a Comment