php5-fpm fails to restart fix

Discussion in 'Tips/Tricks/Mods' started by basz, Nov 4, 2013.

  1. basz

    basz New Member

    Apparently php5-fpm does not get killed correctly when used as;

    PHP:
    /etc/init.d/php5-fpm reload
    ISPConfig uses that command to refresh when needed, which result in 500 server errors every time you change a related configuration

    I found that this command does not have that problem.

    PHP:
    /etc/init.d/php5-fpm restart
    so I edit /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php and change every invocation of

    PHP:
    $app->services->restartService('php-fpm',’reload:..
    to
    PHP:
    $app->services->restartService('php-fpm’,’restart:...
    I'm running the latest Ubuntu 12.04, the latest PHP55 from https://debphp.org with the latest ISPConfig.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You should report that to https://debphp.org/, as a reload is the correct command to reload the configuration and it works fine with the php packages from Ubuntu.
     

Share This Page