Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-08-29 22:39:00 +0300
committernachoparker <nacho@ownyourbits.com>2017-08-30 08:29:36 +0300
commit263e15a4e3b655f0359cf281181a6fc2b3bfc826 (patch)
treee3f7021ea10ac130c9ddbf7b9e050a1f385a2d6b
parent8846df1ed7565509bfe5ef6b46330b2bc299f166 (diff)
adjust max PHP processesv0.24.5
-rw-r--r--lamp.sh3
-rwxr-xr-xupdate.sh11
2 files changed, 14 insertions, 0 deletions
diff --git a/lamp.sh b/lamp.sh
index 0b1eb324..e5438c84 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 483c20ff..3b08e0d5 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