Created
February 14, 2018 09:44
-
-
Save takeit/2ee16ee50878eeab01a7ca11b69dec10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Start a new pool named 'www'. | |
; the variable $pool can be used in any directive and will be replaced by the | |
; pool name ('www' here) | |
[www] | |
; Unix user/group of processes | |
; Note: The user is mandatory. If the group is not set, the default user's group | |
; will be used. | |
user = www-data | |
group = www-data | |
; 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/php7.2-fpm.sock | |
listen = 9000 | |
; Set listen(2) backlog. | |
; Default Value: 511 (-1 on FreeBSD and OpenBSD) | |
;listen.backlog = 511 | |
; 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. | |
; Default Values: user and group are set as the running user | |
; mode is set to 0660 | |
listen.owner = www-data | |
listen.group = www-data | |
;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 = | |
; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect. | |
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original | |
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address | |
; must be separated by a comma. If this value is left blank, connections will be | |
; accepted from any ip address. | |
; Default Value: any | |
listen.allowed_clients = 127.0.0.1 | |
; Specify the nice(2) priority to apply to the pool processes (only if set) | |
; The value can vary from -19 (highest priority) to 20 (lower priority) | |
; Note: - It will only work if the FPM master process is launched as root | |
; - The pool processes will inherit the master process priority | |
; unless it specified otherwise | |
; Default Value: no set | |
; process.priority = -19 | |
; Choose how the process manager will control the number of child processes. | |
; Possible Values: | |
; static - a fixed number (pm.max_children) of child processes; | |
; dynamic - the number of child processes are set dynamically based on the | |
; following directives. With this process management, there will be | |
; always at least 1 children. | |
; pm.max_children - the maximum number of children that can | |
; be alive at the same time. | |
; pm.start_servers - the number of children created on startup. | |
; pm.min_spare_servers - the minimum number of children in 'idle' | |
; state (waiting to process). If the number | |
; of 'idle' processes is less than this | |
; number then some children will be created. | |
; pm.max_spare_servers - the maximum number of children in 'idle' | |
; state (waiting to process). If the number | |
; of 'idle' processes is greater than this | |
; number then some children will be killed. | |
; ondemand - no children are created at startup. Children will be forked when | |
; new requests will connect. The following parameter are used: | |
; pm.max_children - the maximum number of children that | |
; can be alive at the same time. | |
; pm.process_idle_timeout - The number of seconds after which | |
; an idle process will be killed. | |
; Note: This value is mandatory. | |
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. | |
; 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 = 5 | |
; The number of child processes created on startup. | |
; Note: Used only when pm is set to 'dynamic' | |
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 | |
pm.start_servers = 2 | |
; The desired minimum number of idle server processes. | |
; Note: Used only when pm is set to 'dynamic' | |
; Note: Mandatory when pm is set to 'dynamic' | |
pm.min_spare_servers = 1 | |
; The desired maximum number of idle server processes. | |
; Note: Used only when pm is set to 'dynamic' | |
; Note: Mandatory when pm is set to 'dynamic' | |
pm.max_spare_servers = 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment