#1142060 php8.4-fpm: The /run/php/php-fpm.sock alternative breaks on reboot

Package:
php8.4-fpm
Source:
php8.4-fpm
Description:
server-side, HTML-embedded scripting language (FPM-CGI binary)
Submitter:
David Caldwell
Date:
2026-08-02 12:27:01 UTC
Severity:
normal
#1142060#5
Date:
2026-07-14 17:08:38 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

After updating to the latest php8.4-fpm package I noticed none of my PHP sites
were working. After investigating I found the /run/php/php-fpm.sock link was
missing. Instead only the actual `/run/php/php8.4-fpm.sock` socket exists.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

If I run `sudo update-alternatives --auto php-fpm.sock`, then it recreates the
php-fpm.sock link and all the PHP sites start working again. When I run it it
prints this:

This keeps working for the rest of the machine's uptime. However, when it
reboots the link is missing again. This means each reboot I have to do
something manual to get my sites running.

I think the old package did something with the alternative in the systemd
.service file so that it always worked automatically.

Thanks,
  David

#1142060#10
Date:
2026-08-02 08:42:48 UTC
From:
To:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1142400 is a duplicate of this same issue, but does describe the root cause and a workaround.