Page 1 of 1

Limiting PHP's read / write access to certain folders.

Posted: Sun Feb 15, 2009 11:58 am
by pillarshadow
Hello, this is my first post in this forum.

I am trying to create a shared hosting environment. I'm going to be putting multiple customers on the same server. I have different folders for each customer where they can put their htdocs. My question is this: Can I somehow limit php's access to other customer folders so they can't accidentally or purposely mess with each others files using php? Is there some way I can make an .htaccess file or something simple like that which allows php to run, just not accessing other folders. Thank you.

Re: Limiting PHP's read / write access to certain folders.

Posted: Sun Feb 15, 2009 12:24 pm
by Weirdan
php-fpm allows running several php interpreters under different user accounts, there's also a method of running php under suexec.

Re: Limiting PHP's read / write access to certain folders.

Posted: Mon Feb 16, 2009 10:41 am
by pillarshadow
Thank you for the suggestions. I'll see if these will work for me.