Install phpMyAdmin in CentOS Server

Download latest version of phpMyAdmin from

cd /usr/local/src
tar zxvf phpMyAdmin-
mkdir /usr/hostonnet
ls -l /usr/hostonnet/phpmyadmin
mv phpMyAdmin- /usr/hostonnet/phpmyadmin
cp /usr/hostonnet/phpmyadmin/ /usr/hostonnet/phpmyadmin/

You need to edit /usr/hostonnet/phpmyadmin/ and set a random string for $cfg[‘blowfish_secret’]

vi /usr/hostonnet/phpmyadmin/

Now create apache configuration file

vi /etc/httpd/conf.d/phpmyadmin.conf

Add following to the file

Alias /phpmyadmin "/usr/hostonnet/phpmyadmin"

<Directory "/usr/hostonnet/phpmyadmin">
    AllowOverride All
    Options FollowSymlinks
    Order allow,deny
    Allow from all

Restart Apache web server

service httpd restart

Now you will be able to access phpMyAdmin by going to URL


Posted in Linux