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?
Comments
Submitted by JamieCameron on Sun, 10/01/2017 - 12:55 Comment #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).
These are stored in the file
/etc/webmin/virtual-server/templates/1
Submitted by yngens on Sun, 10/01/2017 - 13:13 Comment #2
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.
Submitted by JamieCameron on Mon, 10/02/2017 - 21:55 Comment #3
I'll look into fixing this ..
Submitted by yngens on Mon, 10/09/2017 - 16:36 Comment #4
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.
Submitted by JamieCameron on Mon, 10/09/2017 - 22:31 Comment #5
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.
Submitted by yngens on Sun, 12/03/2017 - 23:47 Comment #6
Any news on this?
Submitted by JamieCameron on Mon, 12/04/2017 - 21:49 Comment #7
The original issue should be fixed in Virtualmin 6.02.