Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 1474577

Browse files
committed
refresh FPM configuration from upstream
1 parent ce1061c commit 1474577

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

php-fpm-www.conf

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; Start a new pool named 'www'.
2-
; the variable $pool can we used in any directive and will be replaced by the
2+
; the variable $pool can be used in any directive and will be replaced by the
33
; pool name ('www' here)
44
[www]
55

@@ -128,7 +128,7 @@ pm.min_spare_servers = 5
128128
; Note: Used only when pm is set to 'dynamic'
129129
; Note: Mandatory when pm is set to 'dynamic'
130130
pm.max_spare_servers = 35
131-
131+
132132
; The number of seconds after which an idle process will be killed.
133133
; Note: Used only when pm is set to 'ondemand'
134134
; Default Value: 10s
@@ -238,7 +238,7 @@ pm.max_spare_servers = 35
238238
; may conflict with a real PHP file.
239239
; Default Value: not set
240240
;pm.status_path = /status
241-
241+
242242
; The ping URI to call the monitoring page of FPM. If this value is not set, no
243243
; URI will be recognized as a ping page. This could be used to test from outside
244244
; that FPM is alive and responding, or to
@@ -255,7 +255,7 @@ pm.max_spare_servers = 35
255255
; response is formatted as text/plain with a 200 response code.
256256
; Default Value: pong
257257
;ping.response = pong
258-
258+
259259
; The access log file
260260
; Default: not set
261261
;access.log = log/$pool.access.log
@@ -330,22 +330,26 @@ slowlog = /var/log/php-fpm/www-slow.log
330330
; Default Value: 0
331331
;request_slowlog_timeout = 0
332332

333+
; Depth of slow log stack trace.
334+
; Default Value: 20
335+
;request_slowlog_trace_depth = 20
336+
333337
; The timeout for serving a single request after which the worker process will
334338
; be killed. This option should be used when the 'max_execution_time' ini option
335339
; does not stop script execution for some reason. A value of '0' means 'off'.
336340
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
337341
; Default Value: 0
338342
;request_terminate_timeout = 0
339-
343+
340344
; Set open file descriptor rlimit.
341345
; Default Value: system defined value
342346
;rlimit_files = 1024
343-
347+
344348
; Set max core size rlimit.
345349
; Possible Values: 'unlimited' or an integer greater or equal to 0
346350
; Default Value: system defined value
347351
;rlimit_core = 0
348-
352+
349353
; Chroot to this directory at the start. This value must be defined as an
350354
; absolute path. When this value is not set, chroot is not used.
351355
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
@@ -355,20 +359,20 @@ slowlog = /var/log/php-fpm/www-slow.log
355359
; possible. However, all PHP paths will be relative to the chroot
356360
; (error_log, sessions.save_path, ...).
357361
; Default Value: not set
358-
;chroot =
359-
362+
;chroot =
363+
360364
; Chdir to this directory at the start.
361365
; Note: relative path can be used.
362366
; Default Value: current directory or / when chroot
363367
;chdir = /var/www
364-
368+
365369
; Redirect worker stdout and stderr into main error log. If not set, stdout and
366370
; stderr will be redirected to /dev/null according to FastCGI specs.
367371
; Note: on highloaded environement, this can cause some delay in the page
368372
; process time (several ms).
369373
; Default Value: no
370374
;catch_workers_output = yes
371-
375+
372376
; Clear environment in FPM workers
373377
; Prevents arbitrary environment variables from reaching FPM worker processes
374378
; by clearing the environment in workers before env vars specified in this
@@ -381,7 +385,7 @@ slowlog = /var/log/php-fpm/www-slow.log
381385
; Limits the extensions of the main script FPM will allow to parse. This can
382386
; prevent configuration mistakes on the web server side. You should only limit
383387
; FPM to .php extensions to prevent malicious users to use other extensions to
384-
; exectute php code.
388+
; execute php code.
385389
; Note: set an empty value to allow all extensions.
386390
; Default Value: .php
387391
;security.limit_extensions = .php .php3 .php4 .php5 .php7
@@ -399,7 +403,7 @@ slowlog = /var/log/php-fpm/www-slow.log
399403
; overwrite the values previously defined in the php.ini. The directives are the
400404
; same as the PHP SAPI:
401405
; php_value/php_flag - you can set classic ini defines which can
402-
; be overwritten from PHP call 'ini_set'.
406+
; be overwritten from PHP call 'ini_set'.
403407
; php_admin_value/php_admin_flag - these directives won't be overwritten by
404408
; PHP call 'ini_set'
405409
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.

php-fpm.conf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,24 @@ error_log = /var/log/php-fpm/error.log
4343
; Default Value: notice
4444
;log_level = notice
4545

46+
; Log limit on number of characters in the single line (log entry). If the
47+
; line is over the limit, it is wrapped on multiple lines. The limit is for
48+
; all logged characters including message prefix and suffix if present. However
49+
; the new line character does not count into it as it is present only when
50+
; logging to a file descriptor. It means the new line character is not present
51+
; when logging to syslog.
52+
; Default Value: 1024
53+
;log_limit = 4096
54+
55+
; Log buffering specifies if the log line is buffered which means that the
56+
; line is written in a single write operation. If the value is false, then the
57+
; data is written directly into the file descriptor. It is an experimental
58+
; option that can potentionaly improve logging performance and memory usage
59+
; for some heavy logging scenarios. This option is ignored if logging to syslog
60+
; as it has to be always buffered.
61+
; Default value: yes
62+
;log_buffering = no
63+
4664
; If this number of child processes exit with SIGSEGV or SIGBUS within the time
4765
; interval set by emergency_restart_interval then FPM will restart. A value
4866
; of '0' means 'Off'.

0 commit comments

Comments
 (0)