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


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 is pretty clear – phpmyadmin is not configured to be accessed over a network. Permission to access it over network is not given.


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:

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.

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

  1. 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??

      1. Open “phpmyadmin.conf” file from below path (first locate your wamp installation. In our case, we have installed them in C drive)


        In that file, you will find two similar source code in which you need to edit small portion explain below. Make sure you edit both source codes.

        Find this Code

        Order Deny,Allow
        Deny from all
        Allow from

        And replace it with

        Order Deny,Allow
        Deny from all
        Allow from all

        onlly this thing change and you have done…

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

  3. 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.

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

  4. 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

  5. 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~

  6. 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!

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

  8. 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 localhost

    save and move back to the folder

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

  10. 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.

  11. 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
    # by
    # Order Allow,Deny
    # Allow from all

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

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

    Allow from
    and then changed
    Deny from all
    Allow from all

    Restarted and working now

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

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

  13. 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 :-)

  14. 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.

  15. Hi, I tried this solution it didnt work for me.

    I also tried uncommenting
    # localhost
    in the host file (windows/system32/drivers/etc)

    as per instuction of another website…

    can there be any other possible reason MyPhpAdmin is giving me a 403?

    Its really frustrating , i have tried everything ..maybe there is some small thing im overlooking.
    (although after every attempt I restarted wamp services, so it cant be where the problem lies)

Leave a Reply