Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I want PHP and other scripts to run as their own user when accessed from a web browser, is this the right way to configure apache?

./configure --enable-so --enable-deflate --enable-expires --enable-headers --enable-rewrite --with-included-apr --with-included-apr-util --enable-suexec --with-suexec-userdir=public_html --with-suexec-caller=httpd

share|improve this question
up vote 0 down vote accepted

Take a look at suphp. This might be better suited to what you want to do (especially for PHP). And yes, you would be better off installing the packages from your distribution.

share|improve this answer
SuPHP as I've read tends to be way slower then when using SuEXEc with FastCGI. – Tiffany Walker Apr 27 '12 at 14:26
It may be slower, but if that really matters depends on the number of requests you will have. Also note that suEXEC/FastCGI requires lots of RAM since you will have one PHP process per user running whereas with suphp PHP will be started on-demand. – Oliver Apr 27 '12 at 14:46

Are you trying to build apache from source? You don't need to do so. It will be enough to install it using the package manager of your distro. Then, you can install, enable, ans configure mod suexec.

share|improve this answer
Yes, I'm trying to build from source. It just feels like I have more control since I control flags and control over version I use and do not have to wait for it to be push to repos. – Tiffany Walker Apr 27 '12 at 14:26

Your Answer


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.