add ability to set php-workers/servers/children

This commit is contained in:
2018-06-07 11:46:47 +02:00
parent 1a6bfd4039
commit 75b811dac0
9 changed files with 40 additions and 8 deletions

View File

@ -5,10 +5,10 @@ error_log = /php/logs/error.log
[www]
listen = /php/run/php-fpm.sock
pm = dynamic
pm.max_children = 15
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 6
pm.max_children = <PHP_MAX_CHILDREN>
pm.start_servers = <PHP_START_SERVERS>
pm.min_spare_servers = <PHP_MIN_SPARE_SERVERS>
pm.max_spare_servers = <PHP_MAX_SPARE_SERVERS>
chdir = /
request_terminate_timeout = 0
env[PATH] = /usr/local/bin:/usr/bin:/bin