Articles in this section

How to restart PHP service in Plesk?

kb: how-to Plesk for Linux ABT: Group A

Applicable to:

  • Plesk for Linux

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

Was this article helpful?

Comments

1 comment
Date Votes
  • Using only the dedicated handler (I use on all 30 domains only the dedicated handler) drives plesk nuts, restart via CLI fails, restart over the backend works.

    root@server:/# plesk bin php_handler --list | grep -E plesk.*fpm | awk -F" " '{ print $1 }'
    plesk-php83-fpm
    plesk-php83-fpm-dedicated
    root@server:/# service plesk-php83-fpm restart
    Job for plesk-php83-fpm.service failed because the control process exited with error code.
    See "systemctl status plesk-php83-fpm.service" and "journalctl -xeu plesk-php83-fpm.service" for details.
    root@server:/# service plesk-php83-fpm-dedicated restart
    Failed to restart plesk-php83-fpm-dedicated.service: Unit plesk-php83-fpm-dedicated.service not found.
    root@server:/# service plesk-php83-fpm-dedicated restart

    0

Please sign in to leave a comment.