Install phpmyadmin on centOS or Red Hat Enterprise Linux

Download and install the repository

# rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

Install phpmyadmin using yum

# yum install phpmyadmin

By default you can access phpmyadmin from localhost. You need to add the IP address of the host.

Edit the file phpmyadmin.conf located at /etc/httpd/conf.d/phpmyadmin.conf

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

Add the host ip address in Allow from

Change the authentication from cookie to http

# vi /usr/share/phpmyadmin/config.inc.php

Edit httpd.conf to add phymyadmin directory

# vi /etc/httpd/conf/httpd.conf

<Directory “/usr/share/phpmyadmin”>

    Order allow,deny

    Allow from all

</Directory>

Restart the httpd web service

# service httpd restart

Access phpmyadmin from a browser with the URL http://ipaddress/phpmyadmin