d2399a
; Start a new pool named 'www'.
d2399a
[www]
d2399a
d2399a
; The address on which to accept FastCGI requests.
d2399a
; Valid syntaxes are:
d2399a
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on
d2399a
;                            a specific port;
d2399a
;   'port'                 - to listen on a TCP socket to all addresses on a
d2399a
;                            specific port;
d2399a
;   '/path/to/unix/socket' - to listen on a unix socket.
d2399a
; Note: This value is mandatory.
d2399a
listen = 127.0.0.1:9000
d2399a
d2399a
; Set listen(2) backlog. A value of '-1' means unlimited.
d2399a
; Default Value: -1
d2399a
;listen.backlog = -1
d2399a
 
d2399a
; List of ipv4 addresses of FastCGI clients which are allowed to connect.
d2399a
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
d2399a
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
d2399a
; must be separated by a comma. If this value is left blank, connections will be
d2399a
; accepted from any ip address.
d2399a
; Default Value: any
d2399a
listen.allowed_clients = 127.0.0.1
d2399a
d2399a
; Set permissions for unix socket, if one is used. In Linux, read/write
d2399a
; permissions must be set in order to allow connections from a web server. Many
d2399a
; BSD-derived systems allow connections regardless of permissions. 
d2399a
; Default Values: user and group are set as the running user
d2399a
;                 mode is set to 0666
d2399a
;listen.owner = nobody
d2399a
;listen.group = nobody
d2399a
;listen.mode = 0666
d2399a
d2399a
; Unix user/group of processes
d2399a
; Note: The user is mandatory. If the group is not set, the default user's group
d2399a
;       will be used.
d2399a
; RPM: apache Choosed to be able to access some dir as httpd
d2399a
user = apache
d2399a
; RPM: Keep a group allowed to write in log dir.
d2399a
group = apache
d2399a
d2399a
; Choose how the process manager will control the number of child processes.
d2399a
; Possible Values:
d2399a
;   static  - a fixed number (pm.max_children) of child processes;
d2399a
;   dynamic - the number of child processes are set dynamically based on the
d2399a
;             following directives:
d2399a
;             pm.max_children      - the maximum number of children that can
d2399a
;                                    be alive at the same time.
d2399a
;             pm.start_servers     - the number of children created on startup.
d2399a
;             pm.min_spare_servers - the minimum number of children in 'idle'
d2399a
;                                    state (waiting to process). If the number
d2399a
;                                    of 'idle' processes is less than this
d2399a
;                                    number then some children will be created.
d2399a
;             pm.max_spare_servers - the maximum number of children in 'idle'
d2399a
;                                    state (waiting to process). If the number
d2399a
;                                    of 'idle' processes is greater than this
d2399a
;                                    number then some children will be killed.
d2399a
; Note: This value is mandatory.
d2399a
pm = dynamic
d2399a
d2399a
; The number of child processes to be created when pm is set to 'static' and the
d2399a
; maximum number of child processes to be created when pm is set to 'dynamic'.
d2399a
; This value sets the limit on the number of simultaneous requests that will be
d2399a
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
d2399a
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
d2399a
; CGI.
d2399a
; Note: Used when pm is set to either 'static' or 'dynamic'
d2399a
; Note: This value is mandatory.
d2399a
pm.max_children = 50
d2399a
d2399a
; The number of child processes created on startup.
d2399a
; Note: Used only when pm is set to 'dynamic'
d2399a
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
d2399a
pm.start_servers = 5
d2399a
d2399a
; The desired minimum number of idle server processes.
d2399a
; Note: Used only when pm is set to 'dynamic'
d2399a
; Note: Mandatory when pm is set to 'dynamic'
d2399a
pm.min_spare_servers = 5
d2399a
d2399a
; The desired maximum number of idle server processes.
d2399a
; Note: Used only when pm is set to 'dynamic'
d2399a
; Note: Mandatory when pm is set to 'dynamic'
d2399a
pm.max_spare_servers = 35
d2399a
 
d2399a
; The number of requests each child process should execute before respawning.
d2399a
; This can be useful to work around memory leaks in 3rd party libraries. For
d2399a
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
d2399a
; Default Value: 0
d2399a
;pm.max_requests = 500
d2399a
d2399a
; The URI to view the FPM status page. If this value is not set, no URI will be
d2399a
; recognized as a status page. By default, the status page shows the following
d2399a
; information:
d2399a
;   accepted conn    - the number of request accepted by the pool;
d2399a
;   pool             - the name of the pool;
d2399a
;   process manager  - static or dynamic;
d2399a
;   idle processes   - the number of idle processes;
d2399a
;   active processes - the number of active processes;
d2399a
;   total processes  - the number of idle + active processes.
d2399a
; The values of 'idle processes', 'active processes' and 'total processes' are
d2399a
; updated each second. The value of 'accepted conn' is updated in real time.
d2399a
; Example output:
d2399a
;   accepted conn:   12073
d2399a
;   pool:             www
d2399a
;   process manager:  static
d2399a
;   idle processes:   35
d2399a
;   active processes: 65
d2399a
;   total processes:  100
d2399a
; By default the status page output is formatted as text/plain. Passing either
d2399a
; 'html' or 'json' as a query string will return the corresponding output
d2399a
; syntax. Example:
d2399a
;   http://www.foo.bar/status
d2399a
;   http://www.foo.bar/status?json
d2399a
;   http://www.foo.bar/status?html
d2399a
; Note: The value must start with a leading slash (/). The value can be
d2399a
;       anything, but it may not be a good idea to use the .php extension or it
d2399a
;       may conflict with a real PHP file.
d2399a
; Default Value: not set 
d2399a
;pm.status_path = /status
d2399a
 
d2399a
; The ping URI to call the monitoring page of FPM. If this value is not set, no
d2399a
; URI will be recognized as a ping page. This could be used to test from outside
d2399a
; that FPM is alive and responding, or to
d2399a
; - create a graph of FPM availability (rrd or such);
d2399a
; - remove a server from a group if it is not responding (load balancing);
d2399a
; - trigger alerts for the operating team (24/7).
d2399a
; Note: The value must start with a leading slash (/). The value can be
d2399a
;       anything, but it may not be a good idea to use the .php extension or it
d2399a
;       may conflict with a real PHP file.
d2399a
; Default Value: not set
d2399a
;ping.path = /ping
d2399a
d2399a
; This directive may be used to customize the response of a ping request. The
d2399a
; response is formatted as text/plain with a 200 response code.
d2399a
; Default Value: pong
d2399a
;ping.response = pong
d2399a
 
d2399a
; The timeout for serving a single request after which the worker process will
d2399a
; be killed. This option should be used when the 'max_execution_time' ini option
d2399a
; does not stop script execution for some reason. A value of '0' means 'off'.
d2399a
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
d2399a
; Default Value: 0
d2399a
;request_terminate_timeout = 0
d2399a
 
d2399a
; The timeout for serving a single request after which a PHP backtrace will be
d2399a
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
d2399a
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
d2399a
; Default Value: 0
d2399a
;request_slowlog_timeout = 0
d2399a
 
d2399a
; The log file for slow requests
d2399a
; Default Value: not set
d2399a
; Note: slowlog is mandatory if request_slowlog_timeout is set
d2399a
slowlog = /var/log/php-fpm/www-slow.log
d2399a
 
d2399a
; Set open file descriptor rlimit.
d2399a
; Default Value: system defined value
d2399a
;rlimit_files = 1024
d2399a
 
d2399a
; Set max core size rlimit.
d2399a
; Possible Values: 'unlimited' or an integer greater or equal to 0
d2399a
; Default Value: system defined value
d2399a
;rlimit_core = 0
d2399a
 
d2399a
; Chroot to this directory at the start. This value must be defined as an
d2399a
; absolute path. When this value is not set, chroot is not used.
d2399a
; Note: chrooting is a great security feature and should be used whenever 
d2399a
;       possible. However, all PHP paths will be relative to the chroot
d2399a
;       (error_log, sessions.save_path, ...).
d2399a
; Default Value: not set
d2399a
;chroot = 
d2399a
 
d2399a
; Chdir to this directory at the start. This value must be an absolute path.
d2399a
; Default Value: current directory or / when chroot
d2399a
;chdir = /var/www
d2399a
 
d2399a
; Redirect worker stdout and stderr into main error log. If not set, stdout and
d2399a
; stderr will be redirected to /dev/null according to FastCGI specs.
d2399a
; Default Value: no
d2399a
;catch_workers_output = yes
d2399a
 
d2399a
; Limits the extensions of the main script FPM will allow to parse. This can
d2399a
; prevent configuration mistakes on the web server side. You should only limit
d2399a
; FPM to .php extensions to prevent malicious users to use other extensions to
d2399a
; exectute php code.
d2399a
; Note: set an empty value to allow all extensions.
d2399a
; Default Value: .php
d2399a
;security.limit_extensions = .php .php3 .php4 .php5
d2399a
d2399a
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
d2399a
; the current environment.
d2399a
; Default Value: clean env
d2399a
;env[HOSTNAME] = $HOSTNAME
d2399a
;env[PATH] = /usr/local/bin:/usr/bin:/bin
d2399a
;env[TMP] = /tmp
d2399a
;env[TMPDIR] = /tmp
d2399a
;env[TEMP] = /tmp
d2399a
d2399a
; Additional php.ini defines, specific to this pool of workers. These settings
d2399a
; overwrite the values previously defined in the php.ini. The directives are the
d2399a
; same as the PHP SAPI:
d2399a
;   php_value/php_flag             - you can set classic ini defines which can
d2399a
;                                    be overwritten from PHP call 'ini_set'. 
d2399a
;   php_admin_value/php_admin_flag - these directives won't be overwritten by
d2399a
;                                     PHP call 'ini_set'
d2399a
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
d2399a
d2399a
; Defining 'extension' will load the corresponding shared extension from
d2399a
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
d2399a
; overwrite previously defined php.ini values, but will append the new value
d2399a
; instead.
d2399a
d2399a
; Default Value: nothing is defined by default except the values in php.ini and
d2399a
;                specified at startup with the -d argument
d2399a
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
d2399a
;php_flag[display_errors] = off
d2399a
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
d2399a
php_admin_flag[log_errors] = on
d2399a
;php_admin_value[memory_limit] = 128M
d2399a
d2399a
; Set session path to a directory owned by process user
d2399a
php_value[session.save_handler] = files
d2399a
php_value[session.save_path] = /var/lib/php/session
d2399a