yum install phpmyadmin forbidden error

April 12, 2010 by  
Filed under Linux Tutorials, MySQL

Comments Off

If you have installed phpMyAdmin in your linux server (centos/RHEL/debian), and tried to access phpMyAdmin in most cases you will get this 403 forbidden error. I have seen this issue very often if you are installing phpmyadmin using yum or by apt-get. By default phpmyadmin installed path is /usr/share/phpmyadmin and the apache configuration file is located in /etc/httpd/conf.d/phpmyadmin.conf.

You don't have permission to access /phpmyadmin/ on this server.

To fix:

nano /etc/httpd/conf.d/phpmyadmin.conf

Remove or comment the first two lines in bold.

#Order Allow,Deny
#Deny from all

Allow from

Restart the apache server.

service httpd restart

Once this is done, Point your browser to http://yourserveripaddress/phpmyadmin