Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All localhost pages via WAMP blocked?

I've been trying to fix a weird 403 Forbidden error I get when I try to go to one of my pages via WAMP on the localhost.

After adding a rule to open up port 80 via Windows Firewall, which apache uses, I notice that this does NOT fix my problem and instead gives me a 403 forbidden for ALL my pages via localhost.

Removing the rule I just made (which caused this to begin with) does not fix it. Disabling Windows Firewall does not fix it. Restarting my computer does not fix it. Any ideas?

EDIT2: I AM able to go to localhost/phpmyadmin for whatever that's worth.

EDIT3: The contents of my httpd.conf: http://www.mediafire.com/?p54a53443efkefs

like image 817
tnw Avatar asked Jun 09 '11 16:06

tnw


People also ask

Why localhost is not working in WAMP?

Right click on My Computer icon -> Properties Go to Device Manager Click on View menu and chooseShow hidden devices Now from the list choose Non-Plug and Play devices Double click HTTP -> go to Driver For Type choose Disabled Restart your computer After your computer boots up you should be able to start up WAMP server.

How can I access localhost in Wamp server?

To open up the localhost homepage, click the green “W” icon in your system tray and choose Localhost. You will be presented with the localhost homepage in a new browser window.

Why phpmyadmin is not working in WAMP?

Make sure that nothing else is using port 80. Look under options >> advanced >> connection and see if "use port 80" is checked. Uncheck if so. Then restart Skype. Might have to restart WAMP too.


3 Answers

In httpd.conf, find the following sections and ensure they are correct:

DocumentRoot "C:/wamp/www"

<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory C:/wamp/www>
    Options None
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Those are the settings that I am using in my install and they work fine. Make sure you restart Apache if you make any changes.

If you continue having issues, please update your original question with your httpd.conf.


Edit:

This is kludgey and I'm just grasping at straws here, but try adding a new entry to your vhosts:

<VirtualHost *:80>
    DocumentRoot "C:/wamp/www"
    ServerName localhost
</VirtualHost>
like image 188
Sean Walsh Avatar answered Oct 17 '22 00:10

Sean Walsh


It can be an ipv6 issue. So in your httpd.conf add your ipv6 local address:

Change:

Allow from 127.0.0.1

to:

Allow from 127.0.0.1
Allow from ::1:
like image 11
Tama Avatar answered Oct 17 '22 01:10

Tama


Try changing the line in httpd.conf

Allow from 127.0.0.1 

or

 Allow from all

Refer to the documentation

like image 6
Anirudh Ramanathan Avatar answered Oct 17 '22 01:10

Anirudh Ramanathan