php-fpm.conf 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. ;;;;;;;;;;;;;;;;;;;;;
  2. ; FPM Configuration ;
  3. ;;;;;;;;;;;;;;;;;;;;;
  4. ; All relative paths in this configuration file are relative to PHP's install
  5. ; prefix (/usr). This prefix can be dynamically changed by using the
  6. ; '-p' argument from the command line.
  7. ;;;;;;;;;;;;;;;;;;
  8. ; Global Options ;
  9. ;;;;;;;;;;;;;;;;;;
  10. [global]
  11. ; Pid file
  12. ; Note: the default prefix is /var
  13. ; Default Value: none
  14. pid = /run/php/php7.4-fpm.pid
  15. ; Error log file
  16. ; If it's set to "syslog", log is sent to syslogd instead of being written
  17. ; into a local file.
  18. ; Note: the default prefix is /var
  19. ; Default Value: log/php-fpm.log
  20. ; error_log = /var/log/php7.4-fpm.log
  21. error_log = /dev/stderr
  22. ; syslog_facility is used to specify what type of program is logging the
  23. ; message. This lets syslogd specify that messages from different facilities
  24. ; will be handled differently.
  25. ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
  26. ; Default Value: daemon
  27. ;syslog.facility = daemon
  28. ; syslog_ident is prepended to every message. If you have multiple FPM
  29. ; instances running on the same server, you can change the default value
  30. ; which must suit common needs.
  31. ; Default Value: php-fpm
  32. ;syslog.ident = php-fpm
  33. ; Log level
  34. ; Possible Values: alert, error, warning, notice, debug
  35. ; Default Value: notice
  36. ;log_level = notice
  37. ; Log limit on number of characters in the single line (log entry). If the
  38. ; line is over the limit, it is wrapped on multiple lines. The limit is for
  39. ; all logged characters including message prefix and suffix if present. However
  40. ; the new line character does not count into it as it is present only when
  41. ; logging to a file descriptor. It means the new line character is not present
  42. ; when logging to syslog.
  43. ; Default Value: 1024
  44. ;log_limit = 4096
  45. ; Log buffering specifies if the log line is buffered which means that the
  46. ; line is written in a single write operation. If the value is false, then the
  47. ; data is written directly into the file descriptor. It is an experimental
  48. ; option that can potentionaly improve logging performance and memory usage
  49. ; for some heavy logging scenarios. This option is ignored if logging to syslog
  50. ; as it has to be always buffered.
  51. ; Default value: yes
  52. ;log_buffering = no
  53. ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
  54. ; interval set by emergency_restart_interval then FPM will restart. A value
  55. ; of '0' means 'Off'.
  56. ; Default Value: 0
  57. ;emergency_restart_threshold = 0
  58. ; Interval of time used by emergency_restart_interval to determine when
  59. ; a graceful restart will be initiated. This can be useful to work around
  60. ; accidental corruptions in an accelerator's shared memory.
  61. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  62. ; Default Unit: seconds
  63. ; Default Value: 0
  64. ;emergency_restart_interval = 0
  65. ; Time limit for child processes to wait for a reaction on signals from master.
  66. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  67. ; Default Unit: seconds
  68. ; Default Value: 0
  69. ;process_control_timeout = 0
  70. ; The maximum number of processes FPM will fork. This has been designed to control
  71. ; the global number of processes when using dynamic PM within a lot of pools.
  72. ; Use it with caution.
  73. ; Note: A value of 0 indicates no limit
  74. ; Default Value: 0
  75. ; process.max = 128
  76. process.max = 1
  77. ; Specify the nice(2) priority to apply to the master process (only if set)
  78. ; The value can vary from -19 (highest priority) to 20 (lowest priority)
  79. ; Note: - It will only work if the FPM master process is launched as root
  80. ; - The pool process will inherit the master process priority
  81. ; unless specified otherwise
  82. ; Default Value: no set
  83. ; process.priority = -19
  84. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  85. ; Default Value: yes
  86. ;daemonize = yes
  87. ; Set open file descriptor rlimit for the master process.
  88. ; Default Value: system defined value
  89. ;rlimit_files = 1024
  90. ; Set max core size rlimit for the master process.
  91. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  92. ; Default Value: system defined value
  93. ;rlimit_core = 0
  94. ; Specify the event mechanism FPM will use. The following is available:
  95. ; - select (any POSIX os)
  96. ; - poll (any POSIX os)
  97. ; - epoll (linux >= 2.5.44)
  98. ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0)
  99. ; - /dev/poll (Solaris >= 7)
  100. ; - port (Solaris >= 10)
  101. ; Default Value: not set (auto detection)
  102. ;events.mechanism = epoll
  103. ; When FPM is built with systemd integration, specify the interval,
  104. ; in seconds, between health report notification to systemd.
  105. ; Set to 0 to disable.
  106. ; Available Units: s(econds), m(inutes), h(ours)
  107. ; Default Unit: seconds
  108. ; Default value: 10
  109. ;systemd_interval = 10
  110. ;;;;;;;;;;;;;;;;;;;;
  111. ; Pool Definitions ;
  112. ;;;;;;;;;;;;;;;;;;;;
  113. ; Multiple pools of child processes may be started with different listening
  114. ; ports and different management options. The name of the pool will be
  115. ; used in logs and stats. There is no limitation on the number of pools which
  116. ; FPM can handle. Your system will tell you anyway :)
  117. ; Include one or more files. If glob(3) exists, it is used to include a bunch of
  118. ; files from a glob(3) pattern. This directive can be used everywhere in the
  119. ; file.
  120. ; Relative path can also be used. They will be prefixed by:
  121. ; - the global prefix if it's been set (-p argument)
  122. ; - /usr otherwise
  123. include=/etc/php/7.4/fpm/pool.d/*.conf