- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] FC 4 apache installation trouble
- From: Michael Lake <Mike.Lake@xxxxxxxxxx>
- Date: Mon, 04 Jul 2005 17:41:02 +1000
- User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
pesoy misak wrote:
I just installed apache 2 that is shipped with FC 4
disc.
when i dropped a directory under the /var/www/html/xxx
when i access in the http://localhost/xxx
error 403 /xxx access denied
already changed permission also the error_logs said
that xxx directory is denied
The directory xxx must be able to be 'entered' by the web server for it
to read the contents.
So if the directory is say owned by root:root it will need permissions
like drwxr-xr-x so that 'others' i.e. apache can read and enter the
directory.
If the directory is owned by say root:www and apache runs as user www
then the directory permissions can be drwxr-xr--
A good way to see if apache can read the directory is to become root
then su to the owner that apache runs as. If apache runs as www then
# su - www
$
Now try and change directory and see if you are 'let in' when you cd xxx
Bet you aren't :-)
Mike
--
Michael Lake
Chemistry, Materials & Forensic Science, UTS
Ph: 9514 1725 Fx: 9514 1460
[pls ignore idiot lawyer's msg below]
--
UTS CRICOS Provider Code: 00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information. If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments. If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.