You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP-FPM Config listen directive no longer works with localhost IP after 8.5.2 #1653
It looks like PHP-FPM starting with 8.5.2 no longer works with listen = 127.0.0.1:9000 config option.
I'm not sure if this is intentional change, but I don't seem to find anything about it in PHP change logs or elsewhere. Took me good while to figure out why upgrading from 8.5.0 to 8.5.4 caused Nginx unable to connect to PHP FPM anymore. Usually semver "patch versions" don't contain breaking changes so that is also making me wonder if this is a bug.
Basically, a www.conf with listen = 127.0.0.1:9000:
Has worked for years in versions php:8.5.1-fpm and earlier.
php:8.5.2-fpm - php:8.5.4-fpm it results in Nginx 502 Bad Gateway unless changed to just listen = 9000
The listen = 127.0.0.1:9000 should have never worked, since that would prevent other containers from accessing the fpm server. That was being overridden by the listen = 9000 that used to be in zz-docker.conf. This was changed in #1635 (specifically after version 8.5.1 for the 8.5.x series) so that users could more easily override the default listen = 9000 that is now moved to docker.conf.
Activity
yosifkit commentedon Mar 16, 2026
The
listen = 127.0.0.1:9000should have never worked, since that would prevent other containers from accessing the fpm server. That was being overridden by thelisten = 9000that used to be inzz-docker.conf. This was changed in #1635 (specifically after version8.5.1for the8.5.xseries) so that users could more easily override the defaultlisten = 9000that is now moved todocker.conf.Duplicate of #1650