Thursday, February 21, 2013

Installing PhpMyAdmin in centos

yum install phpmyadmin

vi /etc/httpd/conf.d/phpMyAdmin.conf

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
Allow from 127.0.0.1
Allow from 50.16.104.91
</Directory>



Access url : http://ip/phpmyadmin , it will prompt for username/password. Enter your mysql root password.

While accessing the above url, you are getting this error in your apache error log

AH01630: client denied by server configuration: /usr/share/phpMyAdmin

Take a backup of your httpd.conf
Edit as follows

<Directory "/usr/share/phpMyAdmin">
    AllowOverride None
    Options None
    Require all granted
</Directory>
Restart httpd

No comments:

Post a Comment