Plesk

Site does not work on PHP-FPM handler on Plesk server: 503 service unavailable

Symptoms

Cause

Configuration file for the affected domain are missing in /opt/plesk/php/X.X/etc/php-fpm.d/ directory.

Resolution

Regenerate the configuration by executing the following steps:

Click on a section to expand

For a single domain

  1. Log into Plesk.
  2. Go to Domains > example.com > PHP Settings and change PHP handler to different one and click OK
  3. Change PHP handler version back and click OK.

For multiple domains

  1. Connect to the server via SSH;

    Note: if direct SSH access to the server is not possible, contact server administrator for further assistance.

  2. Execute the following command to update settings on all domains:

    # /usr/local/psa/bin/php_settings -u

  3. Execute the command to get a list of all installed PHP handlers:

    # plesk bin php_handler --list | grep -E plesk.*fpm | awk -F" " '{ print $1 }'

    plesk-php71-fpm
    plesk-php72-fpm
    plesk-php73-fpm
    plesk-php74-fpm

  4. Restart PHP handler processes for the used PHP versions, for example:

    # systemctl restart plesk-php74-fpm

Additional information

PHP Management | Plesk Obsidian documentation

php_handler: PHP Handlers | Plesk Obsidian documentation

After removal of specific PHP version multiple domains hosted in Plesk became not accessible, error 503 is shown in browser