[aklug] Re: Apache file permissions

From: Richard Moore <dewey.moore@gmail.com>
Date: Sun Aug 24 2008 - 09:08:40 AKDT

Try changing the directory that the scripts are in to ownership and group
both being www-data with the command chown -R www-data:www-data <dir name>
Richard

On Thu, Aug 21, 2008 at 1:19 PM, Christopher Howard <choward@indicium.us>wrote:

> Thanks again for the help with apache. One more question though:
>
> I found another rather annoying difference between my actual website
> server and the virtual server I am setting up. In the actual site
> server, all my cgi scripts can create and modify files anywhere on the
> system that I tell them to (within the bounds of my share on the server,
> of course). And I can leave the permissions of all the files set to
> something like 755.
>
> However, in the virtual apache server (Ubuntu 7.10), it seems that, if I
> want a script to be able to write to a directory, I have to do two
> things: 1) change the permission of that directory to 777, and 2) give
> that directory ExecCGI permissions.
>
> Is this just the way Apache is? Or can I add some directive or
> something that will change this? It seems like a lot of bother to go
> through (changing all these directory permissions), especially as I'll
> have to remember to change them all back after mirroring them to the
> actual site.
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Aug 24 09:08:56 2008

This archive was generated by hypermail 2.1.8 : Sun Aug 24 2008 - 09:08:57 AKDT