Page 1 of 1

How to restart all PHP-FPM versions at once

Posted: Wed Sep 07, 2022 12:15 pm
by isscbta
In your SSH, as root, run:

Code: Select all

systemctl --full --type service --all | grep "php...-fpm" | sed 's#●##g' | awk '{print $1}' | xargs systemctl restart
This command will restart all PHP-FPM versions from 5.6 to 8.x