|
@@ -584,6 +584,12 @@ function install_web_server {
|
584
|
584
|
echo 'pm.max_spare_servers = 5' >> /etc/php/7.0/fpm/php-fpm.conf
|
585
|
585
|
echo 'pm.max_requests = 10' >> /etc/php/7.0/fpm/php-fpm.conf
|
586
|
586
|
fi
|
|
587
|
+ if ! grep -q "request_terminate_timeout" /etc/php/7.0/fpm/php-fpm.conf; then
|
|
588
|
+ echo 'request_terminate_timeout = 30' >> /etc/php/7.0/fpm/php-fpm.conf
|
|
589
|
+ else
|
|
590
|
+ sed -i 's|request_terminate_timeout =.*|request_terminate_timeout = 30|g' >> /etc/php/7.0/fpm/php-fpm.conf
|
|
591
|
+ fi
|
|
592
|
+ sed -i 's|max_execution_time =.*|max_execution_time = 30|g' /etc/php/7.0/fpm/php.ini
|
587
|
593
|
|
588
|
594
|
if [ ! -d /etc/nginx ]; then
|
589
|
595
|
echo $"ERROR: nginx does not appear to have installed. $CHECK_MESSAGE"
|