How do I disable PHP?

Debian9

But I could not figure out how to do it. I should do this by creating a virtual server after I have made the necessary edits in my server templates. Since I created my virtual server without ever touching my server templates, I would have to delete the php plugins from that virtual presentation using a custom method.

Status: 
Active

Comments

Howdy -- there unfortunately isn't a simple way to disable PHP, as all the Virtual Server templates are automatically setup to run PHP.

If you wish to disable PHP completely for a domain, you'd probably need to edit the Apache config file for that domain (in /etc/apache2/sites-enabled/domain.tld.conf), and comment out the lines containing any reference to "php".