Could php-fpm switch from ports to sockets?

OS type and version Debian 10
Virtualmin version 7.1-1

Is it possible somehow mysteriously for /etc/php/7.4/pool.d/www.conf to switch from listen = to listen = /run/php/php7.4-fpm.sock?

I thought I had set php-fpm to run using ports. I even have the nginx conf listening to that port.

However, it looks like things are running on sockets now (www.conf listen = /run/php/php7.4-fpm.sock).


I did notice In a recent fresh install sockets were set instead of ports…

Check “Virtualmin > Server Settings > Server Templates”

There’s a page dedicated to PHP settings.

*** Above would affect new domains only ***

Yes, correct. We switched to using sockets for PHP-FPM by default with Virtualmin 7. However, changing mentioned by Peter option on the templates will only affect newly created virtual servers.

If you need this to be applied to existing virtual server, you would have to toggle PHP execution mode away from PHP-FPM and then back (for the given, existing virtual server), as doing it will regenerate the configs and use defaults set on the templates.

1 Like

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