Error accessing other groups files in apache

Posted by Shashank Jain on Server Fault See other posts from Server Fault or by Shashank Jain
Published on 2013-11-06T08:32:26Z Indexed on 2013/11/06 9:56 UTC
Read the original article Hit count: 276

Filed under:
|
|

I am using Cloud9 IDE on my server, which creates files with default permission 640. As a result when I try to open those file via HTTP, apache shows permission denied error.

When IDE is running as root user, files created belong to root:root. Also, when I see as what user is apache running, all its processes are shown to be running as root user.

I cannot understand why still it cannot access files. I know if I add apache's user to group of file owner, it will work. But, I don't know which user to add.

PS: I don't want to change permission of each file I create. I want less troubling solution.

© Server Fault or respective owner

Related posts about linux

Related posts about apache2