php-fpm.conf 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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-fpm7.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/php7/error.log
  20. ;error_log = log/php7/error.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-fpm7
  31. ;syslog.ident = php-fpm7
  32. ; Log level
  33. ; Possible Values: alert, error, warning, notice, debug
  34. ; Default Value: notice
  35. ;log_level = notice
  36. ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
  37. ; interval set by emergency_restart_interval then FPM will restart. A value
  38. ; of '0' means 'Off'.
  39. ; Default Value: 0
  40. ;emergency_restart_threshold = 0
  41. ; Interval of time used by emergency_restart_interval to determine when
  42. ; a graceful restart will be initiated. This can be useful to work around
  43. ; accidental corruptions in an accelerator's shared memory.
  44. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  45. ; Default Unit: seconds
  46. ; Default Value: 0
  47. ;emergency_restart_interval = 0
  48. ; Time limit for child processes to wait for a reaction on signals from master.
  49. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  50. ; Default Unit: seconds
  51. ; Default Value: 0
  52. ;process_control_timeout = 0
  53. ; The maximum number of processes FPM will fork. This has been designed to control
  54. ; the global number of processes when using dynamic PM within a lot of pools.
  55. ; Use it with caution.
  56. ; Note: A value of 0 indicates no limit
  57. ; Default Value: 0
  58. ; process.max = 128
  59. ; Specify the nice(2) priority to apply to the master process (only if set)
  60. ; The value can vary from -19 (highest priority) to 20 (lowest priority)
  61. ; Note: - It will only work if the FPM master process is launched as root
  62. ; - The pool process will inherit the master process priority
  63. ; unless specified otherwise
  64. ; Default Value: no set
  65. ; process.priority = -19
  66. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  67. ; Default Value: yes
  68. ;daemonize = yes
  69. ; Set open file descriptor rlimit for the master process.
  70. ; Default Value: system defined value
  71. ;rlimit_files = 1024
  72. ; Set max core size rlimit for the master process.
  73. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  74. ; Default Value: system defined value
  75. ;rlimit_core = 0
  76. ; Specify the event mechanism FPM will use. The following is available:
  77. ; - select (any POSIX os)
  78. ; - poll (any POSIX os)
  79. ; - epoll (linux >= 2.5.44)
  80. ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0)
  81. ; - /dev/poll (Solaris >= 7)
  82. ; - port (Solaris >= 10)
  83. ; Default Value: not set (auto detection)
  84. ;events.mechanism = epoll
  85. ; When FPM is built with systemd integration, specify the interval,
  86. ; in seconds, between health report notification to systemd.
  87. ; Set to 0 to disable.
  88. ; Available Units: s(econds), m(inutes), h(ours)
  89. ; Default Unit: seconds
  90. ; Default value: 10
  91. ;systemd_interval = 10
  92. ;;;;;;;;;;;;;;;;;;;;
  93. ; Pool Definitions ;
  94. ;;;;;;;;;;;;;;;;;;;;
  95. ; Multiple pools of child processes may be started with different listening
  96. ; ports and different management options. The name of the pool will be
  97. ; used in logs and stats. There is no limitation on the number of pools which
  98. ; FPM can handle. Your system will tell you anyway :)
  99. ; Include one or more files. If glob(3) exists, it is used to include a bunch of
  100. ; files from a glob(3) pattern. This directive can be used everywhere in the
  101. ; file.
  102. ; Relative path can also be used. They will be prefixed by:
  103. ; - the global prefix if it's been set (-p argument)
  104. ; - /usr otherwise
  105. include=/etc/php7/php-fpm.d/*.conf