• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Switching from FCGI to PHP-FPM fails

Peter99

Basic Pleskian
Server operating system version
AlmaLinux 8.8 (Sapphire Caracal)
Plesk version and microupdate number
Version 18.0.56
Since the last Plesk update, we experience a weird issue.

When we go into a subscriptions PHP extension to change the "Run PHP as" from "FastCGI application Served by Apache" and changes it to "FPM application served by Apache", the website responds with a 503 page.

The website error log is logging this error:
Error (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/domain/php-fpm.sock (*) failed Apache error
AH01079: failed to make connection to backend: httpd-UDS Apache error

If we then go into Tools and Settings > Services Management and restart the PHP-FPM process, the website is now working and the 503 error is gone.
I have only experienced this, since our upgrade to the latest Plesk version.
 
Unfortunately, PHP-FPM service sometimes can crash. However, that is an issue of that service or conditions on the server. For my personal use I found that it makes sense to restart the plesk-php<version>-fpm services once every two or three weeks by crontab job. It helped to avoid these issues, but that is just a personal experience, it might not apply to your specific server situation.
 
Unfortunately, PHP-FPM service sometimes can crash. However, that is an issue of that service or conditions on the server. For my personal use I found that it makes sense to restart the plesk-php<version>-fpm services once every two or three weeks by crontab job. It helped to avoid these issues, but that is just a personal experience, it might not apply to your specific server situation.
This should automaticly be covered by the various kernel updates we are doing and as a result rebooting the entire server.

However, this seems to happen no matter what website we change the type of PHP processor on. I can pick another subscription and change the PHP processor and it will fail with 503.
This means that currently every time we change the type of PHP processor, we must remember to head into Services Management and restart the PHP-FPM process.
Funny thing is that it only has begun after we did the upgrade to latest Plesk version.
 
Back
Top