Task: install phpMyAdmin on a Cen
tOS server that's running Apache.
1. Install
# yum install phpmyadmin
2. Configure
Go to /etc/httpd/conf.d and open the phpMyAdmin.conf file for editing.
Find this block:
<Directory /usr/share/phpMyAdmin/>
order deny,allow
deny from all
allow from 127.0.0.1
allow from ::1
</Directory>
Add the IP addresses from which access to phpMyAdmin will be allowed, after 127.0.0.1, separated by spaces (or with additional "allow from ..." commands).
If you want access from anywhere - bring the block to this form:
<Directory /usr/share/phpMyAdmin/>
order allow,deny
allow from all
</Directory>
That's it, save the file and restart the httpd server:
# /etc/init.d/httpd restart
Now you can access phpMyAdmin at:
<server_IP>/phpmyadmin
for example: http://192.168.0.1/phpmyadmin
Applies to: CentOS 5.6 + Apache 2.2.3
Comments