Disabling php execution for a certain virtual domain is incredibly simple:
All you need to do is add:
php_value engine off
That could be anywhere in your VirtualHost directives.
Another possible approach is through enabling .htaccess for a domain, e.g.:
Adding:
AllowOverride All
to your domain of choice.
After which you had to put:
php_flag engine off to htaccess file
Now there you go! php scripts won’t execute anymore.
More helpful Articles
![Download PDF](https://www.pc-freak.net/blog/wp-content/plugins/wp-post-to-pdf/asset/images/pdf.png)
Tags: Disabling, execution, Virtualhost