Change php to static processes

This commit is contained in:
Bob Mottram 2017-07-10 12:40:16 +01:00
parent 00a4467d27
commit fdef7c93d7
1 changed files with 2 additions and 1 deletions

View File

@ -577,11 +577,12 @@ function install_web_server {
sed -i 's|process_control_timeout.*|process_control_timeout = 10s|g' /etc/php/7.0/fpm/php-fpm.conf
if ! grep -q "pm.max_children" /etc/php/7.0/fpm/php-fpm.conf; then
echo 'pm = static' >> /etc/php/7.0/fpm/php-fpm.conf
echo 'pm.max_children = 10' >> /etc/php/7.0/fpm/php-fpm.conf
echo 'pm.start_servers = 2' >> /etc/php/7.0/fpm/php-fpm.conf
echo 'pm.min_spare_servers = 2' >> /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 = 50' >> /etc/php/7.0/fpm/php-fpm.conf
echo 'pm.max_requests = 10' >> /etc/php/7.0/fpm/php-fpm.conf
fi
if [ ! -d /etc/nginx ]; then