Solve the “Denied access” problem when using Wamp server 2 on Windows 8

After installing the Windows 8 Consumer Preview (I’ll post a article about its UX soon), I cannot access my localhost as well as all of my local web folders. For more specific, I met these error notice

Access denied on localhost when using Wamp server 2 on Windows 8

Access denied on localhost when using Wamp server 2 on Windows 8

Fortunately, I finally found the way to solve this problem (although I still don’t know why it happens now).

Quick fix on Apache httpd.conf and alias configuration files

First, open the httpd.conf file of your apache version by a text editor such as Notepad or Notepad++. It’s usually located at \wamp\bin\apache\<your apache version>\conf\httpd.conf or you can use the quick menu of Wamp manager to open it. Find these snippet before modify it:

Replace the Deny from all with Allow from all and save the file.We have not finished yet. Find another snippet:

Replace Deny from all with Allow from all again. The localhost runs correctly now.After do all above thing, I believe that you can locate to localhost and your local web project with your browser. However, if you navigate to http://localhost/phpmyadmin, you will continue getting the Forbidden error. The reason is you did not modify the alias configuration file to allow access from your localhost. Let open this file by using Wamp manager or finding it in \wamp\alias\phpmyadmin.conf, find this snippet

Change Allow from 127.0.0.1 to Allow from ::1 or you can do as above, change Deny from all into Allow from all. Now, that’s all.

See how I did it with a video

You can see this video on youtube to see how I solved this problems more clearly.

21 comments

  1. Pingback: Wamp Error 403 Forbidden Como Resolver - Blog Cursos7

  2. Gregg Phillips on

    Please allow me to add my sincere thanks to the chorus of others.

    Very, very much appreciated!

    Reply
  3. Rahul on

    Thanks for this brilliant tutorial. You really made my day. I was searching about it from last 2 hours and finally i got it here.thanks

    Reply
  4. sonam agarwal on

    i am getting ‘Error

    MySQL said: Documentation
    #1045 – Access denied for user ‘sonam’@’localhost’ (using password: YES)
    phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.’
    please help me.

    Reply
    • Trung-Hieu Le Post authoron

      This is not the problem of apache server. You should check the settings of your phpMyAdmin installation to be sure that you can log in your mySQL server with this authentication information.

      Reply
  5. phattlizzie on

    Thanks so much!! I was on the point of giving up. it was EASY AS PIE. Wamp is an invaluable tool in my arsenal and it cut out alot of the crap you have to experience online. Keep up the good work and God bless. Right now you are the most beautiful person in the world to me!

    Reply

Leave a Reply

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

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