Question
How to restart PHP service in Plesk?
Answer
-
Go to Tools & Settings > Services Management.
-
Press the highlighted button as on the screenshot below in front of the required PHP service to restart it:
Solution using the SSH access
- Log into the server via SSH.
- 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 - Using one of the found PHP handlers in step №2, restart it by executing the command below:
# service plesk-php71-fpm restart