FAQ: How to fix error 403: access forbidden for phpmyadmin in wampserver?

UPDATE:

I am getting a large number of response that steps mentioned below are not working. It might be a firewall issue as well. Therefore, first and foremost, check that the port you are using for accessing phpmyadmin is not blocked by Windows firewall. Proceed below once you are sure of it.

The Problem:

PhpMyadmin works fine on localhost but accessing it over a network gives error 403: Access Forbidden.

Reason:

Reason is pretty clear – phpmyadmin is not configured to be accessed over a network. Permission to access it over network is not given.

Solution:

Locate the file phpmyadmin.conf in your wamp installation. If you have wampserver version 2 or higher, this file can be found at C:\wamp\alias\phpmyadmin.conf (Of course assuming that you installed wamp in C:\wamp). For earlier wamp versions this file is at C:\wamp\Apache2\conf\alias\phpmyadmin.conf.
Once found,open this file. Contents of the file will be like the following:

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.1.3.1/"
# to give access to phpmyadmin from outside
# replace the lines
#
#        Order Deny,Allow
#	Deny from all
#	Allow from 127.0.0.1
#
# by
#
#        Order Allow,Deny
#   Allow from all
#
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
	Deny from all
	Allow from 127.0.0.1

As it is clearly written in the file itself, replace the line Deny from all (second line from the bottom )with Allow from all. Save the file, restart apache and you are done.

PhpMyadmin can be accessed from outside now.

76 thoughts on “FAQ: How to fix error 403: access forbidden for phpmyadmin in wampserver?

  1. therood

    hi, i hope anybody can help. i’m going crazy, i tried the above code but i still can’t get into phpmyadmin? what should i then do??

    Reply
  2. Tejas Sali

    Thanks for the helpful content above it really helped me solve my lan alias issues as well as accessing phpmyadmin in a lan :-)

    Reply
  3. bbbbbb

    # Order Deny,Allow
    # Deny from
    # Allow from all

    my code..and it works..just restart all services after that..:D

    Reply
  4. Jason Hornbuckle

    For those whom it is not working: please make sure that the server is “online” also.

    To do this click your WAMP menu and look at the bottom. If it says “Put Online” then it is offline. Go ahead and click it.

    This, along with the changes above should allow access from the outside.

    Reply
    1. Eric

      Thank you. Been all over and changed the Deny from All to Allow but didn’t “Put Online”. That did it for me, thanks.

      Reply
  5. ciroleo

    no me ha funcionado hice todo lo que ustedes me recomendaron y nada sera que alguien podra tener la iniciativa de hacer un video tutorial en youtube, porque se que muchas personas les ustaria saber como hacer este procedimiento, gracias

    Reply
  6. Mike

    yeah,the fast solution is as this,learning from upside as well as my practice:
    1st.search for httpd.conf under the install path,get C:\wamp\bin\apache\Apache2.2.21\conf;
    2st.search for key word “Deny” and change it to “Allow”;
    3st.Now restart all services,and you must have seen the problem been solved,enjoy~

    Reply
  7. Richard

    Perfect – Changing all those “Deny from all” to “Allow from all” did the trick, had me baffled for a while.

    Personally I’d like to know why it changed because it was working fine yesterday but not today.

    Many thanks!

    Reply
  8. Ryan

    Make sure your not changing the top “Deny from all” its the one at the bottom that needs to change

    Reply
  9. desaputra

    you need to open c:\windows\system32\drivers\etc\

    move the file called hosts to your desktop

    open it with an editor and delete EVERYTHING in the file,

    then just add one line

    127.0.0.1 localhost

    save and move back to the folder

    Reply
  10. Ivan

    Just go to C:\wamp\alias\phpmyadmin.conf, change to “Allow All” and then “Restart all services” in the wamp server icon. Fixed!

    Reply
  11. will

    I have been radign for days. Crazy, but this simple fix took care of my issue. I can even reach the server over the network.

    Reply
  12. Muhammad Ali

    Alias /phpmyadmin “e:/wamp/apps/phpmyadmin3.4.5/”

    # to give access to phpmyadmin from outside
    # replace the lines
    #
    # Order Deny,Allow
    # Deny from all
    # Allow from 127.0.0.1
    #
    # by
    #
    # Order Allow,Deny
    # Allow from all
    #

    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    Allow from all
    Allow from 127.0.0.1

    i have changed the second line from bottom the way is from bottom to top

    Allow from 127.0.0.1
    and then changed
    Deny from all
    with
    Allow from all

    Restarted and working now

    thanks vijayjoshi.org to taught me a good lesson :)

    Reply
  13. Madhusree Datta

    Thanx for the help..! it did work..!!
    For whom it didn’t at the 1st go…….make sure u restart the Wampserver…

    Reply
  14. mounika

    Hi tnk u somuch ,now my problem is solved just i follow the same file instuctions . now phpmyadmin is working fine tnk u tnk u :-)

    Reply
  15. Vitor

    Hello guys, I went through the same problem and have the solution:
      You click with the right mouse button on the icon and it accesses the way Apache / Alias ​​Directore / http :/ / localhost / phpMyAdmin / Edit. Htacess

      You will click and it will open, it will create a report that will. Htacess, give after you open you can put a # and save it will stop the problem, it was the lack of. Htacess that was giving error Perm.

    Reply

Leave a Reply