Guest User

Untitled

a guest
Mar 22nd, 2015
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [code]root@vm1:~# cat /etc/php5/fpm/php-fpm.conf
  2. ;;;;;;;;;;;;;;;;;;;;;
  3. ; FPM Configuration ;
  4. ;;;;;;;;;;;;;;;;;;;;;
  5.  
  6. ; All relative paths in this configuration file are relative to PHP's install
  7. ; prefix (/usr). This prefix can be dynamically changed by using the
  8. ; '-p' argument from the command line.
  9.  
  10. ; Include one or more files. If glob(3) exists, it is used to include a bunch of
  11. ; files from a glob(3) pattern. This directive can be used everywhere in the
  12. ; file.
  13. ; Relative path can also be used. They will be prefixed by:
  14. ; - the global prefix if it's been set (-p argument)
  15. ; - /usr otherwise
  16. ;include=/etc/php5/fpm/*.conf
  17.  
  18. ;;;;;;;;;;;;;;;;;;
  19. ; Global Options ;
  20. ;;;;;;;;;;;;;;;;;;
  21.  
  22. [global]
  23. ; Pid file
  24. ; Note: the default prefix is /var
  25. ; Default Value: none
  26. pid = /var/run/php5-fpm.pid
  27.  
  28. ; Error log file
  29. ; If it's set to "syslog", log is sent to syslogd instead of being written
  30. ; in a local file.
  31. ; Note: the default prefix is /var
  32. ; Default Value: log/php-fpm.log
  33. error_log = /var/log/php5-fpm.log
  34.  
  35. ; syslog_facility is used to specify what type of program is logging the
  36. ; message. This lets syslogd specify that messages from different facilities
  37. ; will be handled differently.
  38. ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
  39. ; Default Value: daemon
  40. ;syslog.facility = daemon
  41.  
  42. ; syslog_ident is prepended to every message. If you have multiple FPM
  43. ; instances running on the same server, you can change the default value
  44. ; which must suit common needs.
  45. ; Default Value: php-fpm
  46. ;syslog.ident = php-fpm
  47.  
  48. ; Log level
  49. ; Possible Values: alert, error, warning, notice, debug
  50. ; Default Value: notice
  51. ;log_level = notice
  52. log_level = debug
  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.  
  59.  
  60. ;emergency_restart_threshold = 10
  61.  
  62. ;emergency_restart_interval = 1m
  63.  
  64. ;process_control_timeout = 10
  65.  
  66.  
  67.  
  68. ; Interval of time used by emergency_restart_interval to determine when
  69. ; a graceful restart will be initiated. This can be useful to work around
  70. ; accidental corruptions in an accelerator's shared memory.
  71. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  72. ; Default Unit: seconds
  73. ; Default Value: 0
  74. ;emergency_restart_interval = 0
  75.  
  76. ; Time limit for child processes to wait for a reaction on signals from master.
  77. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  78. ; Default Unit: seconds
  79. ; Default Value: 0
  80. ;process_control_timeout = 0
  81.  
  82. ; The maximum number of processes FPM will fork. This has been design to control
  83. ; the global number of processes when using dynamic PM within a lot of pools.
  84. ; Use it with caution.
  85. ; Note: A value of 0 indicates no limit
  86. ; Default Value: 0
  87. ; process.max = 128
  88.  
  89. ; Specify the nice(2) priority to apply to the master process (only if set)
  90. ; The value can vary from -19 (highest priority) to 20 (lower priority)
  91. ; Note: - It will only work if the FPM master process is launched as root
  92. ; - The pool process will inherit the master process priority
  93. ; unless it specified otherwise
  94. ; Default Value: no set
  95. ; process.priority = -19
  96.  
  97. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  98. ; Default Value: yes
  99. ;daemonize = yes
  100. emergency_restart_threshold = 0
  101. emergency_restart_interval = 1m
  102. process_control_timeout = 5s
  103. daemonize = yes
  104. ; Set open file descriptor rlimit for the master process.
  105. ; Default Value: system defined value
  106. ;rlimit_files = 1024
  107.  
  108. ; Set max core size rlimit for the master process.
  109. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  110. ; Default Value: system defined value
  111. ;rlimit_core = 0
  112.  
  113. ; Specify the event mechanism FPM will use. The following is available:
  114. ; - select (any POSIX os)
  115. ; - poll (any POSIX os)
  116. ; - epoll (linux >= 2.5.44)
  117. ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0)
  118. ; - /dev/poll (Solaris >= 7)
  119. ; - port (Solaris >= 10)
  120. ; Default Value: not set (auto detection)
  121. ;events.mechanism = epoll
  122.  
  123. ; When FPM is build with systemd integration, specify the interval,
  124. ; in second, between health report notification to systemd.
  125. ; Set to 0 to disable.
  126. ; Available Units: s(econds), m(inutes), h(ours)
  127. ; Default Unit: seconds
  128. ; Default value: 10
  129. ;systemd_interval = 10
  130.  
  131. ;;;;;;;;;;;;;;;;;;;;
  132. ; Pool Definitions ;
  133. ;;;;;;;;;;;;;;;;;;;;
  134.  
  135. ; Multiple pools of child processes may be started with different listening
  136. ; ports and different management options. The name of the pool will be
  137. ; used in logs and stats. There is no limitation on the number of pools which
  138. ; FPM can handle. Your system will tell you anyway :)
  139.  
  140. ; To configure the pools it is recommended to have one .conf file per
  141. ; pool in the following directory:
  142. include=/etc/php5/fpm/pool.d/*.conf
  143. [/code]
RAW Paste Data