Switching between PHP-FPM versions makes php-fpm go down and vice versa.

Discussion in 'Installation/Configuration' started by fbarcenas, Oct 10, 2017.

  1. fbarcenas

    fbarcenas Member

    When I switch a site from php5 to php7, PHP 7 goes down and needs to be restarted.
    When I switch a site from php7 to php5, PHP 5 goes down and needs to be restarted.
    Code:
    Oct 09 18:14:46 mx3 systemd[1]: Starting The PHP FastCGI Process Manager...
    -- Subject: Unit php5-fpm.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit php5-fpm.service has begun starting up.
    Oct 09 18:14:46 mx3 php5-fpm[14189]: [09-Oct-2017 18:14:46] ERROR: An another FPM instance seems to already listen on /var/lib/php5-fpm/web68.sock
    Oct 09 18:14:46 mx3 php5-fpm[14189]: [09-Oct-2017 18:14:46] ERROR: FPM initialization failed
    Oct 09 18:14:46 mx3 systemd[1]: php5-fpm.service: Main process exited, code=exited, status=78/n/a
    Oct 09 18:14:46 mx3 systemd[1]: php5-fpm.service: Failed to kill control group /lxc/102/system.slice/php5-fpm.service, ignoring: Invalid argument
    Oct 09 18:14:46 mx3 systemd[1]: php5-fpm.service: Failed to kill control group /lxc/102/system.slice/php5-fpm.service, ignoring: Invalid argument
    Oct 09 18:14:46 mx3 systemd[1]: php5-fpm.service: Failed to kill control group /lxc/102/system.slice/php5-fpm.service, ignoring: Invalid argument
    Oct 09 18:14:46 mx3 systemd[1]: php5-fpm.service: Failed to kill control group /lxc/102/system.slice/php5-fpm.service, ignoring: Invalid argument
    Oct 09 18:14:46 mx3 systemd[1]: Failed to start The PHP FastCGI Process Manager.
    -- Subject: Unit php5-fpm.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit php5-fpm.service has failed.
    --
    -- The result is failed.
    Oct 09 18:14:46 mx3 systemd[1]: php5-fpm.service: Unit entered failed state.
    PHP5: /etc/php5/fpm/pool.d/www.conf
    Code:
    listen=127.0.0.1:9010
    PHP7.0: /opt/php-7.0/etc/php-fpm.d/www.conf
    Code:
    listen=127.0.0.1:8998
    PHP7.1: /opt/php-7.1/etc/php-fpm.d/www.conf
    Code:
    listen=127.0.0.1:8999
    I installed using the perfect server apache debian 8 server guide. Then followed the migrations instructions to switch the server to NGINX, then followed the guides to add php-7.1 and repeated the same instructions for PHP7.0
     
  2. fbarcenas

    fbarcenas Member

    @till Ever seen anything like this before?
     
  3. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    what are your entries for the service(name) to be used to control the process (start/stop) did you specify only the unitname ( php5-fpm ) or have you entered like /etc/init.d/php5-fpm, if so: try php5-fpm ( same & accordingly for other php-fpms )

    do you use either mirror or master/slave configuration?

    what happens if you stop both php-fpms, remove the mentioned web*.conf and resync that web / switch php-config?

    did you know http://www.webalizer.org/ is looking for a new home, preferable close to his home / florida? *hint* - ok sponsored but hey, it's still important :)
     
  4. fbarcenas

    fbarcenas Member

    Where would I find those entries for the service name?
     
  5. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    it's german but I'm confident it's recognizeable
     

    Attached Files:

Share This Page