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:

# First, we configure the "default" to be a very restrictive set of 
# features.  
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all

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

#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from

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 https://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

<Directory "c:/wamp/apps/phpmyadmin3.4.10.1/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
    Deny from all
    Allow from

Change Allow from 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.

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

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

    Very, very much appreciated!

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

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

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

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

  5. easy way is to just add

    Allow from ::1 (IPv6 address for localhost)

    and than you dont need to change Allow from all…

  6. thank you man … i wasted lots of time figuring out this simple problem … but you made it so easy ..

  7. Very good explanation , but still i have a problem ! ! ! ! … The problem is … i had Xammp on my system and without uninstalling it , i installed WAMP … So i check wamp the i uninstalled Xammp and tried to use wamp , but not working and it was always on orange colour icon on system tray … i did all these things that you said and still , not working ! don’t know what is the problem … can you tell me what should i do !?! 

  8. Upgraded Win7 to Win 10 and then spent hours trying to get my localhost to work again.
    tried heaps of crap fixes till I got to yours.
    Logical clear and Valuable!

Leave a Reply