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?
young_buddhaAsked:
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:
Hi,

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.

Cheers,
K.
0
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.
0
yfastudCommented:
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
127.0.0.1 localhost
0
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 (0.0.0.80)

So that is not the problem i guess.

regards
sidharth
0
young_buddhaAuthor Commented:
hi yfastud


My hosts file has some extra info as follows

127.0.0.1 localhost.localdomain
127.0.0.1 localhost
127.0.0.1 gaga.localhost.localdomain
127.0.0.1 activate.adobe.com


I added

127.0.0.1 localhost.localdomain
127.0.0.1 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
  </VirtualHost>
"


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.

regards
sid
0
young_buddhaAuthor Commented:
HI GUYS,

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

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


regards
sidharth
0
Kerem ERSOYPresidentCommented:
Hi,

I guesswhat you should do is to edit your hosts file:

127.0.0.1 localhost.localdomain
your.ip.address  gaga.domain.com

127.0.0.1 activate.adobe.com   (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


 


0
Kerem ERSOYPresidentCommented:
Another porblem is :

You can not resolve the name:

www.gaga.localhost.localdomain

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

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:

127.0.0.1 localhost.localdomain
your.ip.address  gaga.domain.com www.gaga.domain.com

so that after you exit you can ping your host via
ping www.gaga.domain.com


0
yfastudCommented:
Quote:
     "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
http://blog.jlbn.net/?p=23
if domain is real, you need to setup dns, follow this guide
http://blog.jlbn.net/?p=28
0
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
PHP

From novice to tech pro — start learning today.