php8: update to 8.2.0
[feed/packages.git] / lang / php8 / files / php8-fpm-www.conf
1 ; Start a new pool named 'www'.
2 ; the variable $pool can be used in any directive and will be replaced by the
3 ; pool name ('www' here)
4 [www]
5
6 ; Per pool prefix
7 ; It only applies on the following directives:
8 ; - 'access.log'
9 ; - 'slowlog'
10 ; - 'listen' (unixsocket)
11 ; - 'chroot'
12 ; - 'chdir'
13 ; - 'php_values'
14 ; - 'php_admin_values'
15 ; When not set, the global prefix (or /usr) applies instead.
16 ; Note: This directive can also be relative to the global prefix.
17 ; Default Value: none
18 ;prefix = /path/to/pools/$pool
19
20 ; Unix user/group of processes
21 ; Note: The user is mandatory. If the group is not set, the default user's group
22 ; will be used.
23 user = nobody
24 ;group =
25
26 ; The address on which to accept FastCGI requests.
27 ; Valid syntaxes are:
28 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
29 ; a specific port;
30 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
31 ; a specific port;
32 ; 'port' - to listen on a TCP socket to all addresses
33 ; (IPv6 and IPv4-mapped) on a specific port;
34 ; '/path/to/unix/socket' - to listen on a unix socket.
35 ; Note: This value is mandatory.
36 listen = /var/run/php8-fpm.sock
37
38 ; Set listen(2) backlog.
39 ; Default Value: 511 (-1 on Linux, FreeBSD and OpenBSD)
40 ;listen.backlog = 511
41
42 ; Set permissions for unix socket, if one is used. In Linux, read/write
43 ; permissions must be set in order to allow connections from a web server. Many
44 ; BSD-derived systems allow connections regardless of permissions. The owner
45 ; and group can be specified either by name or by their numeric IDs.
46 ; Default Values: user and group are set as the running user
47 ; mode is set to 0660
48 ;listen.owner = www-data
49 ;listen.group = www-data
50 ;listen.mode = 0660
51 ; When POSIX Access Control Lists are supported you can set them using
52 ; these options, value is a comma separated list of user/group names.
53 ; When set, listen.owner and listen.group are ignored
54 ;listen.acl_users =
55 ;listen.acl_groups =
56
57 ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
58 ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
59 ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
60 ; must be separated by a comma. If this value is left blank, connections will be
61 ; accepted from any ip address.
62 ; Default Value: any
63 ;listen.allowed_clients = 127.0.0.1
64
65 ; Set the associated the route table (FIB). FreeBSD only
66 ; Default Value: -1
67 ;listen.setfib = 1
68
69 ; Specify the nice(2) priority to apply to the pool processes (only if set)
70 ; The value can vary from -19 (highest priority) to 20 (lower priority)
71 ; Note: - It will only work if the FPM master process is launched as root
72 ; - The pool processes will inherit the master process priority
73 ; unless it specified otherwise
74 ; Default Value: no set
75 ; process.priority = -19
76
77 ; Set the process dumpable flag (PR_SET_DUMPABLE prctl for Linux or
78 ; PROC_TRACE_CTL procctl for FreeBSD) even if the process user
79 ; or group is different than the master process user. It allows to create process
80 ; core dump and ptrace the process for the pool user.
81 ; Default Value: no
82 ; process.dumpable = yes
83
84 ; Choose how the process manager will control the number of child processes.
85 ; Possible Values:
86 ; static - a fixed number (pm.max_children) of child processes;
87 ; dynamic - the number of child processes are set dynamically based on the
88 ; following directives. With this process management, there will be
89 ; always at least 1 children.
90 ; pm.max_children - the maximum number of children that can
91 ; be alive at the same time.
92 ; pm.start_servers - the number of children created on startup.
93 ; pm.min_spare_servers - the minimum number of children in 'idle'
94 ; state (waiting to process). If the number
95 ; of 'idle' processes is less than this
96 ; number then some children will be created.
97 ; pm.max_spare_servers - the maximum number of children in 'idle'
98 ; state (waiting to process). If the number
99 ; of 'idle' processes is greater than this
100 ; number then some children will be killed.
101 ; pm.max_spawn_rate - the maximum number of rate to spawn child
102 ; processes at once.
103 ; ondemand - no children are created at startup. Children will be forked when
104 ; new requests will connect. The following parameter are used:
105 ; pm.max_children - the maximum number of children that
106 ; can be alive at the same time.
107 ; pm.process_idle_timeout - The number of seconds after which
108 ; an idle process will be killed.
109 ; Note: This value is mandatory.
110 pm = dynamic
111
112 ; The number of child processes to be created when pm is set to 'static' and the
113 ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
114 ; This value sets the limit on the number of simultaneous requests that will be
115 ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
116 ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
117 ; CGI. The below defaults are based on a server without much resources. Don't
118 ; forget to tweak pm.* to fit your needs.
119 ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
120 ; Note: This value is mandatory.
121 pm.max_children = 5
122
123 ; The number of child processes created on startup.
124 ; Note: Used only when pm is set to 'dynamic'
125 ; Default Value: (min_spare_servers + max_spare_servers) / 2
126 pm.start_servers = 2
127
128 ; The desired minimum number of idle server processes.
129 ; Note: Used only when pm is set to 'dynamic'
130 ; Note: Mandatory when pm is set to 'dynamic'
131 pm.min_spare_servers = 1
132
133 ; The desired maximum number of idle server processes.
134 ; Note: Used only when pm is set to 'dynamic'
135 ; Note: Mandatory when pm is set to 'dynamic'
136 pm.max_spare_servers = 3
137
138 ; The number of rate to spawn child processes at once.
139 ; Note: Used only when pm is set to 'dynamic'
140 ; Note: Mandatory when pm is set to 'dynamic'
141 ; Default Value: 32
142 ;pm.max_spawn_rate = 32
143
144 ; The number of seconds after which an idle process will be killed.
145 ; Note: Used only when pm is set to 'ondemand'
146 ; Default Value: 10s
147 ;pm.process_idle_timeout = 10s;
148
149 ; The number of requests each child process should execute before respawning.
150 ; This can be useful to work around memory leaks in 3rd party libraries. For
151 ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
152 ; Default Value: 0
153 ;pm.max_requests = 500
154
155 ; The URI to view the FPM status page. If this value is not set, no URI will be
156 ; recognized as a status page. It shows the following information:
157 ; pool - the name of the pool;
158 ; process manager - static, dynamic or ondemand;
159 ; start time - the date and time FPM has started;
160 ; start since - number of seconds since FPM has started;
161 ; accepted conn - the number of request accepted by the pool;
162 ; listen queue - the number of request in the queue of pending
163 ; connections (see backlog in listen(2));
164 ; max listen queue - the maximum number of requests in the queue
165 ; of pending connections since FPM has started;
166 ; listen queue len - the size of the socket queue of pending connections;
167 ; idle processes - the number of idle processes;
168 ; active processes - the number of active processes;
169 ; total processes - the number of idle + active processes;
170 ; max active processes - the maximum number of active processes since FPM
171 ; has started;
172 ; max children reached - number of times, the process limit has been reached,
173 ; when pm tries to start more children (works only for
174 ; pm 'dynamic' and 'ondemand');
175 ; Value are updated in real time.
176 ; Example output:
177 ; pool: www
178 ; process manager: static
179 ; start time: 01/Jul/2011:17:53:49 +0200
180 ; start since: 62636
181 ; accepted conn: 190460
182 ; listen queue: 0
183 ; max listen queue: 1
184 ; listen queue len: 42
185 ; idle processes: 4
186 ; active processes: 11
187 ; total processes: 15
188 ; max active processes: 12
189 ; max children reached: 0
190 ;
191 ; By default the status page output is formatted as text/plain. Passing either
192 ; 'html', 'xml' or 'json' in the query string will return the corresponding
193 ; output syntax. Example:
194 ; http://www.foo.bar/status
195 ; http://www.foo.bar/status?json
196 ; http://www.foo.bar/status?html
197 ; http://www.foo.bar/status?xml
198 ;
199 ; By default the status page only outputs short status. Passing 'full' in the
200 ; query string will also return status for each pool process.
201 ; Example:
202 ; http://www.foo.bar/status?full
203 ; http://www.foo.bar/status?json&full
204 ; http://www.foo.bar/status?html&full
205 ; http://www.foo.bar/status?xml&full
206 ; The Full status returns for each process:
207 ; pid - the PID of the process;
208 ; state - the state of the process (Idle, Running, ...);
209 ; start time - the date and time the process has started;
210 ; start since - the number of seconds since the process has started;
211 ; requests - the number of requests the process has served;
212 ; request duration - the duration in µs of the requests;
213 ; request method - the request method (GET, POST, ...);
214 ; request URI - the request URI with the query string;
215 ; content length - the content length of the request (only with POST);
216 ; user - the user (PHP_AUTH_USER) (or '-' if not set);
217 ; script - the main script called (or '-' if not set);
218 ; last request cpu - the %cpu the last request consumed
219 ; it's always 0 if the process is not in Idle state
220 ; because CPU calculation is done when the request
221 ; processing has terminated;
222 ; last request memory - the max amount of memory the last request consumed
223 ; it's always 0 if the process is not in Idle state
224 ; because memory calculation is done when the request
225 ; processing has terminated;
226 ; If the process is in Idle state, then informations are related to the
227 ; last request the process has served. Otherwise informations are related to
228 ; the current request being served.
229 ; Example output:
230 ; ************************
231 ; pid: 31330
232 ; state: Running
233 ; start time: 01/Jul/2011:17:53:49 +0200
234 ; start since: 63087
235 ; requests: 12808
236 ; request duration: 1250261
237 ; request method: GET
238 ; request URI: /test_mem.php?N=10000
239 ; content length: 0
240 ; user: -
241 ; script: /home/fat/web/docs/php/test_mem.php
242 ; last request cpu: 0.00
243 ; last request memory: 0
244 ;
245 ; Note: There is a real-time FPM status monitoring sample web page available
246 ; It's available in: ${prefix}/share/fpm/status.html
247 ;
248 ; Note: The value must start with a leading slash (/). The value can be
249 ; anything, but it may not be a good idea to use the .php extension or it
250 ; may conflict with a real PHP file.
251 ; Default Value: not set
252 ;pm.status_path = /status
253
254 ; The address on which to accept FastCGI status request. This creates a new
255 ; invisible pool that can handle requests independently. This is useful
256 ; if the main pool is busy with long running requests because it is still possible
257 ; to get the status before finishing the long running requests.
258 ;
259 ; Valid syntaxes are:
260 ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
261 ; a specific port;
262 ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
263 ; a specific port;
264 ; 'port' - to listen on a TCP socket to all addresses
265 ; (IPv6 and IPv4-mapped) on a specific port;
266 ; '/path/to/unix/socket' - to listen on a unix socket.
267 ; Default Value: value of the listen option
268 ;pm.status_listen = 127.0.0.1:9001
269
270 ; The ping URI to call the monitoring page of FPM. If this value is not set, no
271 ; URI will be recognized as a ping page. This could be used to test from outside
272 ; that FPM is alive and responding, or to
273 ; - create a graph of FPM availability (rrd or such);
274 ; - remove a server from a group if it is not responding (load balancing);
275 ; - trigger alerts for the operating team (24/7).
276 ; Note: The value must start with a leading slash (/). The value can be
277 ; anything, but it may not be a good idea to use the .php extension or it
278 ; may conflict with a real PHP file.
279 ; Default Value: not set
280 ;ping.path = /ping
281
282 ; This directive may be used to customize the response of a ping request. The
283 ; response is formatted as text/plain with a 200 response code.
284 ; Default Value: pong
285 ;ping.response = pong
286
287 ; The access log file
288 ; Default: not set
289 ;access.log = log/$pool.access.log
290
291 ; The access log format.
292 ; The following syntax is allowed
293 ; %%: the '%' character
294 ; %C: %CPU used by the request
295 ; it can accept the following format:
296 ; - %{user}C for user CPU only
297 ; - %{system}C for system CPU only
298 ; - %{total}C for user + system CPU (default)
299 ; %d: time taken to serve the request
300 ; it can accept the following format:
301 ; - %{seconds}d (default)
302 ; - %{milliseconds}d
303 ; - %{milli}d
304 ; - %{microseconds}d
305 ; - %{micro}d
306 ; %e: an environment variable (same as $_ENV or $_SERVER)
307 ; it must be associated with embraces to specify the name of the env
308 ; variable. Some examples:
309 ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
310 ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
311 ; %f: script filename
312 ; %l: content-length of the request (for POST request only)
313 ; %m: request method
314 ; %M: peak of memory allocated by PHP
315 ; it can accept the following format:
316 ; - %{bytes}M (default)
317 ; - %{kilobytes}M
318 ; - %{kilo}M
319 ; - %{megabytes}M
320 ; - %{mega}M
321 ; %n: pool name
322 ; %o: output header
323 ; it must be associated with embraces to specify the name of the header:
324 ; - %{Content-Type}o
325 ; - %{X-Powered-By}o
326 ; - %{Transfert-Encoding}o
327 ; - ....
328 ; %p: PID of the child that serviced the request
329 ; %P: PID of the parent of the child that serviced the request
330 ; %q: the query string
331 ; %Q: the '?' character if query string exists
332 ; %r: the request URI (without the query string, see %q and %Q)
333 ; %R: remote IP address
334 ; %s: status (response code)
335 ; %t: server time the request was received
336 ; it can accept a strftime(3) format:
337 ; %d/%b/%Y:%H:%M:%S %z (default)
338 ; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
339 ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
340 ; %T: time the log has been written (the request has finished)
341 ; it can accept a strftime(3) format:
342 ; %d/%b/%Y:%H:%M:%S %z (default)
343 ; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
344 ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
345 ; %u: remote user
346 ;
347 ; Default: "%R - %u %t \"%m %r\" %s"
348 ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{milli}d %{kilo}M %C%%"
349
350 ; A list of request_uri values which should be filtered from the access log.
351 ;
352 ; As a security precuation, this setting will be ignored if:
353 ; - the request method is not GET or HEAD; or
354 ; - there is a request body; or
355 ; - there are query parameters; or
356 ; - the response code is outwith the successful range of 200 to 299
357 ;
358 ; Note: The paths are matched against the output of the access.format tag "%r".
359 ; On common configurations, this may look more like SCRIPT_NAME than the
360 ; expected pre-rewrite URI.
361 ;
362 ; Default Value: not set
363 ;access.suppress_path[] = /ping
364 ;access.suppress_path[] = /health_check.php
365
366 ; The log file for slow requests
367 ; Default Value: not set
368 ; Note: slowlog is mandatory if request_slowlog_timeout is set
369 ;slowlog = log/$pool.log.slow
370
371 ; The timeout for serving a single request after which a PHP backtrace will be
372 ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
373 ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
374 ; Default Value: 0
375 ;request_slowlog_timeout = 0
376
377 ; Depth of slow log stack trace.
378 ; Default Value: 20
379 ;request_slowlog_trace_depth = 20
380
381 ; The timeout for serving a single request after which the worker process will
382 ; be killed. This option should be used when the 'max_execution_time' ini option
383 ; does not stop script execution for some reason. A value of '0' means 'off'.
384 ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
385 ; Default Value: 0
386 ;request_terminate_timeout = 0
387
388 ; The timeout set by 'request_terminate_timeout' ini option is not engaged after
389 ; application calls 'fastcgi_finish_request' or when application has finished and
390 ; shutdown functions are being called (registered via register_shutdown_function).
391 ; This option will enable timeout limit to be applied unconditionally
392 ; even in such cases.
393 ; Default Value: no
394 ;request_terminate_timeout_track_finished = no
395
396 ; Set open file descriptor rlimit.
397 ; Default Value: system defined value
398 ;rlimit_files = 1024
399
400 ; Set max core size rlimit.
401 ; Possible Values: 'unlimited' or an integer greater or equal to 0
402 ; Default Value: system defined value
403 ;rlimit_core = 0
404
405 ; Chroot to this directory at the start. This value must be defined as an
406 ; absolute path. When this value is not set, chroot is not used.
407 ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
408 ; of its subdirectories. If the pool prefix is not set, the global prefix
409 ; will be used instead.
410 ; Note: chrooting is a great security feature and should be used whenever
411 ; possible. However, all PHP paths will be relative to the chroot
412 ; (error_log, sessions.save_path, ...).
413 ; Default Value: not set
414 ;chroot =
415
416 ; Chdir to this directory at the start.
417 ; Note: relative path can be used.
418 ; Default Value: current directory or / when chroot
419 chdir = /
420
421 ; Redirect worker stdout and stderr into main error log. If not set, stdout and
422 ; stderr will be redirected to /dev/null according to FastCGI specs.
423 ; Note: on highloaded environment, this can cause some delay in the page
424 ; process time (several ms).
425 ; Default Value: no
426 ;catch_workers_output = yes
427
428 ; Decorate worker output with prefix and suffix containing information about
429 ; the child that writes to the log and if stdout or stderr is used as well as
430 ; log level and time. This options is used only if catch_workers_output is yes.
431 ; Settings to "no" will output data as written to the stdout or stderr.
432 ; Default value: yes
433 ;decorate_workers_output = no
434
435 ; Clear environment in FPM workers
436 ; Prevents arbitrary environment variables from reaching FPM worker processes
437 ; by clearing the environment in workers before env vars specified in this
438 ; pool configuration are added.
439 ; Setting to "no" will make all environment variables available to PHP code
440 ; via getenv(), $_ENV and $_SERVER.
441 ; Default Value: yes
442 ;clear_env = no
443
444 ; Limits the extensions of the main script FPM will allow to parse. This can
445 ; prevent configuration mistakes on the web server side. You should only limit
446 ; FPM to .php extensions to prevent malicious users to use other extensions to
447 ; execute php code.
448 ; Note: set an empty value to allow all extensions.
449 ; Default Value: .php
450 ;security.limit_extensions = .php .php3 .php4 .php5 .php7
451
452 ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
453 ; the current environment.
454 ; Default Value: clean env
455 ;env[HOSTNAME] = $HOSTNAME
456 ;env[PATH] = /usr/local/bin:/usr/bin:/bin
457 ;env[TMP] = /tmp
458 ;env[TMPDIR] = /tmp
459 ;env[TEMP] = /tmp
460
461 ; Additional php.ini defines, specific to this pool of workers. These settings
462 ; overwrite the values previously defined in the php.ini. The directives are the
463 ; same as the PHP SAPI:
464 ; php_value/php_flag - you can set classic ini defines which can
465 ; be overwritten from PHP call 'ini_set'.
466 ; php_admin_value/php_admin_flag - these directives won't be overwritten by
467 ; PHP call 'ini_set'
468 ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
469
470 ; Defining 'extension' will load the corresponding shared extension from
471 ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
472 ; overwrite previously defined php.ini values, but will append the new value
473 ; instead.
474
475 ; Note: path INI options can be relative and will be expanded with the prefix
476 ; (pool, global or /usr)
477
478 ; Default Value: nothing is defined by default except the values in php.ini and
479 ; specified at startup with the -d argument
480 ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
481 ;php_flag[display_errors] = off
482 ;php_admin_value[error_log] = /var/log/fpm-php.www.log
483 ;php_admin_flag[log_errors] = on
484 ;php_admin_value[memory_limit] = 32M