Skip to content

listen = 127.0.0.1:9000 its breaking-change #1650

Closed

Description

@Kutuzovska

After updating the php-fpm-alpine Docker image
php-fpm started listening on 127.0.0.1:9000 instead of 0.0.0.0:9000.

As a result, nginx running in a separate container could no longer connect to php-fpm, causing 502 errors and complete service downtime.

Activity

  1. changed the title [-]listen = 127.0.0.1:9000 ist breaking-change[/-] [+]listen = 127.0.0.1:9000 its breaking-change[/+] on Jan 28, 2026
  2. Kutuzovska commented on Jan 28, 2026

    @Kutuzovska
    Author

    Damn, I'm sorry, we figured it out deeper.

    It turned out that we have had our own project for a long time. www.conf with the following contents:

    [www]
    user = www-data
    group = www-data
    listen = 127.0.0.1:9000
    pm = dynamic
    pm.max_children = 30
    pm.start_servers = 10
    ...

    And he makes his way into the image:

    COPY ./deploy/www.conf "$PHP_INI_DIR/../php-fpm.d/www.conf"
    

    Before fixing the build, we just didn't notice it. #1635

    After the update, the configuration:

    ; the [www] ini section below is for backwards compatibility and will be removed in 8.6+
    [www]

    As a result, our www.conf it became the main source of pool settings, and php-fpm started listening only to 127.0.0.1:9000 inside the container. Because of this, it has become unavailable to external nginx running in another container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions