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