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

in your VirtualHost configuration to disallow the user to enable it.

Disable PHP for certain Virtual Hosts in Apache

Leave a Reply

Your email address will not be published. Required fields are marked *