yum -y install phpMyAdmin php-mysql php-mcrypt
vi /etc/httpd/conf.d/phpMyAdmin.conf
Change line 14 and add any IP address that you want to allow access to your phpmyadmin web page.
By default it will allow the local host: Allow from 127.0.0.1
You can add any computer on your domain: Allow from 127.0.0.1 10.0.0.0/24
This is assuming your domain IP address range is 10.0.0.0/24.
Alternatively, you can add access to any computer by changing the line to read: Allow from All
You should setup SSL access to your server if you are going to allow all.
Save the changes and restart httpd by typing:
sudo /etc/rc.d/init.d/httpd reload
or
sudo service httpd restart
Example of phpMyAdmin.conf file:
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</Directory>
# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
<Directory /usr/share/phpMyAdmin/setup/lib/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>
# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#<IfModule mod_security.c>
# <Directory /usr/share/phpMyAdmin/>
# SecRuleInheritance Off
# </Directory>
#</IfModule>
From: http://www.server-world.info/en/