403 forbidden error
Posted by: taylor223 (---.zone3.bethere.co.uk)
Date: June 10, 2010 08:48PM

Having a bit of trouble accessing the localhost. phpmyadmin works fine but it comes up with a 403 when trying to access the local host. Any ideas what this might be?

Options: ReplyQuote
Re: 403 forbidden error
Posted by: yfastud (Moderator)
Date: June 10, 2010 10:16PM


Options: ReplyQuote
Re: 403 forbidden error
Posted by: taylor223 (---.cluster-a.websense.net)
Date: June 11, 2010 10:49AM

what does that mean?

Options: ReplyQuote
Re: 403 forbidden error
Posted by: lokoss (---.lancom.kiev.ua)
Date: June 11, 2010 11:45AM

You need to register it admittance to the desired IP like this:

Order deny,allow
Deny from all
Allow from your.ip.adr.here

or

Order deny,allow
Allow from all

or

remove. Htaccess file

Options: ReplyQuote
Re: 403 forbidden error
Posted by: taylor223 (---.zone3.bethere.co.uk)
Date: June 12, 2010 12:02PM

The order deny,allow thing didnt do anything.

I had a similar issue on vista a while back but I can't remember how fixed it. Probably the same issue on my new win7 install.

any other ideas?

Options: ReplyQuote
Re: 403 forbidden error
Posted by: taylor223 (---.zone3.bethere.co.uk)
Date: June 12, 2010 07:07PM

this is weird. Just loaded up XP that was working fine and I'm getting the same problem. Same machine, just swapped a HDD. Whay can't things just work!

Options: ReplyQuote
Re: 403 forbidden error
Posted by: taylor223 (---.zone3.bethere.co.uk)
Date: June 17, 2010 08:06PM

just had another go at this. Narrowed down the problem to the setup of a virtual host. I've got one virtual host setup that, when commented out in httpd, allows wamp to access localhost. When I take away the comments it comes up with the 403.

This is a windows 7 system so I don't know if the UAC has anything to do with it. I've run WAMP as admin but still ge tthe problem. Is there a perticular way of setting up virtual hosts in win7?

Options: ReplyQuote
Re: 403 forbidden error
Posted by: yfastud (Moderator)
Date: June 17, 2010 08:13PM


Options: ReplyQuote
Re: 403 forbidden error
Posted by: taylor223 (---.zone3.bethere.co.uk)
Date: June 17, 2010 10:49PM

I managed to get it going by doing the classic solution. Uninstall and start from scratch.

Only issue I have now is that when clicking localhost in the wamp menu it takes me to my vhost and not the usual wamp localhost page.

Probably something simple, any ideas?

Options: ReplyQuote
Re: 403 forbidden error
Posted by: chrise (91.85.197.---)
Date: July 15, 2010 05:28AM

Open services.msc and stop the following services:

Virtual Server
IIS Admin

I have Microsoft Virtual Server installed and I received the 401 error upon clicking Localhost on the WAMP menu. Since stopping the above services the problem has gone. I would have to keep stopping these services when I reboot until I remove Virtual Server.

Chris

Options: ReplyQuote
Re: 403 forbidden error
Posted by: yfastud (Moderator)
Date: July 15, 2010 05:04PM

IIS and Apache/Wamp are both web server and might conflict in some way, so you have to disable IIS in order for Wamp to work

Disable IIS in Vista/W7:

Control Panel, Uninstall Programs, Turn Widows Features On or Off, uncheck Internet Information Services

Disable IIS in XP:

Control Panel, Add/Remove Programs, Add/Remove Windows Components, uncheck Internet Information Services (IIS)

Restart computer, then restart Wamp

Also, in folder C:\WINDOWS\System32\drivers\etc, open file hosts and delete anything in this file and have only this line below and nothing else

127.0.0.1 localhost

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.