From 7552dc20fc47feac6e131bf97ada1dcb80a39ccc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 10 Jul 2017 10:22:37 +0100 Subject: [PATCH] More php settings --- src/freedombone-utils-web | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index 19e1c343..a5860713 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -569,6 +569,12 @@ function install_web_server { sed -i 's/; process.max =.*/process.max = 32/g' /etc/php/7.0/fpm/php-fpm.conf #sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php/7.0/fpm/php-fpm.conf sed -i 's|;systemd_interval.*|systemd_interval = 10|g' /etc/php/7.0/fpm/php-fpm.conf + sed -i 's|;emergency_restart_threshold.*|emergency_restart_threshold = 2|g' /etc/php/7.0/fpm/php-fpm.conf + sed -i 's|emergency_restart_threshold.*|emergency_restart_threshold = 2|g' /etc/php/7.0/fpm/php-fpm.conf + sed -i 's|;emergency_restart_interval.*|emergency_restart_interval = 1m|g' /etc/php/7.0/fpm/php-fpm.conf + sed -i 's|emergency_restart_interval.*|emergency_restart_interval = 1m|g' /etc/php/7.0/fpm/php-fpm.conf + sed -i 's|;process_control_timeout.*|process_control_timeout = 10s|g' /etc/php/7.0/fpm/php-fpm.conf + sed -i 's|process_control_timeout.*|process_control_timeout = 10s|g' /etc/php/7.0/fpm/php-fpm.conf if ! grep -q "pm.max_children" /etc/php/7.0/fpm/php-fpm.conf; then echo 'pm.max_children = 10' >> /etc/php/7.0/fpm/php-fpm.conf