There is no option to select `From default settings` for sub-domains' PHP running mode

We would like all newly created virtual servers, including sub-servers, to run in FCGId (run as domain owner) mode. So going to Templates > PHP options and setting the Default PHP execution mode to FCGId (run as domain owner) works fine.

As for sub-servers we usually select From default settings for most of the settings, however there is no such option forSettings For Sub-Servers > PHP options. Unfortunately, manually setting it to FCGId (run as domain owner) doesn't change anything in /etc/webmin/virtual-server/config - and that's where we usually try to catch the difference to automatically fix this kind of inconsistencies.

So I'd like to request to make From default settings option for sub-domains' PHP options configuration page. Meanwhile, can you tell where exactly changing the PHP running mode for sub-servers sits?

Status: 
Active

Comments

Currently, if "From default settings" is set to "From default settings" on the "Apache website" template page, it will also effect PHP options (confusing, I know).

These are stored in the file /etc/webmin/virtual-server/templates/1

Currently, if "From default settings" is set to "From default settings" on the "Apache website" template page, it will also effect PHP options (confusing, I know).

It is indeed confusing, because whatever you choose on "Apache website" template page you still have PHP options page for subdomains with no warning for users anywhere their choices there won't have any effect. So either please try to remove that page or, if it is not possible, then at least add some warning text.

I'll look into fixing this ..

Jamie, have you ever considered completely ditching separate template for sub-servers? Just think: sub-servers only need specific settings for certain features, for example, they could have different suffixes for databases. But then it is quite possible to create a separate page for sub-servers on the main server template, instead of duplicating everything separately.

Generally it would simplify UI and scripts on your end and it would become possible to select any other template for subdomains (sub-servers), instead of spending so much efforts to tweaking separate template.

Yeah, at this point I'm not sure why they even need to exist. I'll look into ditching them, if I can find a clean way to migrate existing domains.

The original issue should be fixed in Virtualmin 6.02.