Running SuPHP and mod_php on 1 server


Well-Known Member
Oct 9, 2002
Does anyone have experience running SuPHP and mod_php together?

I am thinking of installing SuPHP, but I have many sites that rely heavily on .htaccess files.
What I want to do is be able to switch off SuPHP on individual accounts. And eventually switch all the accounts over to SuPHP.

I found this article here that seems to do exactly what I want:

LoadModule suphp_module modules/
LoadModule php4_module modules/
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddHandler x-httpd-php .php
suPHP_Engine on
php_admin_flag engine off

Putting the above into your config will default to php pages being run by suPHP. To switch a virtual host over to mod_php, use the following.

<VirtualHost ..>
suPHP_Engine off
RemoveHandler .php
php_admin_flag engine on
Is anyone running a similar set up already?