Update fix-fpm-poold.sh

This commit is contained in:
myvesta 2022-11-03 15:23:15 +01:00 committed by GitHub
commit 039dca41c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ if [ -d "/etc/php" ]; then
systemctl --full --type service --all | grep "php...-fpm" | awk '{print $1}' | xargs systemctl restart systemctl --full --type service --all | grep "php...-fpm" | awk '{print $1}' | xargs systemctl restart
fi fi
if [ -f "/etc/apache2/mods-enabled/mpm_event.conf"]; then if [ -f "/etc/apache2/mods-enabled/mpm_event.conf" ]; then
sed -i "s#MaxRequestWorkers.*#MaxRequestWorkers 600#g" /etc/apache2/mods-enabled/mpm_event.conf sed -i "s#MaxRequestWorkers.*#MaxRequestWorkers 600#g" /etc/apache2/mods-enabled/mpm_event.conf
systemctl restart apache2 systemctl restart apache2
fi fi