This is a discussion on client denied by server configuration: C:/htdocs/test.php within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, While installing my Apache/PHP/MySQL system, and checking the php installation on XP, I got the following window: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
While installing my Apache/PHP/MySQL system, and checking the php installation on XP, I got the following window: Forbidden You don't have permission to access /test.php on this server. These are the last lines of my error.log: [Mon Jan 15 15:23:41 2007] [notice] Parent: Received restart signal -- Restarting the server. [Mon Jan 15 15:23:41 2007] [notice] Child 3984: Exit event signaled. Child process is ending. [Mon Jan 15 15:23:41 2007] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations [Mon Jan 15 15:23:41 2007] [notice] Server built: Jul 27 2006 16:49:49 [Mon Jan 15 15:23:41 2007] [notice] Parent: Created child process 808 [Mon Jan 15 15:23:41 2007] [notice] Child 808: Child process is running [Mon Jan 15 15:23:42 2007] [notice] Child 3984: Released the start mutex [Mon Jan 15 15:23:42 2007] [notice] Child 808: Acquired the start mutex. [Mon Jan 15 15:23:42 2007] [notice] Child 808: Starting 250 worker threads. [Mon Jan 15 15:23:43 2007] [notice] Child 3984: Waiting for 250 worker threads to exit. [Mon Jan 15 15:23:43 2007] [notice] Child 3984: All worker threads have exited. [Mon Jan 15 15:23:43 2007] [notice] Child 3984: Child process is exiting [Mon Jan 15 15:23:43 2007] [notice] Child 808: Starting thread to listen on port 8080. [Mon Jan 15 15:23:45 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/htdocs/test.php Due to the line [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured I conclude my PHP is configured. Correct? |
|
|||
|
Abel wrote:
> Hi, > > While installing my Apache/PHP/MySQL system, and checking the php > installation on XP, I got the following window: > > Forbidden > You don't have permission to access /test.php on this server. > I see in the FAQ (sorry for not looking) that "The underlying file system permissions do not allow the User/Group under which Apache is running to access the necessary files". That might be the case. Apache and hdocs are installed on a NTFS partition of my system. I'm using XP home, SP2. What magic do I need to perform to be allowed to view the pages of my webserver? Abel |
|
|||
|
Abel wrote: > Abel wrote: > > Hi, > > > > While installing my Apache/PHP/MySQL system, and checking the php > > installation on XP, I got the following window: > > > > Forbidden > > You don't have permission to access /test.php on this server. > > > > I see in the FAQ (sorry for not looking) that "The underlying file > system permissions do not allow the User/Group under which Apache is > running to access the necessary files". That might be the case. Apache > and hdocs are installed on a NTFS partition of my system. I'm using XP > home, SP2. What magic do I need to perform to be allowed to view the > pages of my webserver? > > Abel unless you did NOT create a user for apache to run under it will run as a system service if the default is followed "run as service start on system boot up" if you start it it will run as you, so group/user permissions are not the issue here if you did create a user for apache and set the logon rights in the services logon tab to run as this user, and then failed to allow the apache user rights to the folder you are asking it to serve the file from then it could well be a user permissions issue. far more likely (I am assuming you didnt create any such apache user) is that somewherein your httpd.conf you have an Allow,deny Deny from all for the directory the test.php is in, or you have some other setting such as the document root for the server slightly wrong. if you are not experienced just go grab the fresh httpd.conf file you obtained when you downloaded apache and start again, changing only one or two things at a time, and checkig the error logs for problems, reverting to a working copy each time, comment your changes as you go, and finally read the docs for all the directives you change if you are not TOTALLY sure about what they do. Else you could have the situation where everything is working but lets too MANY people in rather than too few. That happens alot. |
|
|||
|
shimmyshack wrote:
> far more likely (I am assuming you didnt create any such apache user) > is that somewherein your httpd.conf you have an > Allow,deny > Deny from all > That did it. I changed: DocumentRoot "C:/htdocs" but forgot to change <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> After changing my "<Directory" entry to "C:/htdocs" the world sees a lot more as it must. Thanks Abel |