Watchdog shows PHP-FPM (FastCGI Process Manager) service as down

Created:

2017-01-17 19:20:06 UTC

Modified:

2017-08-08 13:42:38 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Watchdog shows PHP-FPM (FastCGI Process Manager) service as down

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Symptoms

  • In Ubuntu 14.04 and Ubuntu 16.04 Watchdog extension shows that PHP-FPM (FastCGI Process Manager) service is not working.

  • Unable to start php-fpm service using phpinimng utility:

    # /opt/psa/admin/bin/phpinimng --type fpm --start
    Failed to start php-fpm.service: Unit php-fpm.service not found. Failed to start php-fpm service

Cause

This is a Plesk bug PPPM-5334 . The fix is considered to be included in one of the next Plesk updates .

Resolution

Until the bug is fixed, the following workaround could be used:

  1. Edit unit file /lib/systemd/system/php7.0-fpm.service file by adding the alias php-fpm for the service:

    # vi /lib/systemd/system/php7.0-fpm.service
    ..........
    [Install]
    ..........
    Alias=php-fpm.service
  2. Create a symbolic link with the name php-fpm.service to the /lib/systemd/system/php7.0-fpm.service unit file:

    # ln -s /lib/systemd/system/php7.0-fpm.service /lib/systemd/system/php-fpm.service 
    
  3. Make backups of the Watchdog configuration files:

    # cp /opt/psa/etc/modules/watchdog/monitrc /opt/psa/etc/modules/watchdog/monitrc.backup 
    # cp /opt/psa/etc/modules/watchdog/monitrc.tpl /opt/psa/etc/modules/watchdog/monitrc.tpl.backup
  4. Replace the value of the with pidfile parameter in the Watchdog configuration files /opt/psa/etc/modules/watchdog/monitrc and /opt/psa/etc/modules/watchdog/monitrc.tpl to the correct one:

    # cat /opt/psa/etc/modules/watchdog/monitrc
    ..........
    # php-fpm
    check process php_fpm
            with pidfile /run/php/php7.0-fpm.pid
    ..........
Have more questions? Submit a request
Please sign in to leave a comment.