PHP configuration variables for scripts - Where are the settings added?

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.3
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.8.2
Theme version 21.09.5
Package updates 32 package updates are available

PHP configuration variables for scripts is a confusing Server Template option.

  • Does anyone know where these settings are added?
  • Is this only for mod_php?

Maybe /usr/local/apache2/conf/httpd.conf? as per this forum thread PHP configuration variables for scripts cannot be 'none' [#777] | Virtualmin

thanks

No idea never used the function no need to as the defaults are good enough and with my granular approach I would just add a variable that is required by a virtual server rather than forcing it to all. Just question … why did you link to a post from 2006 ? The virtualmin module is very different from the version that was current in 2006. Maybe it’s just worth removing those options from the templates and do it per virtual server as and when required

The reason I linked to the old post, is that is all the information I could find on where these settings might be set. :smile:

Maybe it’s just worth removing those options from the templates and do it per virtual server as and when required

Removing them is probably best as I don’t think anyone uses them. PHP value defaults are the ones set on the global php.ini so do not need any templating here.

The help says what it does.

I guess if a script need like a minimum memory of 32M, you can add it here.

Not sure how it all works though. I’m sure the setting was added for a reason.

Isn’t that the next setting down. Thats says for scripts.

I would guess it would be added to the pool file on all the servers affected by the change

It says in the help that it applies to new virtual servers. Almost anything labeled “Template” in Virtualmin only applies to newly created Virtual Servers. It generally wouldn’t be safe to change existing config files.

found it /etc//webmin/virtual-server/templates/<template_id>

It says in the help that it applies to new virtual servers. Almost anything labeled “Template” in Virtualmin only applies to newly created Virtual Servers. It generally wouldn’t be safe to change existing config files.

problem with this is that we do not know what file/config is altered to be able to determine this. When are these values used. I cant work out if they are applied only when a 3rd party script is installed or when the virtual server is created.

For reference the most of the MariaDB settings page in the virtual template is used when a database is created, but it does have a couple of settings that are used when you create a new virtual server.

I am not after where the virtual template settings themselves are stored (but this is useful), but where the PHP configuration values are set and therefore used.

I believe this feature is supposed to inject PHP values into scripts that are installed via the Virtualmin Script Installers but does not seem to be used anymore. I have made a request to get it removed and have put more information on the post below.

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