Forbidden - no permission to access
Posted by: FuzMic (---.static.tpgi.com.au)
Date: July 11, 2013 11:48AM

Hi gurus

Tried to install wamp2.22 on a new pc with vista, first it reported that msvcr.dll missing. After uninstall wamp then added msvcr.dll to system32, it can be installed with GREEN tray. But when try to access localhost, the follow error

Forbidden
You don't have permission to access / on this server

Nothing suspicious in apache-errorlog - append at bottom

The following is also done or checked but still don't work

1. Make sure c:\windows\system32\drivers\etc\hosts contains these 2 references
127.0.0.1 localhost
::1 localhost

2. Change this file c:\wamp\alias\phpmyadmin\phpmyadmin.conf

<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks ExecCGI ##multiviews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1 ##new
Allow from localhost ##new
</Directory>

HOWEVER localhost/localhost|phyMyAdmin runs fine

Please enlighten!




[Thu Jul 11 19:47:06 2013] [notice] Apache/2.2.22 (Win32) PHP/5.4.3 configured -- resuming normal operations
[Thu Jul 11 19:47:06 2013] [notice] Server built: May 13 2012 13:32:42
[Thu Jul 11 19:47:06 2013] [notice] Parent: Created child process 624
[Thu Jul 11 19:47:06 2013] [notice] Child 624: Child process is running
[Thu Jul 11 19:47:06 2013] [notice] Child 624: Acquired the start mutex.
[Thu Jul 11 19:47:06 2013] [notice] Child 624: Starting 64 worker threads.
[Thu Jul 11 19:47:06 2013] [notice] Child 624: Starting thread to listen on port 80.
[Thu Jul 11 19:47:06 2013] [notice] Child 624: Starting thread to listen on port 80.
[Thu Jul 11 19:47:13 2013] [error] [client ::1] client denied by server configuration: C:/wamp/www/



Edited 5 time(s). Last edit at 07/11/2013 12:14PM by FuzMic.

Options: ReplyQuote
Re: Forbidden - no permission to access
Posted by: RiggsFolly (---.as13285.net)
Date: July 11, 2013 06:54PM

Notice in the apache error log message it quotes ::1 ( this IPV6 version of localhost )

2 option,

1. Stop apache listening on IPV6 addresses by changing httpd.conf

Listen :80 to Listen 0.0.0.0:80

OR If you want to be able to use IPV6 ( ::1)

You will have to add the IPv6 address to who is allowed to access the site, in httpd.conf add Allow from ::1 in this directory tag

<Directory "d:/wamp/www/">

Allow from 127.0.0.1 // should already be there
Allow from ::1 // add this line

Options: ReplyQuote
Re: Forbidden - no permission to access
Posted by: FuzMic (---.static.tpgi.com.au)
Date: July 12, 2013 01:02AM

Chris thanks for your watch, of course it worked. My little knowledge with wamp came from reading your help to others, my quote above should be familiar to you. The use of apache_error.log file is also thru your leading. God Bless.

Options: ReplyQuote


Sorry, only registered users may post in this forum.