You get a bonus - 1 coin for daily activity. Now you have 1 coin

Installing phpMyAdmin on CentOS (RedHat) and Apache

Practice



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

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)