• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Watchdog and PHP-FPM

I'd suggest you check watchdog logs

/usr/local/psa/var/modules/watchdog/log/wdcollect.log
/var/log/wdcollect.log
/usr/local/psa/var/modules/watchdog/log/monit.log

for related errors/messages/etc.
 
The php-fpm Watchdog module is no longer working as its no longer customized to match Plesk’s multi PHP instances/versions.
This is a clear bug/design error.

Only way to fix this is:
1. Goto Watchdog -> PHP-FPM and change start/stop commands:
Start: /usr/local/psa/admin/bin/phpinimng --service-name=plesk-php56-fpm --type fpm --start
Stop: /usr/local/psa/admin/bin/phpinimng --service-name=plesk-php56-fpm --type fpm --start
(this is for PHP 5.6)
2. Edit /usr/local/psa/etc/modules/watchdog/monitrc
and change the line "with pidfile /var/run/php-fpm/php-fpm.pid" to: "with pidfile /run/plesk-php56-fpm.pid"
(again this is for PHP 5.6)
3. Restart monit: service monit restart

Done, monitoring and correct display of status with Plesk will work now. This is just a workaround to get it working, future Plesk updates (and any change to the watchdog settings) will probably overwrite these changes. Plesk team has to fix this to make it permanent.
 
Any plans from Plesk to fix this? Service monitor/automatic restart is a really important component of a reliable production server and, as we find the recommended PHP-FPM solution to be rather unreliable, it's extra important to have Watchdog taking care of all installed instances of PHP.
 
Back
Top