Problem with new version of PHP from packages.sury.org on non systemd Debian

Discussion in 'ISPConfig 3 Priority Support' started by SupuS, Mar 1, 2020.

  1. SupuS

    SupuS Member HowtoForge Supporter

    Hello,
    a few days ago php-fpm from packages.sury.org repository started to require systemd. Our Debian 9 was installed without systemd and it was impossible to upgrade to latest version of PHP. Solution is quite simple and it is described here:
    https://github.com/oerdnj/deb.sury.org/issues/1347
    In short it is necessary to disable install recommends and than install systemd. It works fine. But after that ISPConfig detect systemd and try to restart services using systemd which fails:
    Code:
    DEBUG - Apache status is: running
    DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    DEBUG - Restarting httpd: systemctl restart apache2.service
    DEBUG - Apache restart return value is: 1
    DEBUG - Apache online status after restart is: running
    WARNING - Apache did not restart after the configuration change for website domain.tld. Reverting the configuration. Saved non-working config as /etc/apache2/sites-available/domain.tld.vhost.err
    WARNING - Reason for Apache restart failure: Failed to get D-Bus connection: Unknown error -1
    DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    DEBUG - Restarting httpd: systemctl restart apache2.service
    When I comment out systemd section of _getinitcommand function in /usr/local/ispconfig/server/lib/classes/system.inc.php it works without error message.

    I know that systemd is preferred init now, but maybe there could be more precise way to find out which init is used. It is discussed here for example:
    https://unix.stackexchange.com/ques...ystem-uses-sysv-upstart-or-systemd-initsystem
     

Share This Page