process control

This commit is contained in:
Bob Mottram 2016-06-11 20:58:18 +01:00
parent 849ee8dbec
commit afbba27b5c
1 changed files with 1 additions and 1 deletions

View File

@ -6051,7 +6051,7 @@ function install_web_server {
# limit the number of php processes
sed -i 's/; process.max =.*/process.max = 32/g' /etc/php5/fpm/php-fpm.conf
sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php5/fpm/php-fpm.conf
#sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php5/fpm/php-fpm.conf
if ! grep -q "pm.max_children" /etc/php5/fpm/php-fpm.conf; then
echo 'pm.max_children = 10' >> /etc/php5/fpm/php-fpm.conf