71 lines
No EOL
2.8 KiB
Text
71 lines
No EOL
2.8 KiB
Text
[global]
|
|
; Log to stderr
|
|
error_log = /dev/stderr
|
|
|
|
[www]
|
|
; The address on which to accept FastCGI 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.
|
|
; Note: This value is mandatory.
|
|
listen = /run/php-fpm.sock
|
|
|
|
; 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
|
|
; 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
|
|
; mode is set to 0660
|
|
listen.owner = nobody
|
|
listen.group = nobody
|
|
;listen.mode = 0660
|
|
; When POSIX Access Control Lists are supported you can set them using
|
|
; these options, value is a comma separated list of user/group names.
|
|
; When set, listen.owner and listen.group are ignored
|
|
;listen.acl_users =
|
|
;listen.acl_groups =
|
|
|
|
; Enable status page
|
|
pm.status_path = /fpm-status
|
|
|
|
; Ondemand process manager
|
|
pm = ondemand
|
|
|
|
; 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.
|
|
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
|
|
; CGI. The below defaults are based on a server without much resources. Don't
|
|
; forget to tweak pm.* to fit your needs.
|
|
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
|
|
; Note: This value is mandatory.
|
|
pm.max_children = 100
|
|
|
|
; The number of seconds after which an idle process will be killed.
|
|
; Note: Used only when pm is set to 'ondemand'
|
|
; Default Value: 10s
|
|
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. For
|
|
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
|
|
; Default Value: 0
|
|
pm.max_requests = 1000
|
|
|
|
; Make sure the FPM workers can reach the environment variables for configuration
|
|
clear_env = $clear_env
|
|
|
|
; Catch output from PHP
|
|
catch_workers_output = yes
|
|
|
|
; Remove the 'child 10 said into stderr' prefix in the log and only show the actual message
|
|
decorate_workers_output = no
|
|
|
|
; Enable ping page to use in healthcheck
|
|
ping.path = /fpm-ping |