Package: php7.4-fpm
Version: 7.4.10-1

In the php*-fpm packages, there's an apache snippet (eg,
/etc/apache2/conf-available/php7.4-fpm.conf) that tells apache where the fpm's
unix socket is. This is useful because the default sock has a name like
'php7.4-fpm.sock', and when upgrading to the next major php version the
httpd's configuration will break.

Unfortunately, there's no similar file for nginx. On redhat, their php-fpm package sticks a config file into /etc/nginx/conf.d/php-fpm.conf that contains the following (note that the path may be edited, as I'm taking this from a live
server):


upstream php-fpm {
       server unix:/var/run/php-fpm/www.sock;
}


They also do some /etc/alternative stuff with php-fpm.conf being a symlink to php-fpm.conf-7.3, but that seems unnecessary. It would be good to have
something like that in Debian, but pointing to /run/php/php7.4-fpm.sock.
When I upgrade my stable servers from php7.3-fpm to php7.4-fpm, the nginx config is going to break unless I modify /etc/php/7.3/fpm/pool.d/www.conf
to not listen on /run/php/php7.3-fpm.sock.

Reply via email to