Submitted by jchatard on Mon, 05/27/2013 - 20:49
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
Submitted by JamieCameron on Mon, 05/27/2013 - 21:00 Comment #1
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.
Submitted by jchatard on Tue, 05/28/2013 - 19:06 Comment #2
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
Submitted by JamieCameron on Tue, 05/28/2013 - 19:17 Comment #3
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.
Submitted by jchatard on Wed, 05/29/2013 - 03:34 Comment #4
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