Error on local WAMP installation : "You don't have permission to access / on this server"

Hi I get the following error  "You don't have permission to access / on this server" when i try to open localhost from WAMP menu.

Interestingly phpmyadmin is opening.

Any advice?
Who is Participating?
Kerem ERSOYConnect With a Mentor PresidentCommented:
Another porblem is :

You can not resolve the name:


it is not in your hosts file. For a request to be processes the browser at another system must be able to resolve the IP address of your apache server otherwise how would  you expect them to access your server ??

So your virtual host address must be pingable first.  
Kerem ERSOYPresidentCommented:

I guess I got it. Are you running Skype on your computer? If you're  running Skype it tends to bind to the 80 port so that apache would not be able to bind the port. Try to shutdown Skype and retry.

Kerem ERSOYPresidentCommented:
To diagnose port and connectivity problems launch a cmd session. Eexcute:
netstat -anb

It will show what program is listening to what port and PID number.
Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

make sure to add exception for wamp in all firewalls/antivirus and in your host file in folder c:/windows/system32/drivers/etc only contain this line localhost
young_buddhaAuthor Commented:
Hi Kereme,

thanks for replying. Skype is closed on my computer and  i ran the command u asked me, httpd.exe which belongs to apache is listenining to port 80 (

So that is not the problem i guess.

young_buddhaAuthor Commented:
hi yfastud

My hosts file has some extra info as follows localhost.localdomain localhost gaga.localhost.localdomain

I added localhost.localdomain gaga.localhost.localdomain

for a Multi User wordpress installation on WAMP, it was working fine after that though..i was tinkering around with some other files, maybe some thing went wrong  there..


I added "<VirtualHost *:80>
    ServerAdmin webmaster@gaga.localhost.localdomain
    DocumentRoot "/www/blog"
    ServerName www.gaga.localhost.localdomain
    ServerAlias gaga.localhost.localdomain

to httpd-vhosts.conf file, trying to get the subdomain to work for my wordpress installation, but subdomain didnt work.

At that point though i was not getting any error opening http://localhost.

young_buddhaAuthor Commented:

i get thuis entry in the error logs after i try to access http://localhost

[Wed May 27 23:20:48 2009] [error] [client] client denied by server configuration: C:/www

Kerem ERSOYPresidentCommented:

I guesswhat you should do is to edit your hosts file: localhost.localdomain
your.ip.address   (Is this to prevent adobe to verify adobe keys ;-))

No host name must resolve to localhost !!! This will cause serious errors !!!!

Then restart your apache but instead restart choose stop / start


Kerem ERSOYPresidentCommented:
You can add it to your hosts file duch as: localhost.localdomain

so that after you exit you can ping your host via

yfastudConnect With a Mentor Commented:
     "At that point though i was not getting any error opening http://localhost."
I assume you followed my suggestion and solved the problem stated in title so you should assign point and close this thread ;)
If using wampserver, suggest to follow this guide to setup (sub)domains; btw, if your domain is not real, ie. you didn't buy, try to avoid www in (sub)domains
if domain is real, you need to setup dns, follow this guide
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.