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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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

     "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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.