Skip to content

Instantly share code, notes, and snippets.

@wernersmit
Last active May 15, 2022 09:17
Show Gist options
  • Save wernersmit/1b2dfaab180443344215493c44b6888e to your computer and use it in GitHub Desktop.
Save wernersmit/1b2dfaab180443344215493c44b6888e to your computer and use it in GitHub Desktop.
Plesk - Restart all PHP services via CLI
## 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