php process timeout
This commit is contained in:
parent
d96d5bcf23
commit
e941516024
|
@ -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_spare_servers = 5' >> /etc/php/7.0/fpm/php-fpm.conf
|
||||||
echo 'pm.max_requests = 10' >> /etc/php/7.0/fpm/php-fpm.conf
|
echo 'pm.max_requests = 10' >> /etc/php/7.0/fpm/php-fpm.conf
|
||||||
fi
|
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
|
if [ ! -d /etc/nginx ]; then
|
||||||
echo $"ERROR: nginx does not appear to have installed. $CHECK_MESSAGE"
|
echo $"ERROR: nginx does not appear to have installed. $CHECK_MESSAGE"
|
||||||
|
|
Loading…
Reference in New Issue