|
|
@ -41,7 +41,8 @@ listen = 0.0.0.0:3000
|
|
|
|
|
|
|
|
|
|
|
|
; Set permissions for unix socket, if one is used. In Linux, read/write
|
|
|
|
; Set permissions for unix socket, if one is used. In Linux, read/write
|
|
|
|
; permissions must be set in order to allow connections from a web server. Many
|
|
|
|
; permissions must be set in order to allow connections from a web server. Many
|
|
|
|
; BSD-derived systems allow connections regardless of permissions.
|
|
|
|
; BSD-derived systems allow connections regardless of permissions. The owner
|
|
|
|
|
|
|
|
; and group can be specified either by name or by their numeric IDs.
|
|
|
|
; Default Values: user and group are set as the running user
|
|
|
|
; Default Values: user and group are set as the running user
|
|
|
|
; mode is set to 0660
|
|
|
|
; mode is set to 0660
|
|
|
|
listen.owner = www-data
|
|
|
|
listen.owner = www-data
|
|
|
@ -70,7 +71,7 @@ listen.group = www-data
|
|
|
|
; process.priority = -19
|
|
|
|
; process.priority = -19
|
|
|
|
|
|
|
|
|
|
|
|
; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
|
|
|
|
; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
|
|
|
|
; or group is differrent than the master process user. It allows to create process
|
|
|
|
; or group is different than the master process user. It allows to create process
|
|
|
|
; core dump and ptrace the process for the pool user.
|
|
|
|
; core dump and ptrace the process for the pool user.
|
|
|
|
; Default Value: no
|
|
|
|
; Default Value: no
|
|
|
|
; process.dumpable = yes
|
|
|
|
; process.dumpable = yes
|
|
|
@ -92,6 +93,8 @@ listen.group = www-data
|
|
|
|
; state (waiting to process). If the number
|
|
|
|
; state (waiting to process). If the number
|
|
|
|
; of 'idle' processes is greater than this
|
|
|
|
; of 'idle' processes is greater than this
|
|
|
|
; number then some children will be killed.
|
|
|
|
; number then some children will be killed.
|
|
|
|
|
|
|
|
; pm.max_spawn_rate - the maximum number of rate to spawn child
|
|
|
|
|
|
|
|
; processes at once.
|
|
|
|
; ondemand - no children are created at startup. Children will be forked when
|
|
|
|
; ondemand - no children are created at startup. Children will be forked when
|
|
|
|
; new requests will connect. The following parameter are used:
|
|
|
|
; new requests will connect. The following parameter are used:
|
|
|
|
; pm.max_children - the maximum number of children that
|
|
|
|
; pm.max_children - the maximum number of children that
|
|
|
@ -127,6 +130,12 @@ pm.min_spare_servers = 1
|
|
|
|
; 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; The number of rate to spawn child processes at once.
|
|
|
|
|
|
|
|
; Note: Used only when pm is set to 'dynamic'
|
|
|
|
|
|
|
|
; Note: Mandatory when pm is set to 'dynamic'
|
|
|
|
|
|
|
|
; Default Value: 32
|
|
|
|
|
|
|
|
;pm.max_spawn_rate = 32
|
|
|
|
|
|
|
|
|
|
|
|
; The number of seconds after which an idle process will be killed.
|
|
|
|
; The number of seconds after which an idle process will be killed.
|
|
|
|
; Note: Used only when pm is set to 'ondemand'
|
|
|
|
; Note: Used only when pm is set to 'ondemand'
|
|
|
|
; Default Value: 10s
|
|
|
|
; Default Value: 10s
|
|
|
@ -139,7 +148,7 @@ pm.max_spare_servers = 3
|
|
|
|
;pm.max_requests = 500
|
|
|
|
;pm.max_requests = 500
|
|
|
|
|
|
|
|
|
|
|
|
; The URI to view the FPM status page. If this value is not set, no URI will be
|
|
|
|
; The URI to view the FPM status page. If this value is not set, no URI will be
|
|
|
|
; recognized as a status page. It shows the following informations:
|
|
|
|
; recognized as a status page. It shows the following information:
|
|
|
|
; pool - the name of the pool;
|
|
|
|
; pool - the name of the pool;
|
|
|
|
; process manager - static, dynamic or ondemand;
|
|
|
|
; process manager - static, dynamic or ondemand;
|
|
|
|
; start time - the date and time FPM has started;
|
|
|
|
; start time - the date and time FPM has started;
|
|
|
@ -229,7 +238,7 @@ pm.max_spare_servers = 3
|
|
|
|
; last request memory: 0
|
|
|
|
; last request memory: 0
|
|
|
|
;
|
|
|
|
;
|
|
|
|
; Note: There is a real-time FPM status monitoring sample web page available
|
|
|
|
; Note: There is a real-time FPM status monitoring sample web page available
|
|
|
|
; It's available in: /usr/share/php/7.4/fpm/status.html
|
|
|
|
; It's available in: /usr/share/php/8.1/fpm/status.html
|
|
|
|
;
|
|
|
|
;
|
|
|
|
; Note: The value must start with a leading slash (/). The value can be
|
|
|
|
; 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
|
|
|
|
; anything, but it may not be a good idea to use the .php extension or it
|
|
|
@ -237,6 +246,22 @@ pm.max_spare_servers = 3
|
|
|
|
; Default Value: not set
|
|
|
|
; Default Value: not set
|
|
|
|
;pm.status_path = /status
|
|
|
|
;pm.status_path = /status
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; The address on which to accept FastCGI status request. This creates a new
|
|
|
|
|
|
|
|
; invisible pool that can handle requests independently. This is useful
|
|
|
|
|
|
|
|
; if the main pool is busy with long running requests because it is still possible
|
|
|
|
|
|
|
|
; to get the status before finishing the long running requests.
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
; Valid syntaxes are:
|
|
|
|
|
|
|
|
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
|
|
|
|
|
|
|
|
; a specific port;
|
|
|
|
|
|
|
|
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
|
|
|
|
|
|
|
|
; a specific port;
|
|
|
|
|
|
|
|
; 'port' - to listen on a TCP socket to all addresses
|
|
|
|
|
|
|
|
; (IPv6 and IPv4-mapped) on a specific port;
|
|
|
|
|
|
|
|
; '/path/to/unix/socket' - to listen on a unix socket.
|
|
|
|
|
|
|
|
; Default Value: value of the listen option
|
|
|
|
|
|
|
|
;pm.status_listen = 127.0.0.1:9001
|
|
|
|
|
|
|
|
|
|
|
|
; The ping URI to call the monitoring page of FPM. If this value is not set, no
|
|
|
|
; 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
|
|
|
|
; URI will be recognized as a ping page. This could be used to test from outside
|
|
|
|
; that FPM is alive and responding, or to
|
|
|
|
; that FPM is alive and responding, or to
|
|
|
@ -269,13 +294,13 @@ pm.max_spare_servers = 3
|
|
|
|
; %d: time taken to serve the request
|
|
|
|
; %d: time taken to serve the request
|
|
|
|
; it can accept the following format:
|
|
|
|
; it can accept the following format:
|
|
|
|
; - %{seconds}d (default)
|
|
|
|
; - %{seconds}d (default)
|
|
|
|
; - %{miliseconds}d
|
|
|
|
; - %{milliseconds}d
|
|
|
|
; - %{mili}d
|
|
|
|
; - %{milli}d
|
|
|
|
; - %{microseconds}d
|
|
|
|
; - %{microseconds}d
|
|
|
|
; - %{micro}d
|
|
|
|
; - %{micro}d
|
|
|
|
; %e: an environment variable (same as $_ENV or $_SERVER)
|
|
|
|
; %e: an environment variable (same as $_ENV or $_SERVER)
|
|
|
|
; it must be associated with embraces to specify the name of the env
|
|
|
|
; it must be associated with embraces to specify the name of the env
|
|
|
|
; variable. Some exemples:
|
|
|
|
; variable. Some examples:
|
|
|
|
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
|
|
|
|
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
|
|
|
|
; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
|
|
|
|
; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
|
|
|
|
; %f: script filename
|
|
|
|
; %f: script filename
|
|
|
@ -305,17 +330,17 @@ pm.max_spare_servers = 3
|
|
|
|
; %t: server time the request was received
|
|
|
|
; %t: server time the request was received
|
|
|
|
; it can accept a strftime(3) format:
|
|
|
|
; it can accept a strftime(3) format:
|
|
|
|
; %d/%b/%Y:%H:%M:%S %z (default)
|
|
|
|
; %d/%b/%Y:%H:%M:%S %z (default)
|
|
|
|
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
|
|
|
; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
|
|
|
|
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
|
|
|
|
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
|
|
|
|
; %T: time the log has been written (the request has finished)
|
|
|
|
; %T: time the log has been written (the request has finished)
|
|
|
|
; it can accept a strftime(3) format:
|
|
|
|
; it can accept a strftime(3) format:
|
|
|
|
; %d/%b/%Y:%H:%M:%S %z (default)
|
|
|
|
; %d/%b/%Y:%H:%M:%S %z (default)
|
|
|
|
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
|
|
|
|
; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
|
|
|
|
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
|
|
|
|
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
|
|
|
|
; %u: remote user
|
|
|
|
; %u: remote user
|
|
|
|
;
|
|
|
|
;
|
|
|
|
; Default: "%R - %u %t \"%m %r\" %s"
|
|
|
|
; Default: "%R - %u %t \"%m %r\" %s"
|
|
|
|
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
|
|
|
|
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{milli}d %{kilo}M %C%%"
|
|
|
|
|
|
|
|
|
|
|
|
; The log file for slow requests
|
|
|
|
; The log file for slow requests
|
|
|
|
; Default Value: not set
|
|
|
|
; Default Value: not set
|
|
|
@ -374,10 +399,10 @@ pm.max_spare_servers = 3
|
|
|
|
|
|
|
|
|
|
|
|
; 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.
|
|
|
|
; Note: on highloaded environement, this can cause some delay in the page
|
|
|
|
; Note: on highloaded environment, this can cause some delay in the page
|
|
|
|
; process time (several ms).
|
|
|
|
; process time (several ms).
|
|
|
|
; Default Value: no
|
|
|
|
; Default Value: no
|
|
|
|
catch_workers_output = yes
|
|
|
|
;catch_workers_output = yes
|
|
|
|
|
|
|
|
|
|
|
|
; Decorate worker output with prefix and suffix containing information about
|
|
|
|
; Decorate worker output with prefix and suffix containing information about
|
|
|
|
; the child that writes to the log and if stdout or stderr is used as well as
|
|
|
|
; the child that writes to the log and if stdout or stderr is used as well as
|
|
|
|