@ -3,9 +3,9 @@
; pool name ('snappymail' here)
; pool name ('snappymail' here)
[snappymail]
[snappymail]
; Redirect worker stdout and stderr into main error log. If not set, stdout and
; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; stderr will be redirected to /dev/null according to FastCGI specs.
; Default value: no.
; Default value: no.
catch_workers_output = 1
catch_workers_output = 1
; Unix user/group of processes
; Unix user/group of processes
@ -87,15 +87,32 @@ pm.max_children = 5
; Note: Mandatory when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
; pm.max_spare_servers = 3
; pm.max_spare_servers = 3
; This sets the maximum time in seconds a script is allowed to run before it is
; This sets the maximum time in seconds a script is allowed to run before it is
; terminated by the parser. This helps prevent poorly written scripts from tying up
; terminated by the parser. This helps prevent poorly written scripts from tying up
; the server. The default setting is 30s.
; the server. The default setting is 30s.
; Note: Used only when pm is set to 'ondemand'
; Note: Used only when pm is set to 'ondemand'
pm.process_idle_timeout = 10s
pm.process_idle_timeout = 10s
; The number of requests each child process should execute before respawning.
; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For endless
; This can be useful to work around memory leaks in 3rd party libraries. For endless
; request processing specify '0'.
; request processing specify '0'.
; Equivalent to PHP_FCGI_MAX_REQUESTS. Default value: 0.
; Equivalent to PHP_FCGI_MAX_REQUESTS. Default value: 0.
; Noted: Used only when pm is set to 'ondemand'
; Noted: Used only when pm is set to 'ondemand'
pm.max_requests = 200
pm.max_requests = 200
; The ping URI to call the monitoring page of FPM. If this value is not set, no
; URI will be recognized as a ping page. This could be used to test from outside
; that FPM is alive and responding, or to
; - create a graph of FPM availability (rrd or such);
; - remove a server from a group if it is not responding (load balancing);
; - trigger alerts for the operating team (24/7).
; Note: The value must start with a leading slash (/). The value can be
; anything, but it may not be a good idea to use the .php extension or it
; may conflict with a real PHP file.
; Default Value: not set
ping.path = /ping
; This directive may be used to customize the response of a ping request. The
; response is formatted as text/plain with a 200 response code.
; Default Value: pong
;ping.response = pong