Advertisement
Guest User

Untitled

a guest
Aug 5th, 2011
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.31 KB | None | 0 0
  1. ; Start a new pool named 'www'.
  2. [www]
  3.  
  4. ; The address on which to accept FastCGI requests.
  5. ; Valid syntaxes are:
  6. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
  7. ; a specific port;
  8. ; 'port' - to listen on a TCP socket to all addresses on a
  9. ; specific port;
  10. ; '/path/to/unix/socket' - to listen on a unix socket.
  11. ; Note: This value is mandatory.
  12. listen = 127.0.0.1:9000
  13.  
  14. ; Set listen(2) backlog. A value of '-1' means unlimited.
  15. ; Default Value: -1
  16. ;listen.backlog = -1
  17.  
  18. ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
  19. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
  20. ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
  21. ; must be separated by a comma. If this value is left blank, connections will be
  22. ; accepted from any ip address.
  23. ; Default Value: any
  24. ;listen.allowed_clients = 127.0.0.1
  25.  
  26. ; Set permissions for unix socket, if one is used. In Linux, read/write
  27. ; permissions must be set in order to allow connections from a web server. Many
  28. ; BSD-derived systems allow connections regardless of permissions.
  29. ; Default Values: user and group are set as the running user
  30. ; mode is set to 0666
  31. ;listen.owner = www-data
  32. ;listen.group = www-data
  33. ;listen.mode = 0666
  34.  
  35. ; Unix user/group of processes
  36. ; Note: The user is mandatory. If the group is not set, the default user's group
  37. ; will be used.
  38. user = www-data
  39. group = www-data
  40.  
  41. ; Choose how the process manager will control the number of child processes.
  42. ; Possible Values:
  43. ; static - a fixed number (pm.max_children) of child processes;
  44. ; dynamic - the number of child processes are set dynamically based on the
  45. ; following directives:
  46. ; pm.max_children - the maximum number of children that can
  47. ; be alive at the same time.
  48. ; pm.start_servers - the number of children created on startup.
  49. ; pm.min_spare_servers - the minimum number of children in 'idle'
  50. ; state (waiting to process). If the number
  51. ; of 'idle' processes is less than this
  52. ; number then some children will be created.
  53. ; pm.max_spare_servers - the maximum number of children in 'idle'
  54. ; state (waiting to process). If the number
  55. ; of 'idle' processes is greater than this
  56. ; number then some children will be killed.
  57. ; Note: This value is mandatory.
  58. pm = static
  59.  
  60. ; The number of child processes to be created when pm is set to 'static' and the
  61. ; maximum number of child processes to be created when pm is set to 'dynamic'.
  62. ; This value sets the limit on the number of simultaneous requests that will be
  63. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  64. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  65. ; CGI.
  66. ; Note: Used when pm is set to either 'static' or 'dynamic'
  67. ; Note: This value is mandatory.
  68. pm.max_children = 10
  69.  
  70. ; The number of child processes created on startup.
  71. ; Note: Used only when pm is set to 'dynamic'
  72. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  73. ;pm.start_servers = 10
  74.  
  75. ; The desired minimum number of idle server processes.
  76. ; Note: Used only when pm is set to 'dynamic'
  77. ; Note: Mandatory when pm is set to 'dynamic'
  78. pm.min_spare_servers = 5
  79.  
  80. ; The desired maximum number of idle server processes.
  81. ; Note: Used only when pm is set to 'dynamic'
  82. ; Note: Mandatory when pm is set to 'dynamic'
  83. pm.max_spare_servers = 5
  84.  
  85. ; The number of requests each child process should execute before respawning.
  86. ; This can be useful to work around memory leaks in 3rd party libraries. For
  87. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  88. ; Default Value: 0
  89. ;pm.max_requests = 0
  90.  
  91. ; The URI to view the FPM status page. If this value is not set, no URI will be
  92. ; recognized as a status page. By default, the status page shows the following
  93. ; information:
  94. ; accepted conn - the number of request accepted by the pool;
  95. ; pool - the name of the pool;
  96. ; process manager - static or dynamic;
  97. ; idle processes - the number of idle processes;
  98. ; active processes - the number of active processes;
  99. ; total processes - the number of idle + active processes.
  100. ; The values of 'idle processes', 'active processes' and 'total processes' are
  101. ; updated each second. The value of 'accepted conn' is updated in real time.
  102. ; Example output:
  103. ; accepted conn: 12073
  104. ; pool: www
  105. ; process manager: static
  106. ; idle processes: 35
  107. ; active processes: 65
  108. ; total processes: 100
  109. ; By default the status page output is formatted as text/plain. Passing either
  110. ; 'html' or 'json' as a query string will return the corresponding output
  111. ; syntax. Example:
  112. ; http://www.foo.bar/status
  113. ; http://www.foo.bar/status?json
  114. ; http://www.foo.bar/status?html
  115. ; Note: The value must start with a leading slash (/). The value can be
  116. ; anything, but it may not be a good idea to use the .php extension or it
  117. ; may conflict with a real PHP file.
  118. ; Default Value: not set
  119. ;pm.status_path = /status
  120.  
  121. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  122. ; URI will be recognized as a ping page. This could be used to test from outside
  123. ; that FPM is alive and responding, or to
  124. ; - create a graph of FPM availability (rrd or such);
  125. ; - remove a server from a group if it is not responding (load balancing);
  126. ; - trigger alerts for the operating team (24/7).
  127. ; Note: The value must start with a leading slash (/). The value can be
  128. ; anything, but it may not be a good idea to use the .php extension or it
  129. ; may conflict with a real PHP file.
  130. ; Default Value: not set
  131. ;ping.path = /ping
  132.  
  133. ; This directive may be used to customize the response of a ping request. The
  134. ; response is formatted as text/plain with a 200 response code.
  135. ; Default Value: pong
  136. ;ping.response = pong
  137.  
  138. ; The timeout for serving a single request after which the worker process will
  139. ; be killed. This option should be used when the 'max_execution_time' ini option
  140. ; does not stop script execution for some reason. A value of '0' means 'off'.
  141. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  142. ; Default Value: 0
  143. ;request_terminate_timeout = 0
  144.  
  145. ; The timeout for serving a single request after which a PHP backtrace will be
  146. ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
  147. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  148. ; Default Value: 0
  149. ;request_slowlog_timeout = 0
  150.  
  151. ; The log file for slow requests
  152. ; Default Value: /var/log/php-fpm.log.slow
  153. ;slowlog = /var/log/php-fpm.log.slow
  154.  
  155. ; Set open file descriptor rlimit.
  156. ; Default Value: system defined value
  157. ;rlimit_files = 1024
  158.  
  159. ; Set max core size rlimit.
  160. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  161. ; Default Value: system defined value
  162. ;rlimit_core = 0
  163.  
  164. ; Chroot to this directory at the start. This value must be defined as an
  165. ; absolute path. When this value is not set, chroot is not used.
  166. ; Note: chrooting is a great security feature and should be used whenever
  167. ; possible. However, all PHP paths will be relative to the chroot
  168. ; (error_log, sessions.save_path, ...).
  169. ; Default Value: not set
  170. ;chroot =
  171.  
  172. ; Chdir to this directory at the start. This value must be an absolute path.
  173. ; Default Value: current directory or / when chroot
  174. chdir = /var/www
  175.  
  176. ; Redirect worker stdout and stderr into main error log. If not set, stdout and
  177. ; stderr will be redirected to /dev/null according to FastCGI specs.
  178. ; Default Value: no
  179. ;catch_workers_output = yes
  180.  
  181. ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
  182. ; the current environment.
  183. ; Default Value: clean env
  184. ;env[HOSTNAME] = $HOSTNAME
  185. ;env[PATH] = /usr/local/bin:/usr/bin:/bin
  186. ;env[TMP] = /tmp
  187. ;env[TMPDIR] = /tmp
  188. ;env[TEMP] = /tmp
  189.  
  190. ; Additional php.ini defines, specific to this pool of workers. These settings
  191. ; overwrite the values previously defined in the php.ini. The directives are the
  192. ; same as the PHP SAPI:
  193. ; php_value/php_flag - you can set classic ini defines which can
  194. ; be overwritten from PHP call 'ini_set'.
  195. ; php_admin_value/php_admin_flag - these directives won't be overwritten by
  196. ; PHP call 'ini_set'
  197. ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
  198.  
  199. ; Defining 'extension' will load the corresponding shared extension from
  200. ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
  201. ; overwrite previously defined php.ini values, but will append the new value
  202. ; instead.
  203.  
  204. ; Default Value: nothing is defined by default except the values in php.ini and
  205. ; specified at startup with the -d argument
  206. ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
  207. ;php_flag[display_errors] = off
  208. ;php_admin_value[error_log] = /var/log/fpm-php.www.log
  209. ;php_admin_flag[log_errors] = on
  210. ;php_admin_value[memory_limit] = 32M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement