Last active
May 15, 2022 09:17
-
-
Save wernersmit/1b2dfaab180443344215493c44b6888e to your computer and use it in GitHub Desktop.
Plesk - Restart all PHP services via CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Source: https://support.plesk.com/hc/en-us/articles/360004529374/comments/360001512840 | |
#!/bin/bash | |
plesk bin php_handler --list | grep -E plesk.*fpm | awk -F" " '{ print $1 }' | while read i; do service $i restart; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment