vijayjoshi.org - php | javascript | ajax | and all things web

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

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.

Most Commented Posts

Posted in : FAQ, Technology

29 Comments to “FAQ: How to fix error 403: access forbidden for phpmyadmin in wampserver?”

Add Comments (+)

  1. therood says:

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

  2. Julie says:

    didn’t fix the problem for me…

  3. Tejas Sali says:

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

  4. OMG IT WORKS says:

    THANK U SO MUTCH IT WORKS <)
    YEAAAAAA

  5. hi i would like to request for the solution that i have try for last 3 weeks,can u kindly give me the solution of not working phpmyadmin in wamp…

  6. Aasim says:

    its not working still giving same error i have version 2.0

  7. Vijay Joshi says:

    @aasim you need to restart apache after that.

  8. joey says:

    It works for me…
    thanks

  9. Pushkar says:

    If you have reinstalled WAMP, then check the first line of the file. The line may contain wrong folder name.

  10. Aruna says:

    its not working for me…… plz help me…….

  11. Mikoko says:

    Make sure you restart the wamp for the changes to take effect.

  12. Mikoko says:

    Make sure to restart wamp for the changes to take effect.

  13. Jayan says:

    Thank You…….. It works!!!!!!!!

  14. bbbbbb says:

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

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

  15. Bidhan Koirala says:

    Thanks a lot……….
    Finally I got the solution.

  16. Mathan raj says:

    Just delete the wamp folder completely then install the wamp server.

  17. Edgar says:

    Funcionó perfectamente. Gracias amigo!

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

  19. ciroleo says:

    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

  20. Arshad Talokar says:

    Thanx a lot it is a really easy and useful solution. It just help me in seconds.

  21. dho says:

    thank you ,
    it works for me ;)

  22. kapal says:

    whoooaaa…thnkz a alot dude!!!

  23. zodiak says:

    wont this give a privacy problem for hacks?

    “allow from all”

  24. Mike says:

    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~

  25. Tomasz says:

    It fixed my problem

  26. Farhan says:

    THanks workx, after changing file, and restaring apatch

  27. abel says:

    BILLION THANKS to u, let me back to my 2days left project
    GOD BLESS

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

55,801 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>