Problem You want to isable PHP for certain Virtual Hosts in Apache. Analysis You should edit the configuration of your VirtualHost. Solution Adding php_value engine off anywhere in the <VirtualHost></VirtualHost> will indeed disable PHP. You should also have: AllowOveride None