Disable php again

Operating system:
OS version:

It seems that many users have requested to disable PHP on a site basis. Why is there not an option for this?

It’s great that Virtualmin has a heap of configuration options and support for a wide range of options, but it strikes me as curious that there’s no way to turn off PHP support on a site per site basis.

I’m building a new complex environment, but we don’t use PHP, just Ruby on Rails, so I don’t need the extra PHP cruft that’s added to every web site file, together with additional FPM or FCGI processes for every site just sitting there chewing up my server’s resources.

It would be really great if there were an additional PHP Mode such as “none” in addition to “fpm” and “fcgi” to just skip all the PHP configuration being generated.

Of course, my other concern is that it leaves open a potential security vulnerability. If someone manages to get a PHP file onto the site, then they’ve got access to the PHP interpreter, whereas normally I wouldn’t have to worry about this because PHP just wouldn’t exist.


I believe there is a PR that a user contributed that’s being reviewed that provides a none option for PHP. I don’t know if it will make it into Virtualmin soon, but it seems like more than one person wants it, and I can understand the reason for it (though I always fight adding complexity to the UI and every new option is just one more thing for people to be confused by, and we already have way too many options). So, I don’t see any reason not to add this one, but Jamie will likely make some changes to the PR and it may take a while longer to find its way into a release.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.