diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-08-29 22:39:00 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-30 08:29:36 +0300 |
commit | 263e15a4e3b655f0359cf281181a6fc2b3bfc826 (patch) | |
tree | e3f7021ea10ac130c9ddbf7b9e050a1f385a2d6b | |
parent | 8846df1ed7565509bfe5ef6b46330b2bc299f166 (diff) |
adjust max PHP processesv0.24.5
-rw-r--r-- | lamp.sh | 3 | ||||
-rwxr-xr-x | update.sh | 11 |
2 files changed, 14 insertions, 0 deletions
@@ -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() { :; } @@ -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 |