PHP Process Manager Mode "Default"

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version 2.111
Virtualmin version 7.10.0

I noticed recently that you can now configure the “PHP Process Manager Mode” for a domain via “PHP Options” page and API via “modify-web” command.

However, I cannot find a means to configure the “DEFAULT” mode for newly created Virtual Servers. I’ve searched through Server Templates, and Virtualmin Configuration but have not yet found the option.

If I’ve missed something, please let me know which page this can be setup on, otherwise I’d like to request that it be added to either Server Template or Virtualmin Configuration page related to PHP.

Cheers!

Hello Peter!

This is already possible by adding pm = static to the Additional PHP-FPM pool options textbox in the Edit Server Template / PHP options page.

@Jamie, while testing it, I discovered that saving the Edit Server Template → PHP options page for Nginx systems and setting the Default PHP execution mode to FCGI returns an obscure error message:

Failed to save server template : PHP scripts cannot be run as the domain owner unless the php command is installed on virtual-server/feature-web.pl (line 3303)

This was reproduced on Alma 9 and Debian 12 with LEMP install. It works just fine on LAMP systems.

That error seems legit to me - we can’t run in non-FPM modes without the CLI PHP command.

But this error doesn’t happen with Apache systems. Only with Nginx.

@Ilia,

Thanks, perhaps for future version the feature can be implemented the same way it appears on the “PHP Options” page. You know for a consistent experience.