Submitted by marcelorp on Thu, 10/04/2018 - 17:50
Hello!
I want to change the template for new servers on NGINX and PHP-FPM. I have changed the Nginx Config to sites work on PHP-FPM in Socket files, but when a new site is created, the pool continues listening on PORT, not in SOCK file like I want.
And other detail is about the template for NGINX configurate, for new servers, I want to make some changes in the default template.
Where I would to go?
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sat, 10/06/2018 - 18:09 Comment #1
We intentionally don't support socket files anymore, because the permissions issues around them are too difficult to resolve.
Submitted by marcelorp on Sun, 10/07/2018 - 10:10 Comment #2
I understand, but why don't just remove that option on Nginx Configuration?
And I never had any problem with sock files when using RealGecko plugin, but If you are telling me that is a problem...I will try to keep using listening on port.
And about the default configuration? Where I can change the template for Nginx and PHP-FPM? What file I have to change?
Submitted by JamieCameron on Wed, 10/10/2018 - 01:13 Comment #3
Good point, I will remove the "socket files" option.
Submitted by marcelorp on Wed, 10/10/2018 - 12:41 Comment #4
Thanks! And what about the how change the default confiration template for nginx and php-fpm?
Submitted by JamieCameron on Wed, 10/10/2018 - 23:18 Comment #5
This can be done to a limited degree - you can add directives, but not change those Virtualmin creates (because they are created programatically). This can be customized at System Settings -> Features and Plugins -> Config (next to Nginx).
Submitted by marcelorp on Thu, 10/11/2018 - 05:39 Comment #6