changing sequentially between different php versions in fpm mode error

Discussion in 'General' started by peteruoi, Mar 31, 2021.

  1. peteruoi

    peteruoi New Member

    how to reproduce.
    In a ubuntu 20.04 perfect apache server with ispconfig 3.2.3 install diferrent php versions following (customised) guide with
    Configure a site to use php(some) with fpm and then change to php(another) fpm then visit site and it shows
    ERROR 503 - Service Unavailable!
    the problem is solved if i go to console and command systemctl restart php(another)-fpm

    The problem doesn't occur if i go php(some) fpm->php another cgi->php another fpm. So my guess is in one scenario one systemctl restart php(another)-fpm is missing.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This happens e.g. when you have wrong settings for the starter script of the php-fpm versions or when you started the fpm daemons e.g. by a init script instead of systemctl command.
    peteruoi likes this.
  3. peteruoi

    peteruoi New Member

    Thanks lot for your reply!
    Maybe the error is in the php-fpm socket? (as i didn;t find it in the examples) so i just put the below...
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Usually you can leave this field empty.
    peteruoi likes this.
  5. peteruoi

    peteruoi New Member

    Unfortunatelly leaving this field empty also produces this error after switching between two different php versions in fpm mode
  6. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    peteruoi likes this.
  7. peteruoi

    peteruoi New Member

    You were right....
    I just write it in case somebody finds it usefull...
    i had in
    Path to the PHP-FPM init script: php-fpm7.4
    wheres the right is
    Path to the PHP-FPM init script: php7.4-fpm

    Thank you all!
    till likes this.

Share This Page