kb: how-to
Plesk for Linux
ABT: Group A
Applicable to:
- Plesk for Linux
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
Comments
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
Please sign in to leave a comment.