Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: sandypaul44 (---.7c.1343.static.theplanet.com)
Date: October 01, 2011 03:40PM

Please can someone help me.
I've just downloaded the new WAMP package and installed it with all the defaults.
When I type [localhost] to test the server it just gives me back the above error message.

I've tried to find the answer on forum's but no luck. I've not got IIS or Skype running.
Can someone explain in English for a newbie what I should do.

Thanks very much for your help.

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: stevenmartin99 (---.251.255.13.threembb.ie)
Date: October 01, 2011 03:42PM

Is the wamp icon green red or orange?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: sandypaul44 (109.169.49.---)
Date: October 01, 2011 03:45PM

Hi, the WAMP icon is green
Thanks

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: October 01, 2011 03:48PM

try http: //127.0.0.1

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: sandypaul44 (109.169.49.---)
Date: October 01, 2011 03:51PM

Hi,

Just tried [127.0.0.1] and it gives me the Wampserver Homepage with Server Configuration Details.
Thanks

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: October 01, 2011 03:58PM

try modifying your hosts files in

c:\windows\system32\drivers\etc\hosts


delete EVERYTHING from the file

and just write

127.0.0.1 localhost


and save it

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: sandypaul44 (109.169.49.---)
Date: October 01, 2011 04:08PM

Hi,

Tried to open file with Notepad and make changes but it said I don't have permission to change a file at this location. Contact the administrator to gain permission. but not sure what to do.

This is all that is in that file : seems like mainly comments but does have loalhost 127.0.0.1

#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
::1 localhost

127.0.0.1 localhost
127.0.0.1 localhost

Sorry
Thanks

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: October 01, 2011 04:26PM

move the file to your desktop.modify it.and move it back

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: sandypaul44 (109.169.49.---)
Date: October 01, 2011 04:37PM

Hi,

Thanks very much that worked.
I moved file over to desk top changed it and moved it back.
I then typed [localhost] and it came back with the Wamp Server Configuration page.
Then typed in [localhost] which was a test file I set up and it came back fine.
I assume that is where you put your PHP project files or is it somewhere else? (C://wamp/www)

Thanks very much it looks like you've solved it. Nice one.

Best wishes
Sandy

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: October 01, 2011 04:48PM

Yes thats it. c:\wamp\www
and access using http ://localhost/folder_or_file.....


you can also set up Vhosts to have a fake domain for each site you build or a real domain if you own it.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: sandypaul44 (109.169.49.---)
Date: October 01, 2011 04:49PM

Hi,

Just tried a file with the following code

<?

phpinfo();

?>

Opened the page in [localhost] but it did not give the tables showing php details.
Thanks

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: October 01, 2011 04:52PM

Use full tags

<?php ?>


Or left click wamp>php>php settings> short open tags

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: sandypaul44 (109.169.49.---)
Date: October 01, 2011 04:59PM

Hi,

Thanks very much again. I used the full tag like advised and guess what the tables appeared.
That's absolutely smashing,

Thanks very much for your time.
Sandy

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: yfastud (Moderator)
Date: October 05, 2011 05:08AM

Or enable short_open_tag through wamp tray icon winking smiley

Have fun,

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

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: Matres (---.speed.planet.nl)
Date: October 14, 2011 04:27PM

Hey great thanks for the tip of using 127.0.0.1 as well as changing the hosts file of windows. Works fine again! I had problems after updating to 2.2.

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: garetharm (197.168.67.---)
Date: October 20, 2011 11:11PM

Thanks StevenMartin99!!!! You're the man!!!

Now, if you could tell me how to sort my other issue out:

"The requested URL /phpmyadmin/error.php was not found on this server."

Please assist?

Thanks so much.

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: ballysoft (---.206.11.31.vgccl.net)
Date: October 28, 2011 03:48AM

Configure your PHP conf file

Options: ReplyQuote
Re: Error 403 "Forbidden You don't have permission to access / on this server"
Posted by: chlv1987 (---.hsd1.pa.comcast.net)
Date: February 18, 2012 09:20PM

Hi,
When I installed Wamp2.2 , I was able to open the localhost and everything was fine. But when i installed Tomcat parallely (http port different with Apache), and i tried to access localhost i am getting error 403 . But when i use localhost:8085 i am able to access tomcats site.

Kindly please tell what is the mistake?

Options: ReplyQuote


Sorry, only registered users may post in this forum.