[CentOS] apache docroot permissions

Wed May 4 21:12:32 UTC 2011
Kenneth Porter <shiva at sewingwitch.com>

On Wednesday, May 04, 2011 10:49 PM +0200 Kai Schaetzl 
<maillists at conactive.com> wrote:

> b) have all php files owned by a user and the write area writable by
> apache  but owned by the user (*)

> (*) this doesn't work if you create subdirectories because they get the
> wrong  permissions and apache can't pass thru

Make the writable directories SGID and any files and subdirectories created 
there will inherit the group ownership: