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:
-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