From e941516024e86b42dd808cc82c7e6be534ffcd7c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 10 Jul 2017 18:30:09 +0100 Subject: [PATCH] php process timeout --- src/freedombone-utils-web | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index 02feff85..27a29748 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -584,6 +584,12 @@ function install_web_server { echo 'pm.max_spare_servers = 5' >> /etc/php/7.0/fpm/php-fpm.conf echo 'pm.max_requests = 10' >> /etc/php/7.0/fpm/php-fpm.conf fi + if ! grep -q "request_terminate_timeout" /etc/php/7.0/fpm/php-fpm.conf; then + echo 'request_terminate_timeout = 30' >> /etc/php/7.0/fpm/php-fpm.conf + else + sed -i 's|request_terminate_timeout =.*|request_terminate_timeout = 30|g' >> /etc/php/7.0/fpm/php-fpm.conf + fi + sed -i 's|max_execution_time =.*|max_execution_time = 30|g' /etc/php/7.0/fpm/php.ini if [ ! -d /etc/nginx ]; then echo $"ERROR: nginx does not appear to have installed. $CHECK_MESSAGE"