September 28th in Linux/Unix by .

How to Fix: PHPMyAdmin 403 Forbidden Error

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.

Forbidden
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 127.0.0.1

Restart the apache server.

service httpd restart

Once this is done, you should be able to see phpmyadmin working by pointing your browser to http://ipaddress/phpmyadmin

This method worked for me and leave a comment here if there is an issue.

Similar Posts:

25 Comments

  • Craig
    November 4, 2008
    • Ashok
      September 28, 2010
  • Nu_be
    December 16, 2008
  • Daniel
    March 5, 2009
  • Aplz™
    August 2, 2009
  • venky
    October 2, 2009
  • ciberwing
    October 15, 2009
  • virtue
    November 2, 2009
  • Tanmoy
    November 8, 2009
  • vinod
    March 24, 2010
  • seemore
    May 8, 2010
  • Brian
    July 8, 2010
  • Victor
    September 7, 2010
  • Smelly
    September 22, 2010
  • Thamarai
    February 28, 2011
  • Narlax
    April 4, 2011
  • dAttitude
    April 9, 2011
  • zlass
    June 11, 2011
  • Remigio Hernández
    June 15, 2011
  • david
    October 13, 2011
  • sachin
    December 9, 2011
  • Christopher Thomas
    December 11, 2011
  • Usman
    December 15, 2011
  • Michele
    December 19, 2011
  • shappyking
    January 24, 2012

Leave A Comment.