How do I get these permissions working right so Apache can work with the files?

Posted by cosmicbdog on Server Fault See other posts from Server Fault or by cosmicbdog
Published on 2012-11-07T12:27:19Z Indexed on 2012/11/07 23:03 UTC
Read the original article Hit count: 152

Filed under:
|

I am having a go at setting up my own Apache and can't seem to get my head around the permissions.

Lets say I grab a file from somewhere off the web and it has permission of 600.

I then upload this file via ftp to a user directory, which is also an apache virtual site, and so this file retains this permission of 600. This means that the user can read this file, but Apache can't: it will be forbidden.

What is the most simple solution so that apache can read + write whatever files end up in the users directory? Can apache be granted some sort of root power over files in a directory?

© Server Fault or respective owner

Related posts about apache2

Related posts about centos