Generic values

This commit is contained in:
Bob Mottram 2015-12-06 10:50:53 +00:00
parent 3fb7a127ad
commit e6cda8fb61
1 changed files with 2 additions and 2 deletions

View File

@ -8521,8 +8521,8 @@ function install_web_server {
apt-get -y install nginx php5-fpm git apt-get -y install nginx php5-fpm git
# limit the number of php processes # limit the number of php processes
sed -i 's/; process.max = 128/process.max = 32/g' /etc/php5/fpm/php-fpm.conf sed -i 's/; process.max =.*/process.max = 32/g' /etc/php5/fpm/php-fpm.conf
sed -i 's/;process_control_timeout = 0/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 if ! grep -q "pm.max_children" /etc/php5/fpm/php-fpm.conf; then
echo 'pm.max_children = 10' >> /etc/php5/fpm/php-fpm.conf echo 'pm.max_children = 10' >> /etc/php5/fpm/php-fpm.conf