Editing /etc/php/7.*/fpm/pool.d/www.conf

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
[[/etc/php/7.*/fpm/pool.d/]]www.conf
+
<pre>
 +
; 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]
 +
 
 +
; Per pool prefix
 +
; It only applies on the following directives:
 +
; - 'access.log'
 +
; - 'slowlog'
 +
; - 'listen' (unixsocket)
 +
; - 'chroot'
 +
; - 'chdir'
 +
; - 'php_values'
 +
; - 'php_admin_values'
 +
; When not set, the global prefix (or /usr) applies instead.
 +
; Note: This directive can also be relative to the global prefix.
 +
; Default Value: none
 +
;prefix = /path/to/pools/$pool
 +
 
 +
; 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
  
; Start a new pool named 'www'.
+
; Set listen(2) backlog.
; the variable $pool can be used in any directive and will be replaced by the
+
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
; pool name ('www' here)
+
;listen.backlog = 511
[www]
 
 
; Per pool prefix
 
; It only applies on the following directives:
 
; - 'access.log'
 
; - 'slowlog'
 
; - 'listen' (unixsocket)
 
; - 'chroot'
 
; - 'chdir'
 
; - 'php_values'
 
; - 'php_admin_values'
 
; When not set, the global prefix (or /usr) applies instead.
 
; Note: This directive can also be relative to the global prefix.
 
; Default Value: none
 
;prefix = /path/to/pools/$pool
 
 
; 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]]
 
 
; 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
 
 
; 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
 
; core dump and ptrace the process for the pool user.
 
; Default Value: no
 
; process.dumpable = yes
 
  
; Choose how the process manager will control the number of child processes.
+
; Set permissions for unix socket, if one is used. In Linux, read/write
; Possible Values:
+
; permissions must be set in order to allow connections from a web server. Many
;   static  - a fixed number (pm.max_children) of child processes;
+
; BSD-derived systems allow connections regardless of permissions.
;   dynamic - the number of child processes are set dynamically based on the
+
; Default Values: user and group are set as the running user
;             following directives. With this process management, there will be
+
;                 mode is set to 0660
;            always at least 1 children.
+
listen.owner = www-data
;            pm.max_children      - the maximum number of children that can
+
listen.group = www-data
;                                    be alive at the same time.
+
;listen.mode = 0660
;            pm.start_servers    - the number of children created on startup.
+
; When POSIX Access Control Lists are supported you can set them using
;             pm.min_spare_servers - the minimum number of children in 'idle'
+
; these options, value is a comma separated list of user/group names.
;                                   state (waiting to process). If the number
+
; When set, listen.owner and listen.group are ignored
;                                   of 'idle' processes is less than this
+
;listen.acl_users =
;                                    number then some children will be created.
+
;listen.acl_groups =
;            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
 
  
 +
; 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
  
  ; The number of child processes to be created when pm is set to 'static' and the
+
; Specify the nice(2) priority to apply to the pool processes (only if set)
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
+
; The value can vary from -19 (highest priority) to 20 (lower priority)
; This value sets the limit on the number of simultaneous requests that will be
+
; Note: - It will only work if the FPM master process is launched as root
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
+
;      - The pool processes will inherit the master process priority
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
+
;        unless it specified otherwise
; CGI. The below defaults are based on a server without much resources. Don't
+
; Default Value: no set
; forget to tweak pm.* to fit your needs.
+
; process.priority = -19
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
+
 
; Note: This value is mandatory.
+
; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
[[pm.max_children]] = 5
+
; or group is differrent than the master process user. It allows to create process
 +
; core dump and ptrace the process for the pool user.
 +
; Default Value: no
 +
; process.dumpable = yes
 +
 
 +
; 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.
 
; The number of child processes created on startup.
Line 122: Line 119:
 
pm.start_servers = 2
 
pm.start_servers = 2
  
<pre>
 
 
; The desired minimum number of idle server processes.
 
; The desired minimum number of idle server processes.
 
; Note: Used only when pm is set to 'dynamic'
 
; Note: Used only when pm is set to 'dynamic'

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page:

Advertising: