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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
pillarshadow
Forum Newbie
Posts: 2
Joined: Sun Feb 15, 2009 11:54 am

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

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

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

Post by Weirdan »

php-fpm allows running several php interpreters under different user accounts, there's also a method of running php under suexec.
pillarshadow
Forum Newbie
Posts: 2
Joined: Sun Feb 15, 2009 11:54 am

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

Post by pillarshadow »

Thank you for the suggestions. I'll see if these will work for me.
Post Reply