ispCP - Board - Support
Apache Permissions - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Apache Permissions (/thread-2794.html)



Apache Permissions - lost108 - 03-20-2008 09:13 AM

Hello,

We are trying to change permissions on a certain directory so that it can be read/written to by all domains on the server.

Changing ownership of the directory to vu2000:www-data or www-data:www-data was our initial attempt at accomplishing this. However, it seems that unless the owner of the file is the uid assigned by ispCP to the domain, that domain will not be able to read the file / write to the directory.

How can we allow apache to read / write files across the server without making the directory world writeable?

Thank you for your help!


RE: Apache Permissions - joximu - 03-20-2008 10:09 AM

apache can read - and maybe write all which belongs to it's group www-data.
So far it's correct.

The big question is: is apache writing there or anything else?

If you want to write there using a php application then world writeable seems the only solution (and no mor risk than writable to all users...). PHP runs as userid:groupid of the domain user...

You also can switch back to the past and use mod-php instead of php fastcgi/suexec..