php-fpm.ini 5.3 KB

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