diff --git a/lamp.sh b/lamp.sh index 0b1eb324d..e5438c846 100644 --- a/lamp.sh +++ b/lamp.sh @@ -127,6 +127,9 @@ y y y EOF + + # adjust max PHP processes so Apps don't overload the board (#146) + sed -i 's|pm.max_children =.*|pm.max_children = 3|' /etc/php/7.0/fpm/pool.d/www.conf } configure() { :; } diff --git a/update.sh b/update.sh index 483c20ff0..3b08e0d5f 100755 --- a/update.sh +++ b/update.sh @@ -133,6 +133,17 @@ launch_script $1 &> /run/ncp.log EOF chmod 700 /home/www/ncp-launcher.sh + # adjust max PHP processes so Apps don't overload the board (#146) + sed -i 's|pm.max_children =.*|pm.max_children = 3|' /etc/php/7.0/fpm/pool.d/www.conf + + # restart PHP + sleep 3 + systemctl stop php7.0-fpm + systemctl stop mysqld + sleep 0.5 + systemctl start php7.0-fpm + systemctl start mysqld + # License # # This script is free software; you can redistribute it and/or modify it