Php – Apache 2.4 and SuExec configuration

apache-2.4httpdPHPsuexec

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

Best Answer

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.