I haven't used Apache much, but quite a while ago, I did set up a (trivial) 
web page to see how this worked. At the time, I had no real problems. Today, 
I tried to access that page and got a 403 error. 

Here's what I've tried so far.

1 - I looked for error messages and found the following 
in /var/log/httpsd/error_log: 

[Sun Jul 31 00:03:56 2005] [error] [client 10.200.1.1] (13)Permission denied: 
access to / failed because search permissions are missing on a component of 
the path
[Sun Jul 31 00:03:56 2005] [error] [client 10.200.1.1] (13)Permission denied: 
access to / failed because search permissions are missing on a component of 
the path
[Sun Jul 31 00:03:56 2005] [error] [client 10.200.1.1] (13)Permission denied: 
access to /favicon.ico failed because search permissions are missing on a 
component of the path
[Sun Jul 31 00:03:56 2005] [error] [client 10.200.1.1] (13)Permission denied: 
access to /favicon.ico failed because search permissions are missing on a 
component of the path

2 - I then tried apachectl (as root) and got:
[EMAIL PROTECTED] solomon]# apachectl extendedstatus
                                   Forbidden

   You don't have permission to access /server-status on this server.

#######################################
#######################################
                   Apache Server Status for shlomo1.solomon

   Server          Version:          Apache-AdvancedExtranetServer/1.3.31
   (Mandrakelinux/4mdk) mod_auth_external/2.1.18 mod_perl/1.29
   Server Built: Jul 13 2004 18:34:47

3 - the following was in /var/log/httpsd/error_log: 
[Sun Jul 31 00:05:53 2005] [error] [client 127.0.0.1] (13)Permission denied: 
access to /server-status failed because search permissions are missing on a 
component of the path

4 - I GOOGLED and learned it's a probably a permission problem. 

According to http://www.onlamp.com/pub/a/apache/2004/04/22/apacheckbk.html:  

<quote>
What "search permissions are missing on a component of the path" means is that 
somewhere in the directory path leading up to the file in question, there's a 
search (x) bit missing from one of the directories. You see, Apache needs to 
be able to look at files, the same as any other application does. And so it 
needs the search bit (x) set so that it can cd into a directory to get a look 
around.

For directories containing the web content, you need the read and execute 
permissions to be set. For a directory that Apache will just need to pass 
through on the way to a content directory, execute (search) permission is 
sufficient.
</quote>

But, as far as I can see, my permissions are set OK. 

The page is in the standard location as set up by the Apache installation:
[EMAIL PROTECTED] solomon]$ ls -la /var/www/html/index*
-rw-rw-r--  1 root root 1299 Jul 30 21:15 /var/www/html/index.shtml

favicon.ico is in the same location:
[EMAIL PROTECTED] solomon]$ ls -la /var/www/html/fav*
-rw-r--r--  1 root root 1406 Aug 26  2004 /var/www/html/favicon.ico


And here are the permissions of all the directories in the path:
[EMAIL PROTECTED] solomon]$ ls -lad /var/www/html
drwxr-xr-x  15 apache apache 720 Jul 31 00:07 /var/www/html/
[EMAIL PROTECTED] solomon]$ ls -lad /var/www
drwxr-xr-x  11 apache apache 272 Jan 23  2005 /var/www/
[EMAIL PROTECTED] solomon]$ ls -lad /var
drwxr-xr-x  27 root root 680 Jan 31 20:09 /var/


Any ideas what's wrong here?

TIA


-- 
Shlomo Solomon
http://the-solomons.net
Sent by KMail 1.7.1 (KDE 3.2.3) on LINUX Mandrake 10.1


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to