php7.4-fpm crashes because cannot bind to 127.0.0.1:9000

Discussion in 'ISPConfig 3 Priority Support' started by decentris, Feb 21, 2024.

  1. decentris

    decentris Member HowtoForge Supporter

    Hi ISPConfig team!

    Since my last update of packages and ISPConfig my php4.4-fpm service crashes because it cannot bind to 127.0.0.1:9000 as it seems to already bee in use.

    What could that be? Other php-fpm daemons run flawlessy (eg. php7.2-fpm, php7.0-fpm)

    Pls. help!

    Thx a very lot in advance.

    Best,
    Hannes
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Then, it's likely in use. Find which php version is using it (e.g. with netstat -ntap | grep 9000) and change one of the two to use a different port.
     
  3. decentris

    decentris Member HowtoForge Supporter

    tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 992/php-fpm: master

    php-fpm: master seems to use it.

    How can I attach a different port to php7.4-fpm?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the www pool files, most likely two of them use the same port. Change one of them to a unused port and then restart the php-fpm daemon.
     
  5. decentris

    decentris Member HowtoForge Supporter

    Do I need to change the port for all the pool confs?

    -rw-r--r-- 1 root root 1317 Jan 17 14:27 web46.conf
    -rw-r--r-- 1 root root 1321 Jan 17 14:26 web4.conf
    -rw-r--r-- 1 root root 1323 Jan 17 14:27 web51.conf
    -rw-r--r-- 1 root root 1310 Jan 17 14:26 web53.conf
    -rw-r--r-- 1 root root 1322 Jan 17 14:26 web56.conf
    -rw-r--r-- 1 root root 1340 Jan 17 14:26 web57.conf
    -rw-r--r-- 1 root root 1302 Jan 17 14:27 web59.conf
    -rw-r--r-- 1 root root 1296 Jan 17 14:26 web5.conf
    -rw-r--r-- 1 root root 1358 Jan 18 21:28 web61.conf
    -rw-r--r-- 1 root root 1319 Jan 17 14:26 web8.conf
    -rw-r--r-- 1 root root 19695 Nov 10 2022 www.conf
    -rw-r--r-- 1 root root 19695 Nov 10 2022 www.conf.default

    or just for "www.conf.default" ?
     
  6. decentris

    decentris Member HowtoForge Supporter

    I found the culprit!

    I also installed php8.0-fpm while updating/upgrading. And this also wanted to use port 9000.

    I now set the php8.0-fpm port to 9001 and everything works again!

    Thx for the tip, Till! Really appreciate your valuable help. :)

    Best,
    Hannes
     
    Th0m and till like this.

Share This Page