Prevent Virtulamin from starting PHP-CGI processes automatically

Hi guys!

Thanks this great software, it just rocks!

I have a question, I'm using Nginx along with PHP-FPM, and my Nginx virtual hosts are configured to connect to php5-fpm through a Unix socket.

But each time I create a new host, or my server reboots (I know this should happen, but sometimes it does), every single PHP-CGI services created by Virtualmin is restarted.

I'd like to disable that, how can I achieve this?

Thanks, Jérémy

Status: 
Closed (fixed)

Comments

So have you replaced the php-cgi scripts that Virtualmin launches with your own PHP-FPM server?

If so, you can go to Webmin -> System -> Bootup and Shutdown, select the actions that start up PHP scripts and click the button to disable them at boot time.

Not exactly, I manually edit hosts after they've been created by Virtualmin. I would like to be able to modify the script/template of the Virtual Host creation. But I can't figure out where this has to be done!

If you have any clue about this, that would be great!

Also when you actually create a new host, the generation process tells something like "creating/launching mydomain.php-cgi" script (could something else, I don't remember exactly), this would have to be avoided in a my PHP-FPM context.

Cheers, Jérémy

There is no way to change the default Nginx server template for new domains, sorry. Also, using PHP-FPM like this is currently completely un-supported in Virtualmin.

Ok, no worries :-)

I'll find my way through the code. I've already found where host configuration files are generated. And new hosts CGI services fired.

Thanks,

Best, Jérémy