Re: Can't get Apache httpd.conf permissions correct
- From: "Phil Latio" <phil.latio@xxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 01:26:06 GMT
Firstly don't run apache as a regular user, it's a security risk. Run it
as its own user, and ensure that this has no rights to damage anything in
the system, or as "nobody".
Ensure that the apache user has read access to all files it needs. This
includes having "execute" access to the directories containing them - I
suspect that this may be what you are missing. Normally this is done by
granting global read/execute access to the files in question. If you want
to do it using group access and not have the files globally readable
(although I can't think why you would want to, when they can be accessed
via the web server anyway) the files will have to belong to the "apache"
group.
Regards, Ian
Yep you hit the nail on the head. It made perfect sense when I read what
your solution.
I changed httpd.conf to:
User: apache
Group: apache
(apache has the shell of /sbin/nologin so that should be secure)
Then did:
chmod -R g=rx user1
chmod -R g=rx user2
All now works. Thanks very much.
Cheers
Phil
.
- References:
- Can't get Apache httpd.conf permissions correct
- From: Phil Latio
- Re: Can't get Apache httpd.conf permissions correct
- From: Ian Northeast
- Can't get Apache httpd.conf permissions correct
- Prev by Date: Re: files
- Next by Date: Re: British dictionary problem with latest Thunderbird
- Previous by thread: Re: Can't get Apache httpd.conf permissions correct
- Next by thread: Re: Can't get Apache httpd.conf permissions correct
- Index(es):
Relevant Pages
|
|