Install phpmyadmin on centOS or Red Hat Enterprise Linux

Download and install the repository

# rpm -Uvh

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/

Edit httpd.conf to add phymyadmin directory

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

<Directory “/usr/share/phpmyadmin”>

    Order allow,deny

    Allow from all


Restart the httpd web service

# service httpd restart

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