mdPlusPlus / lempstack

LEMP Installer for Debian/Ubuntu - Linux, NGINX, MySQL, PHP
MIT License
7 stars 1 forks source link

/etc/php5/fpm/pool.d/www.conf pm = ondemand? #5

Closed mdPlusPlus closed 5 years ago

mdPlusPlus commented 6 years ago
#install php-fpm config
cat > /etc/php5/fpm/pool.d/www.conf <<END
[www]
user = www-data
group = www-data
listen = /var/run/php5-fpm.sock
pm = ondemand
pm.max_children = 5
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
pm.process_idle_timeout = 3s;
pm.max_requests = 500
chdir = /var/www/
env[HOSTNAME] = \$HOSTNAME
php_admin_value[upload_max_filesize] = 128M
END`

pm is set to ondemand, but pm.start_servers, pm.min_spare_servers, pm.max_spare_servers have the comment Note: Used only when pm is set to 'dynamic'.

mdPlusPlus commented 5 years ago

Switched to pm = dynamic.