Failed to start The PHP 8.1 FastCGI Process Manager.

Discussion in 'ISPConfig 3 Priority Support' started by Stelios, Sep 8, 2022.

Tags:
  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    I switch from 7.4 to 8.1 in a specific website (that is happening in all sites) and after the switch the website was still using the old PHP.
    I then logged in to bash and tried to restart php8.1-fpm and got the following error.

    Code:
    root@web4:~# systemctl status php8.1-fpm.service
    ● php8.1-fpm.service - The PHP 8.1 FastCGI Process Manager
         Loaded: loaded (/lib/systemd/system/php8.1-fpm.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Thu 2022-09-08 10:34:29 CEST; 7s ago
           Docs: man:php-fpm8.1(8)
        Process: 21448 ExecStart=/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.conf (code=exited, status=78)
        Process: 21450 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
       Main PID: 21448 (code=exited, status=78)
            CPU: 54ms
    
    Sep 08 10:34:29 web4 systemd[1]: Starting The PHP 8.1 FastCGI Process Manager...
    Sep 08 10:34:29 web4 php-fpm8.1[21448]: [08-Sep-2022 10:34:29] ERROR: Another FPM instance seems to already listen on /var/lib/php7.3-fpm/web102.sock
    Sep 08 10:34:29 web4 php-fpm8.1[21448]: [08-Sep-2022 10:34:29] ERROR: FPM initialization failed
    Sep 08 10:34:29 web4 systemd[1]: php8.1-fpm.service: Main process exited, code=exited, status=78/CONFIG
    Sep 08 10:34:29 web4 systemd[1]: php8.1-fpm.service: Failed with result 'exit-code'.
    Sep 08 10:34:29 web4 systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.
    If I reboot the server then everything works ok. All rest php are able to restart without a problem; it is only the 8.1.
    If I remove manually the /var/lib/php7.3-fpm/web102.sock which points to the same website then it works.
    Any ideas?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Might be that you restarted the 7.3 php version the wrong way using init scripts instead of systemctl command. If you restart a Linux process using init script, then systemctl is not able to restart it and this can cause this situation. Take care to always use systemctl command or service command and not commands like /etc/init.d/..... on a system that has systemd installed.
     
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    It is happening the same even with systemctl
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then double-check the php settings for all php versions, especially the ones for PHP 7.3. The issue in your case is that ISPConfig is not able to restart PHP 7.3 with systemctl command. You can also use debug mode to further debug the issue.
     

Share This Page