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
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.
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.
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.
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>
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:
Try changing the line in httpd.conf
Allow from 127.0.0.1
or
Allow from all
Refer to the documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With