Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I hosting websites for several clients who do not have shell access. How do I prevent these users from exploring the system using PHP? Right now, I'm using suphp to their code as themselves, but they can still view files in other users' home directories, etc.

share|improve this question

2 Answers 2

If you don't want to use chroot, you can set open_basedir and disable dangerous functions, such as system(), exec(), shell_exec(), passthru(), scandir(), popen() and proc_open()

share|improve this answer

Look into CHROOT

http://e.metaclarity.org/268/httpdsuexecchrootfastcgiphp/

The link provides detailed implementation instructions but basically, the goal is to execute php scripts in a jail or chroot

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.