2017-10-21 22:52:21 +02:00
|
|
|
[__NAMETOCHANGE__]
|
2015-10-20 15:44:33 +02:00
|
|
|
; The address on which to accept FastCGI requests.
|
2017-10-21 22:52:21 +02:00
|
|
|
listen = /var/run/php5-fpm-__NAMETOCHANGE__.sock
|
2016-07-23 14:54:26 +02:00
|
|
|
|
|
|
|
; Set permissions for unix socket, if one is used.
|
2015-10-20 15:44:33 +02:00
|
|
|
listen.owner = www-data
|
|
|
|
listen.group = www-data
|
|
|
|
listen.mode = 0600
|
|
|
|
|
2016-07-23 14:54:26 +02:00
|
|
|
; Unix user/group of processes.
|
2017-10-21 23:15:17 +02:00
|
|
|
user = __USER__
|
|
|
|
group = __USER__
|
2015-10-20 15:44:33 +02:00
|
|
|
|
|
|
|
; Choose how the process manager will control the number of child processes.
|
|
|
|
pm = dynamic
|
|
|
|
|
|
|
|
; The number of child processes to be created when pm is set to 'static' and the
|
|
|
|
; maximum number of child processes to be created when pm is set to 'dynamic'.
|
|
|
|
pm.max_children = 6
|
|
|
|
|
|
|
|
; The number of child processes created on startup.
|
|
|
|
pm.start_servers = 3
|
|
|
|
|
|
|
|
; The desired minimum number of idle server processes.
|
|
|
|
pm.min_spare_servers = 3
|
|
|
|
|
|
|
|
; The desired maximum number of idle server processes.
|
|
|
|
pm.max_spare_servers = 5
|
|
|
|
|
|
|
|
; The number of requests each child process should execute before respawning.
|
|
|
|
pm.max_requests = 500
|
|
|
|
|
|
|
|
; The URI to view the FPM status page. If this value is not set, no URI will be
|
2016-07-23 14:54:26 +02:00
|
|
|
; recognized as a status page.
|
2015-10-20 15:44:33 +02:00
|
|
|
pm.status_path = /fpm-status
|
|
|
|
|
|
|
|
; The ping URI to call the monitoring page of FPM. If this value is not set, no
|
2016-07-23 14:54:26 +02:00
|
|
|
; URI will be recognized as a ping page.
|
2015-10-20 15:44:33 +02:00
|
|
|
ping.path = /ping
|
|
|
|
|
|
|
|
; The timeout for serving a single request after which the worker process will
|
2016-07-23 14:54:26 +02:00
|
|
|
; be killed.
|
|
|
|
request_terminate_timeout = 1d
|
2015-10-20 15:44:33 +02:00
|
|
|
|
|
|
|
; The timeout for serving a single request after which a PHP backtrace will be
|
|
|
|
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
|
|
|
|
request_slowlog_timeout = 5s
|
|
|
|
|
2016-07-23 14:54:26 +02:00
|
|
|
; The log file for slow requests.
|
2017-10-21 22:52:21 +02:00
|
|
|
slowlog = /var/log/nginx/__NAMETOCHANGE__.slow.log
|
2015-10-20 15:44:33 +02:00
|
|
|
|
|
|
|
; Set open file descriptor rlimit.
|
|
|
|
rlimit_files = 4096
|
|
|
|
|
|
|
|
; Set max core size rlimit.
|
|
|
|
rlimit_core = 0
|
|
|
|
|
|
|
|
; Chdir to this directory at the start.
|
2017-10-21 22:52:21 +02:00
|
|
|
chdir = __FINALPATH__
|
2016-07-23 14:54:26 +02:00
|
|
|
|
|
|
|
; Redirect worker stdout and stderr into main error log.
|
2015-10-20 15:44:33 +02:00
|
|
|
catch_workers_output = yes
|
|
|
|
|
2016-07-23 14:54:26 +02:00
|
|
|
; Do not clear environment in FPM workers.
|
|
|
|
clear_env = no
|
|
|
|
|
|
|
|
; Additional php.ini defines, specific to this pool of workers.
|
|
|
|
php_value[upload_max_filesize] = 10G
|
|
|
|
php_value[post_max_size] = 10G
|
|
|
|
php_value[default_charset] = UTF-8
|
|
|
|
php_value[always_populate_raw_post_data] = -1
|
2017-10-30 10:59:00 +01:00
|
|
|
php_value[session.save_path] = /var/www/__NAMETOCHANGE__/sessions
|