Re: [Hampshire] Apache2 configuration

Top Page

Reply to this message
Author: Jim Kissel
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Apache2 configuration


john lewis wrote:
> On Mon, 02 Apr 2007 13:08:46 +0100
> Jim Kissel <jlk@???> wrote:
>
>> Check who "owns" ....jayell/public_html/exodus
>> It must be readable by user apache
>
> ls -al public_html
> total 12
> drwxr-xr-x 3 jayell jayell 4096 2007-03-31 15:57 .
> drwxr-xr-x 54 jayell jayell 4096 2007-04-02 12:58 ..
> drwxr-xr-x 6 jayell jayell 4096 2006-10-05 09:37 exodus
>
> jayell@benden:~/public_html$ ls -al exodus
> total 304
> drwxr-xr-x 6 jayell jayell 4096 2006-10-05 09:37 .
> drwxr-xr-x 3 jayell jayell 4096 2007-03-31 15:57 ..
> -rw-r--r-- 1 jayell users 1877 2006-10-13 06:09 changes.txt
> -rw-r--r-- 1 jayell users 2238 2006-09-07 08:43 citation_delete.php
> drwxr-xr-x 2 jayell users 4096 2006-10-12 15:30 ddl
> -rw-r--r-- 1 jayell users 6242 2006-10-04 08:26 default.css
> -rw-r--r-- 1 jayell users 4454 2006-09-14 09:15 descendants.php
> -rw-r--r-- 1 jayell users 10179 2006-09-07 08:43 Doxyfile
> -rw-r--r-- 1 jayell users 2732 2006-10-06 12:29 event_assoc.php
> -rw-r--r-- 1 jayell users 2105 2006-09-07 08:43 event_delete.php
> -rw-r--r-- 1 jayell users 3828 2006-09-14 11:30 event_insert.php
> -rw-r--r-- 1 jayell users 4279 2006-10-11 06:54 event_update.php
>


Directory permissions look ok. I don't know if you need a +x or not on
the PHP files.

>> Check your error log /var/log/apache2/error.log
>> and the access file access.log in the same directory to see if your
>> httpd request is being noticed.
>
> tail /var/log/apache2/error.log gives
>
> [Mon Apr 02 12:45:21 2007] [error] [client 127.0.0.1] Negotiation:
> discovered file(s) matching
> request: /home/jayell/public_html/exodus/exodus (None could be
> negotiated).


You tried http://hostname/exodus but the sub-directory exodus doesn't
exist. Put an index.html file in the exodus directory and try
http://hostname/index.html


>
> ditto for access.log
>
> 127.0.0.1 - - [02/Apr/2007:12:45:21 +0100] "GET /exodus HTTP/1.1" 404
> 278 "-" "Opera/9.10 (X11; Linux i686; U; en)"
>


--
Simple effective migration to Open Source based computing

Jim Kissel
Open Source Migrations Limited
w: http://www.osml.eu
e: jim.kissel@???
p: +44(0) 8703 301044
m: +44(0) 7976 411 679