Blame SOURCES/php-fpm-www.conf

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