#970831 php7.4-fpm: please include a config snippet for nginx that includes the fpm unix socket

Package:
php8.1-fpm
Source:
php8.1
Description:
server-side, HTML-embedded scripting language (FPM-CGI binary)
Submitter:
Andres Salomon
Date:
2024-12-02 07:42:03 UTC
Severity:
normal
#970831#5
Date:
2020-09-24 05:12:20 UTC
From:
To:
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.

#970831#10
Date:
2022-01-26 00:54:08 UTC
From:
To:
Dear submitter,

as the package php7.4 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1004353

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

#970831#15
Date:
2022-01-26 01:06:51 UTC
From:
To:
reopen 970831
reassign 970831 php8.1-fpm
thanks

This bug remains relevant to 8.1.