From fdef7c93d7d71ff588ea9dfa9f63e21c01ff830e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 10 Jul 2017 12:40:16 +0100 Subject: [PATCH] Change php to static processes --- src/freedombone-utils-web | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index a5860713..77b8d0a6 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -577,11 +577,12 @@ function install_web_server { 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 = static' >> /etc/php/7.0/fpm/php-fpm.conf echo 'pm.max_children = 10' >> /etc/php/7.0/fpm/php-fpm.conf echo 'pm.start_servers = 2' >> /etc/php/7.0/fpm/php-fpm.conf echo 'pm.min_spare_servers = 2' >> /etc/php/7.0/fpm/php-fpm.conf echo 'pm.max_spare_servers = 5' >> /etc/php/7.0/fpm/php-fpm.conf - echo 'pm.max_requests = 50' >> /etc/php/7.0/fpm/php-fpm.conf + echo 'pm.max_requests = 10' >> /etc/php/7.0/fpm/php-fpm.conf fi if [ ! -d /etc/nginx ]; then