configuring apache2

bill william at
Sat Jun 27 21:41:25 UTC 2009

John L Fjellstad wrote:
> bill <william at> writes:
>>> I have the permissions on all the files in the directory set to 664,
>>> and I am the owner and group.
>> My directory structure is:
>> /var/www/ContactManagement/login.php, which gets the 403.
>> If I move login.php to:
>> /var/www/login.php, it works just fine.
>> The permissions on ContactManagement are drwxrwxr-- 
>> and permissions on login are rw-rw-r-- (in both directories)
> drwxrwxr--
> means the directory ContactManagement (d means it's directory) has the
> permission 
> owner - read/write/execute
> group - read/write/execute
> other - read
> Since you said you are the owner and group of the directory, and apache
> runs as www-data, then apache won't be able to read whats inside the
> directory.
> With read access, you can only read a file, but a directory must be
> executable (be able to enter) to read the content of the directory.
Thank you very much, you were exactly correct - I forgot that 
directories need execute permission to open.

Bill Drescher
william {at} TechServSys {dot} com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list