Plesk

How to restart PHP service in Plesk?

Question

How to restart PHP service in Plesk?

Answer

  1. Log into Plesk.

  2. Go to Tools & Settings > Services Management.

  3. Press the highlighted button as on the screenshot below in front of the required PHP  service to restart it: 

Solution using the SSH access

  1. Log into the server via SSH.
  2. 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

  3. Using one of the found PHP handlers in step №2, restart it by executing the command below:

    # service plesk-php71-fpm restart