[www]
; The user and group FPM will run as
user = www-data
group = www-data

; The address on which to accept FastCGI requests
listen = 9000

; Set listen(2) backlog
listen.backlog = 511

; Set permissions for unix socket, if one is used
listen.owner = www-data
listen.group = www-data
listen.mode = 0660

; Process manager settings
; pm = static|dynamic|ondemand
pm = dynamic

; The number of child processes to be created when pm is set to 'static'
; and the maximum number of child processes when pm is set to 'dynamic' or 'ondemand'
; This value sets the limit on the number of simultaneous requests that will be served
; Equivalent to the ApacheMaxClients directive with mpm_prefork
pm.max_children = 50

; The number of child processes created on startup (only when pm is set to 'dynamic')
pm.start_servers = 5

; The desired minimum number of idle server processes (only when pm is set to 'dynamic')
pm.min_spare_servers = 5

; The desired maximum number of idle server processes (only when pm is set to 'dynamic')
pm.max_spare_servers = 35

; The number of seconds after which an idle process will be killed
pm.process_idle_timeout = 10s

; The number of requests each child process should execute before respawning
; This can be useful to work around memory leaks in 3rd party libraries
pm.max_requests = 500

; The URI to view the FPM status page
pm.status_path = /fpm-status

; The ping URI to call the monitoring page of FPM
ping.path = /fpm-ping

; Access log settings
access.log = /proc/self/fd/2
access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"

; Slow log settings
slowlog = /proc/self/fd/2
request_slowlog_timeout = 10s

; Set open file descriptor rlimit
rlimit_files = 1024

; Set max core size rlimit
rlimit_core = 0

; Chroot to this directory at the start
;chroot =

; Chdir to this directory at the start
;chdir = /var/www/html

; Redirect worker stdout and stderr into main error log
catch_workers_output = yes

; Decorate worker output with prefix and suffix containing information about the child that writes to the log entry
decorate_workers_output = no

; Clear environment in FPM workers
clear_env = no

; Security limit extensions
security.limit_extensions = .php .phar

; Environment variables
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
