Re: apache document root on mounted drive on FC5



James Thorpe wrote:
Hi List,

I've got a mounted drive with several directories under it, all of which
can be properly accessed through samba. I'm now attempting to use one
of these as the apache document root, but whatever it tries to serve up
gives a 403 forbidden. Looking in the apache error_log, it seems that
apache itself doesn't have access to these folders. I've been playing
around with permissions to no avail, and SELinux is turned off. As soon
as I move the document root back to /var/www/html, it's fine again.

Any thoughts?

Thanks,
James.

What are the ownership/permissions of the directory tree? The
directories have to have to be both readable and searchable by the
user or group Apache is running as. (Usually user or group apache.)
If they are not owned by ether user or group apache, then they will
need to be world readable/searchable. The files only need to be
readable. This applies not only to the directories the files are in,
but the directory tree back to the root directory.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • apache document root on mounted drive on FC5
    ... I've got a mounted drive with several directories under it, all of which can be properly accessed through samba. ... I'm now attempting to use one of these as the apache document root, but whatever it tries to serve up gives a 403 forbidden. ... I've been playing around with permissions to no avail, and SELinux is turned off. ...
    (Fedora)
  • Re: How to get Apache to write files as group writable?
    ... >> Paul. ... > the group apache runs as from apache to www (or whatever group you ... using the SGID bit on a directory, the GID of newly-created files will ...
    (Fedora)
  • Re: permissions for www acting strangely
    ... have permisson to acess ~/. ... Now I restored some stuff from a backup over my photos, ... Look at your apache config file. ... Look for "User" and "Group" options - it tells you the user and group apache is running under. ...
    (freebsd-questions)
  • Re: change directory GID to -1
    ... > I want the group Apache is part of, to have some specific permission on ... You really sure the GID is -1? ... you can't set the gid of a file/directory to "-1", in setregid() a program ... You would be better off changing the Apache group to a new value that is NOT ...
    (alt.linux)
  • Re: need your help
    ... recently i found that my apache not starting and found that it was ... i found that there was a group apache when i say ... i changed in httpd.conf file the user to nobody n grp to nobody ... - their life, your story. ...
    (RedHat)