Advertisement
Guest User

www.conf

a guest
Apr 22nd, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.83 KB | None | 0 0
  1. root@108:~# cat /etc/php5/fpm/pool.d/www.conf
  2. ; Start a new pool named 'www'.
  3. ; the variable $pool can we used in any directive and will be replaced by the
  4. ; pool name ('www' here)
  5. [www]
  6.  
  7. ; Per pool prefix
  8. ; It only applies on the following directives:
  9. ; - 'slowlog'
  10. ; - 'listen' (unixsocket)
  11. ; - 'chroot'
  12. ; - 'chdir'
  13. ; - 'php_values'
  14. ; - 'php_admin_values'
  15. ; When not set, the global prefix (or /usr) applies instead.
  16. ; Note: This directive can also be relative to the global prefix.
  17. ; Default Value: none
  18. ;prefix = /path/to/pools/$pool
  19.  
  20. ; Unix user/group of processes
  21. ; Note: The user is mandatory. If the group is not set, the default user's group
  22. ; will be used.
  23. user = www-data
  24. group = www-data
  25.  
  26. ; The address on which to accept FastCGI requests.
  27. ; Valid syntaxes are:
  28. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
  29. ; a specific port;
  30. ; 'port' - to listen on a TCP socket to all addresses on a
  31. ; specific port;
  32. ; '/path/to/unix/socket' - to listen on a unix socket.
  33. ; Note: This value is mandatory.
  34. listen = /var/lib/hiawatha/php5-fpm.sock
  35.  
  36. ; Set listen(2) backlog.
  37. ; Default Value: 128 (-1 on FreeBSD and OpenBSD)
  38. ;listen.backlog = 128
  39.  
  40. ; Set permissions for unix socket, if one is used. In Linux, read/write
  41. ; permissions must be set in order to allow connections from a web server. Many
  42. ; BSD-derived systems allow connections regardless of permissions.
  43. ; Default Values: user and group are set as the running user
  44. ; mode is set to 0666
  45. ;listen.owner = www-data
  46. ;listen.group = www-data
  47. ;listen.mode = 0666
  48.  
  49. ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
  50. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
  51. ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
  52. ; must be separated by a comma. If this value is left blank, connections will be
  53. ; accepted from any ip address.
  54. ; Default Value: any
  55. ;listen.allowed_clients = 127.0.0.1
  56.  
  57. ; Specify the nice(2) priority to apply to the pool processes (only if set)
  58. ; The value can vary from -19 (highest priority) to 20 (lower priority)
  59. ; Note: - It will only work if the FPM master process is launched as root
  60. ; - The pool processes will inherit the master process priority
  61. ; unless it specified otherwise
  62. ; Default Value: no set
  63. ; priority = -19
  64.  
  65. ; Choose how the process manager will control the number of child processes.
  66. ; Possible Values:
  67. ; static - a fixed number (pm.max_children) of child processes;
  68. ; dynamic - the number of child processes are set dynamically based on the
  69. ; following directives. With this process management, there will be
  70. ; always at least 1 children.
  71. ; pm.max_children - the maximum number of children that can
  72. ; be alive at the same time.
  73. ; pm.start_servers - the number of children created on startup.
  74. ; pm.min_spare_servers - the minimum number of children in 'idle'
  75. ; state (waiting to process). If the number
  76. ; of 'idle' processes is less than this
  77. ; number then some children will be created.
  78. ; pm.max_spare_servers - the maximum number of children in 'idle'
  79. ; state (waiting to process). If the number
  80. ; of 'idle' processes is greater than this
  81. ; number then some children will be killed.
  82. ; ondemand - no children are created at startup. Children will be forked when
  83. ; new requests will connect. The following parameter are used:
  84. ; pm.max_children - the maximum number of children that
  85. ; can be alive at the same time.
  86. ; pm.process_idle_timeout - The number of seconds after which
  87. ; an idle process will be killed.
  88. ; Note: This value is mandatory.
  89. pm = dynamic
  90.  
  91. ; The number of child processes to be created when pm is set to 'static' and the
  92. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  93. ; This value sets the limit on the number of simultaneous requests that will be
  94. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  95. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  96. ; CGI. The below defaults are based on a server without much resources. Don't
  97. ; forget to tweak pm.* to fit your needs.
  98. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  99. ; Note: This value is mandatory.
  100. pm.max_children = 5
  101.  
  102. ; The number of child processes created on startup.
  103. ; Note: Used only when pm is set to 'dynamic'
  104. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  105. pm.start_servers = 2
  106.  
  107. ; The desired minimum number of idle server processes.
  108. ; Note: Used only when pm is set to 'dynamic'
  109. ; Note: Mandatory when pm is set to 'dynamic'
  110. pm.min_spare_servers = 1
  111.  
  112. ; The desired maximum number of idle server processes.
  113. ; Note: Used only when pm is set to 'dynamic'
  114. ; Note: Mandatory when pm is set to 'dynamic'
  115. pm.max_spare_servers = 3
  116.  
  117. ; The number of seconds after which an idle process will be killed.
  118. ; Note: Used only when pm is set to 'ondemand'
  119. ; Default Value: 10s
  120. ;pm.process_idle_timeout = 10s;
  121.  
  122. ; The number of requests each child process should execute before respawning.
  123. ; This can be useful to work around memory leaks in 3rd party libraries. For
  124. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  125. ; Default Value: 0
  126. ;pm.max_requests = 500
  127.  
  128. ; The URI to view the FPM status page. If this value is not set, no URI will be
  129. ; recognized as a status page. It shows the following informations:
  130. ; pool - the name of the pool;
  131. ; process manager - static, dynamic or ondemand;
  132. ; start time - the date and time FPM has started;
  133. ; start since - number of seconds since FPM has started;
  134. ; accepted conn - the number of request accepted by the pool;
  135. ; listen queue - the number of request in the queue of pending
  136. ; connections (see backlog in listen(2));
  137. ; max listen queue - the maximum number of requests in the queue
  138. ; of pending connections since FPM has started;
  139. ; listen queue len - the size of the socket queue of pending connections;
  140. ; idle processes - the number of idle processes;
  141. ; active processes - the number of active processes;
  142. ; total processes - the number of idle + active processes;
  143. ; max active processes - the maximum number of active processes since FPM
  144. ; has started;
  145. ; max children reached - number of times, the process limit has been reached,
  146. ; when pm tries to start more children (works only for
  147. ; pm 'dynamic' and 'ondemand');
  148. ; Value are updated in real time.
  149. ; Example output:
  150. ; pool: www
  151. ; process manager: static
  152. ; start time: 01/Jul/2011:17:53:49 +0200
  153. ; start since: 62636
  154. ; accepted conn: 190460
  155. ; listen queue: 0
  156. ; max listen queue: 1
  157. ; listen queue len: 42
  158. ; idle processes: 4
  159. ; active processes: 11
  160. ; total processes: 15
  161. ; max active processes: 12
  162. ; max children reached: 0
  163. ;
  164. ; By default the status page output is formatted as text/plain. Passing either
  165. ; 'html', 'xml' or 'json' in the query string will return the corresponding
  166. ; output syntax. Example:
  167. ; http://www.foo.bar/status
  168. ; http://www.foo.bar/status?json
  169. ; http://www.foo.bar/status?html
  170. ; http://www.foo.bar/status?xml
  171. ;
  172. ; By default the status page only outputs short status. Passing 'full' in the
  173. ; query string will also return status for each pool process.
  174. ; Example:
  175. ; http://www.foo.bar/status?full
  176. ; http://www.foo.bar/status?json&full
  177. ; http://www.foo.bar/status?html&full
  178. ; http://www.foo.bar/status?xml&full
  179. ; The Full status returns for each process:
  180. ; pid - the PID of the process;
  181. ; state - the state of the process (Idle, Running, ...);
  182. ; start time - the date and time the process has started;
  183. ; start since - the number of seconds since the process has started;
  184. ; requests - the number of requests the process has served;
  185. ; request duration - the duration in µs of the requests;
  186. ; request method - the request method (GET, POST, ...);
  187. ; request URI - the request URI with the query string;
  188. ; content length - the content length of the request (only with POST);
  189. ; user - the user (PHP_AUTH_USER) (or '-' if not set);
  190. ; script - the main script called (or '-' if not set);
  191. ; last request cpu - the %cpu the last request consumed
  192. ; it's always 0 if the process is not in Idle state
  193. ; because CPU calculation is done when the request
  194. ; processing has terminated;
  195. ; last request memory - the max amount of memory the last request consumed
  196. ; it's always 0 if the process is not in Idle state
  197. ; because memory calculation is done when the request
  198. ; processing has terminated;
  199. ; If the process is in Idle state, then informations are related to the
  200. ; last request the process has served. Otherwise informations are related to
  201. ; the current request being served.
  202. ; Example output:
  203. ; ************************
  204. ; pid: 31330
  205. ; state: Running
  206. ; start time: 01/Jul/2011:17:53:49 +0200
  207. ; start since: 63087
  208. ; requests: 12808
  209. ; request duration: 1250261
  210. ; request method: GET
  211. ; request URI: /test_mem.php?N=10000
  212. ; content length: 0
  213. ; user: -
  214. ; script: /home/fat/web/docs/php/test_mem.php
  215. ; last request cpu: 0.00
  216. ; last request memory: 0
  217. ;
  218. ; Note: There is a real-time FPM status monitoring sample web page available
  219. ; It's available in: ${prefix}/share/fpm/status.html
  220. ;
  221. ; Note: The value must start with a leading slash (/). The value can be
  222. ; anything, but it may not be a good idea to use the .php extension or it
  223. ; may conflict with a real PHP file.
  224. ; Default Value: not set
  225. ;pm.status_path = /status
  226.  
  227. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  228. ; URI will be recognized as a ping page. This could be used to test from outside
  229. ; that FPM is alive and responding, or to
  230. ; - create a graph of FPM availability (rrd or such);
  231. ; - remove a server from a group if it is not responding (load balancing);
  232. ; - trigger alerts for the operating team (24/7).
  233. ; Note: The value must start with a leading slash (/). The value can be
  234. ; anything, but it may not be a good idea to use the .php extension or it
  235. ; may conflict with a real PHP file.
  236. ; Default Value: not set
  237. ;ping.path = /ping
  238.  
  239. ; This directive may be used to customize the response of a ping request. The
  240. ; response is formatted as text/plain with a 200 response code.
  241. ; Default Value: pong
  242. ;ping.response = pong
  243.  
  244. ; The access log file
  245. ; Default: not set
  246. ;access.log = log/$pool.access.log
  247.  
  248. ; The access log format.
  249. ; The following syntax is allowed
  250. ; %%: the '%' character
  251. ; %C: %CPU used by the request
  252. ; it can accept the following format:
  253. ; - %{user}C for user CPU only
  254. ; - %{system}C for system CPU only
  255. ; - %{total}C for user + system CPU (default)
  256. ; %d: time taken to serve the request
  257. ; it can accept the following format:
  258. ; - %{seconds}d (default)
  259. ; - %{miliseconds}d
  260. ; - %{mili}d
  261. ; - %{microseconds}d
  262. ; - %{micro}d
  263. ; %e: an environment variable (same as $_ENV or $_SERVER)
  264. ; it must be associated with embraces to specify the name of the env
  265. ; variable. Some exemples:
  266. ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
  267. ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
  268. ; %f: script filename
  269. ; %l: content-length of the request (for POST request only)
  270. ; %m: request method
  271. ; %M: peak of memory allocated by PHP
  272. ; it can accept the following format:
  273. ; - %{bytes}M (default)
  274. ; - %{kilobytes}M
  275. ; - %{kilo}M
  276. ; - %{megabytes}M
  277. ; - %{mega}M
  278. ; %n: pool name
  279. ; %o: ouput header
  280. ; it must be associated with embraces to specify the name of the header:
  281. ; - %{Content-Type}o
  282. ; - %{X-Powered-By}o
  283. ; - %{Transfert-Encoding}o
  284. ; - ....
  285. ; %p: PID of the child that serviced the request
  286. ; %P: PID of the parent of the child that serviced the request
  287. ; %q: the query string
  288. ; %Q: the '?' character if query string exists
  289. ; %r: the request URI (without the query string, see %q and %Q)
  290. ; %R: remote IP address
  291. ; %s: status (response code)
  292. ; %t: server time the request was received
  293. ; it can accept a strftime(3) format:
  294. ; %d/%b/%Y:%H:%M:%S %z (default)
  295. ; %T: time the log has been written (the request has finished)
  296. ; it can accept a strftime(3) format:
  297. ; %d/%b/%Y:%H:%M:%S %z (default)
  298. ; %u: remote user
  299. ;
  300. ; Default: "%R - %u %t \"%m %r\" %s"
  301. ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
  302.  
  303. ; The log file for slow requests
  304. ; Default Value: not set
  305. ; Note: slowlog is mandatory if request_slowlog_timeout is set
  306. ;slowlog = log/$pool.log.slow
  307.  
  308. ; The timeout for serving a single request after which a PHP backtrace will be
  309. ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
  310. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  311. ; Default Value: 0
  312. ;request_slowlog_timeout = 0
  313.  
  314. ; The timeout for serving a single request after which the worker process will
  315. ; be killed. This option should be used when the 'max_execution_time' ini option
  316. ; does not stop script execution for some reason. A value of '0' means 'off'.
  317. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  318. ; Default Value: 0
  319. ;request_terminate_timeout = 0
  320.  
  321. ; Set open file descriptor rlimit.
  322. ; Default Value: system defined value
  323. ;rlimit_files = 1024
  324.  
  325. ; Set max core size rlimit.
  326. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  327. ; Default Value: system defined value
  328. ;rlimit_core = 0
  329.  
  330. ; Chroot to this directory at the start. This value must be defined as an
  331. ; absolute path. When this value is not set, chroot is not used.
  332. ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
  333. ; of its subdirectories. If the pool prefix is not set, the global prefix
  334. ; will be used instead.
  335. ; Note: chrooting is a great security feature and should be used whenever
  336. ; possible. However, all PHP paths will be relative to the chroot
  337. ; (error_log, sessions.save_path, ...).
  338. ; Default Value: not set
  339. ;chroot =
  340.  
  341. ; Chdir to this directory at the start.
  342. ; Note: relative path can be used.
  343. ; Default Value: current directory or / when chroot
  344. chdir = /
  345.  
  346. ; Redirect worker stdout and stderr into main error log. If not set, stdout and
  347. ; stderr will be redirected to /dev/null according to FastCGI specs.
  348. ; Note: on highloaded environement, this can cause some delay in the page
  349. ; process time (several ms).
  350. ; Default Value: no
  351. ;catch_workers_output = yes
  352.  
  353. ; Limits the extensions of the main script FPM will allow to parse. This can
  354. ; prevent configuration mistakes on the web server side. You should only limit
  355. ; FPM to .php extensions to prevent malicious users to use other extensions to
  356. ; exectute php code.
  357. ; Note: set an empty value to allow all extensions.
  358. ; Default Value: .php
  359. ;security.limit_extensions = .php .php3 .php4 .php5
  360.  
  361. ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
  362. ; the current environment.
  363. ; Default Value: clean env
  364. ;env[HOSTNAME] = $HOSTNAME
  365. ;env[PATH] = /usr/local/bin:/usr/bin:/bin
  366. ;env[TMP] = /tmp
  367. ;env[TMPDIR] = /tmp
  368. ;env[TEMP] = /tmp
  369.  
  370. ; Additional php.ini defines, specific to this pool of workers. These settings
  371. ; overwrite the values previously defined in the php.ini. The directives are the
  372. ; same as the PHP SAPI:
  373. ; php_value/php_flag - you can set classic ini defines which can
  374. ; be overwritten from PHP call 'ini_set'.
  375. ; php_admin_value/php_admin_flag - these directives won't be overwritten by
  376. ; PHP call 'ini_set'
  377. ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
  378.  
  379. ; Defining 'extension' will load the corresponding shared extension from
  380. ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
  381. ; overwrite previously defined php.ini values, but will append the new value
  382. ; instead.
  383.  
  384. ; Note: path INI options can be relative and will be expanded with the prefix
  385. ; (pool, global or /usr)
  386.  
  387. ; Default Value: nothing is defined by default except the values in php.ini and
  388. ; specified at startup with the -d argument
  389. ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
  390. ;php_flag[display_errors] = off
  391. ;php_admin_value[error_log] = /var/log/fpm-php.www.log
  392. ;php_admin_flag[log_errors] = on
  393. ;php_admin_value[memory_limit] = 32M
  394. root@108:~# clear
  395. root@108:~# cat /etc/php5/fpm/pool.d/www.conf
  396. ; Start a new pool named 'www'.
  397. ; the variable $pool can we used in any directive and will be replaced by the
  398. ; pool name ('www' here)
  399. [www]
  400.  
  401. ; Per pool prefix
  402. ; It only applies on the following directives:
  403. ; - 'slowlog'
  404. ; - 'listen' (unixsocket)
  405. ; - 'chroot'
  406. ; - 'chdir'
  407. ; - 'php_values'
  408. ; - 'php_admin_values'
  409. ; When not set, the global prefix (or /usr) applies instead.
  410. ; Note: This directive can also be relative to the global prefix.
  411. ; Default Value: none
  412. ;prefix = /path/to/pools/$pool
  413.  
  414. ; Unix user/group of processes
  415. ; Note: The user is mandatory. If the group is not set, the default user's group
  416. ; will be used.
  417. user = www-data
  418. group = www-data
  419.  
  420. ; The address on which to accept FastCGI requests.
  421. ; Valid syntaxes are:
  422. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
  423. ; a specific port;
  424. ; 'port' - to listen on a TCP socket to all addresses on a
  425. ; specific port;
  426. ; '/path/to/unix/socket' - to listen on a unix socket.
  427. ; Note: This value is mandatory.
  428. listen = /var/lib/hiawatha/php5-fpm.sock
  429.  
  430. ; Set listen(2) backlog.
  431. ; Default Value: 128 (-1 on FreeBSD and OpenBSD)
  432. ;listen.backlog = 128
  433.  
  434. ; Set permissions for unix socket, if one is used. In Linux, read/write
  435. ; permissions must be set in order to allow connections from a web server. Many
  436. ; BSD-derived systems allow connections regardless of permissions.
  437. ; Default Values: user and group are set as the running user
  438. ; mode is set to 0666
  439. ;listen.owner = www-data
  440. ;listen.group = www-data
  441. ;listen.mode = 0666
  442.  
  443. ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
  444. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
  445. ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
  446. ; must be separated by a comma. If this value is left blank, connections will be
  447. ; accepted from any ip address.
  448. ; Default Value: any
  449. ;listen.allowed_clients = 127.0.0.1
  450.  
  451. ; Specify the nice(2) priority to apply to the pool processes (only if set)
  452. ; The value can vary from -19 (highest priority) to 20 (lower priority)
  453. ; Note: - It will only work if the FPM master process is launched as root
  454. ; - The pool processes will inherit the master process priority
  455. ; unless it specified otherwise
  456. ; Default Value: no set
  457. ; priority = -19
  458.  
  459. ; Choose how the process manager will control the number of child processes.
  460. ; Possible Values:
  461. ; static - a fixed number (pm.max_children) of child processes;
  462. ; dynamic - the number of child processes are set dynamically based on the
  463. ; following directives. With this process management, there will be
  464. ; always at least 1 children.
  465. ; pm.max_children - the maximum number of children that can
  466. ; be alive at the same time.
  467. ; pm.start_servers - the number of children created on startup.
  468. ; pm.min_spare_servers - the minimum number of children in 'idle'
  469. ; state (waiting to process). If the number
  470. ; of 'idle' processes is less than this
  471. ; number then some children will be created.
  472. ; pm.max_spare_servers - the maximum number of children in 'idle'
  473. ; state (waiting to process). If the number
  474. ; of 'idle' processes is greater than this
  475. ; number then some children will be killed.
  476. ; ondemand - no children are created at startup. Children will be forked when
  477. ; new requests will connect. The following parameter are used:
  478. ; pm.max_children - the maximum number of children that
  479. ; can be alive at the same time.
  480. ; pm.process_idle_timeout - The number of seconds after which
  481. ; an idle process will be killed.
  482. ; Note: This value is mandatory.
  483. pm = dynamic
  484.  
  485. ; The number of child processes to be created when pm is set to 'static' and the
  486. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  487. ; This value sets the limit on the number of simultaneous requests that will be
  488. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  489. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  490. ; CGI. The below defaults are based on a server without much resources. Don't
  491. ; forget to tweak pm.* to fit your needs.
  492. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  493. ; Note: This value is mandatory.
  494. pm.max_children = 5
  495.  
  496. ; The number of child processes created on startup.
  497. ; Note: Used only when pm is set to 'dynamic'
  498. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  499. pm.start_servers = 2
  500.  
  501. ; The desired minimum number of idle server processes.
  502. ; Note: Used only when pm is set to 'dynamic'
  503. ; Note: Mandatory when pm is set to 'dynamic'
  504. pm.min_spare_servers = 1
  505.  
  506. ; The desired maximum number of idle server processes.
  507. ; Note: Used only when pm is set to 'dynamic'
  508. ; Note: Mandatory when pm is set to 'dynamic'
  509. pm.max_spare_servers = 3
  510.  
  511. ; The number of seconds after which an idle process will be killed.
  512. ; Note: Used only when pm is set to 'ondemand'
  513. ; Default Value: 10s
  514. ;pm.process_idle_timeout = 10s;
  515.  
  516. ; The number of requests each child process should execute before respawning.
  517. ; This can be useful to work around memory leaks in 3rd party libraries. For
  518. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  519. ; Default Value: 0
  520. ;pm.max_requests = 500
  521.  
  522. ; The URI to view the FPM status page. If this value is not set, no URI will be
  523. ; recognized as a status page. It shows the following informations:
  524. ; pool - the name of the pool;
  525. ; process manager - static, dynamic or ondemand;
  526. ; start time - the date and time FPM has started;
  527. ; start since - number of seconds since FPM has started;
  528. ; accepted conn - the number of request accepted by the pool;
  529. ; listen queue - the number of request in the queue of pending
  530. ; connections (see backlog in listen(2));
  531. ; max listen queue - the maximum number of requests in the queue
  532. ; of pending connections since FPM has started;
  533. ; listen queue len - the size of the socket queue of pending connections;
  534. ; idle processes - the number of idle processes;
  535. ; active processes - the number of active processes;
  536. ; total processes - the number of idle + active processes;
  537. ; max active processes - the maximum number of active processes since FPM
  538. ; has started;
  539. ; max children reached - number of times, the process limit has been reached,
  540. ; when pm tries to start more children (works only for
  541. ; pm 'dynamic' and 'ondemand');
  542. ; Value are updated in real time.
  543. ; Example output:
  544. ; pool: www
  545. ; process manager: static
  546. ; start time: 01/Jul/2011:17:53:49 +0200
  547. ; start since: 62636
  548. ; accepted conn: 190460
  549. ; listen queue: 0
  550. ; max listen queue: 1
  551. ; listen queue len: 42
  552. ; idle processes: 4
  553. ; active processes: 11
  554. ; total processes: 15
  555. ; max active processes: 12
  556. ; max children reached: 0
  557. ;
  558. ; By default the status page output is formatted as text/plain. Passing either
  559. ; 'html', 'xml' or 'json' in the query string will return the corresponding
  560. ; output syntax. Example:
  561. ; http://www.foo.bar/status
  562. ; http://www.foo.bar/status?json
  563. ; http://www.foo.bar/status?html
  564. ; http://www.foo.bar/status?xml
  565. ;
  566. ; By default the status page only outputs short status. Passing 'full' in the
  567. ; query string will also return status for each pool process.
  568. ; Example:
  569. ; http://www.foo.bar/status?full
  570. ; http://www.foo.bar/status?json&full
  571. ; http://www.foo.bar/status?html&full
  572. ; http://www.foo.bar/status?xml&full
  573. ; The Full status returns for each process:
  574. ; pid - the PID of the process;
  575. ; state - the state of the process (Idle, Running, ...);
  576. ; start time - the date and time the process has started;
  577. ; start since - the number of seconds since the process has started;
  578. ; requests - the number of requests the process has served;
  579. ; request duration - the duration in µs of the requests;
  580. ; request method - the request method (GET, POST, ...);
  581. ; request URI - the request URI with the query string;
  582. ; content length - the content length of the request (only with POST);
  583. ; user - the user (PHP_AUTH_USER) (or '-' if not set);
  584. ; script - the main script called (or '-' if not set);
  585. ; last request cpu - the %cpu the last request consumed
  586. ; it's always 0 if the process is not in Idle state
  587. ; because CPU calculation is done when the request
  588. ; processing has terminated;
  589. ; last request memory - the max amount of memory the last request consumed
  590. ; it's always 0 if the process is not in Idle state
  591. ; because memory calculation is done when the request
  592. ; processing has terminated;
  593. ; If the process is in Idle state, then informations are related to the
  594. ; last request the process has served. Otherwise informations are related to
  595. ; the current request being served.
  596. ; Example output:
  597. ; ************************
  598. ; pid: 31330
  599. ; state: Running
  600. ; start time: 01/Jul/2011:17:53:49 +0200
  601. ; start since: 63087
  602. ; requests: 12808
  603. ; request duration: 1250261
  604. ; request method: GET
  605. ; request URI: /test_mem.php?N=10000
  606. ; content length: 0
  607. ; user: -
  608. ; script: /home/fat/web/docs/php/test_mem.php
  609. ; last request cpu: 0.00
  610. ; last request memory: 0
  611. ;
  612. ; Note: There is a real-time FPM status monitoring sample web page available
  613. ; It's available in: ${prefix}/share/fpm/status.html
  614. ;
  615. ; Note: The value must start with a leading slash (/). The value can be
  616. ; anything, but it may not be a good idea to use the .php extension or it
  617. ; may conflict with a real PHP file.
  618. ; Default Value: not set
  619. ;pm.status_path = /status
  620.  
  621. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  622. ; URI will be recognized as a ping page. This could be used to test from outside
  623. ; that FPM is alive and responding, or to
  624. ; - create a graph of FPM availability (rrd or such);
  625. ; - remove a server from a group if it is not responding (load balancing);
  626. ; - trigger alerts for the operating team (24/7).
  627. ; Note: The value must start with a leading slash (/). The value can be
  628. ; anything, but it may not be a good idea to use the .php extension or it
  629. ; may conflict with a real PHP file.
  630. ; Default Value: not set
  631. ;ping.path = /ping
  632.  
  633. ; This directive may be used to customize the response of a ping request. The
  634. ; response is formatted as text/plain with a 200 response code.
  635. ; Default Value: pong
  636. ;ping.response = pong
  637.  
  638. ; The access log file
  639. ; Default: not set
  640. ;access.log = log/$pool.access.log
  641.  
  642. ; The access log format.
  643. ; The following syntax is allowed
  644. ; %%: the '%' character
  645. ; %C: %CPU used by the request
  646. ; it can accept the following format:
  647. ; - %{user}C for user CPU only
  648. ; - %{system}C for system CPU only
  649. ; - %{total}C for user + system CPU (default)
  650. ; %d: time taken to serve the request
  651. ; it can accept the following format:
  652. ; - %{seconds}d (default)
  653. ; - %{miliseconds}d
  654. ; - %{mili}d
  655. ; - %{microseconds}d
  656. ; - %{micro}d
  657. ; %e: an environment variable (same as $_ENV or $_SERVER)
  658. ; it must be associated with embraces to specify the name of the env
  659. ; variable. Some exemples:
  660. ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
  661. ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
  662. ; %f: script filename
  663. ; %l: content-length of the request (for POST request only)
  664. ; %m: request method
  665. ; %M: peak of memory allocated by PHP
  666. ; it can accept the following format:
  667. ; - %{bytes}M (default)
  668. ; - %{kilobytes}M
  669. ; - %{kilo}M
  670. ; - %{megabytes}M
  671. ; - %{mega}M
  672. ; %n: pool name
  673. ; %o: ouput header
  674. ; it must be associated with embraces to specify the name of the header:
  675. ; - %{Content-Type}o
  676. ; - %{X-Powered-By}o
  677. ; - %{Transfert-Encoding}o
  678. ; - ....
  679. ; %p: PID of the child that serviced the request
  680. ; %P: PID of the parent of the child that serviced the request
  681. ; %q: the query string
  682. ; %Q: the '?' character if query string exists
  683. ; %r: the request URI (without the query string, see %q and %Q)
  684. ; %R: remote IP address
  685. ; %s: status (response code)
  686. ; %t: server time the request was received
  687. ; it can accept a strftime(3) format:
  688. ; %d/%b/%Y:%H:%M:%S %z (default)
  689. ; %T: time the log has been written (the request has finished)
  690. ; it can accept a strftime(3) format:
  691. ; %d/%b/%Y:%H:%M:%S %z (default)
  692. ; %u: remote user
  693. ;
  694. ; Default: "%R - %u %t \"%m %r\" %s"
  695. ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
  696.  
  697. ; The log file for slow requests
  698. ; Default Value: not set
  699. ; Note: slowlog is mandatory if request_slowlog_timeout is set
  700. ;slowlog = log/$pool.log.slow
  701.  
  702. ; The timeout for serving a single request after which a PHP backtrace will be
  703. ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
  704. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  705. ; Default Value: 0
  706. ;request_slowlog_timeout = 0
  707.  
  708. ; The timeout for serving a single request after which the worker process will
  709. ; be killed. This option should be used when the 'max_execution_time' ini option
  710. ; does not stop script execution for some reason. A value of '0' means 'off'.
  711. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  712. ; Default Value: 0
  713. ;request_terminate_timeout = 0
  714.  
  715. ; Set open file descriptor rlimit.
  716. ; Default Value: system defined value
  717. ;rlimit_files = 1024
  718.  
  719. ; Set max core size rlimit.
  720. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  721. ; Default Value: system defined value
  722. ;rlimit_core = 0
  723.  
  724. ; Chroot to this directory at the start. This value must be defined as an
  725. ; absolute path. When this value is not set, chroot is not used.
  726. ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
  727. ; of its subdirectories. If the pool prefix is not set, the global prefix
  728. ; will be used instead.
  729. ; Note: chrooting is a great security feature and should be used whenever
  730. ; possible. However, all PHP paths will be relative to the chroot
  731. ; (error_log, sessions.save_path, ...).
  732. ; Default Value: not set
  733. ;chroot =
  734.  
  735. ; Chdir to this directory at the start.
  736. ; Note: relative path can be used.
  737. ; Default Value: current directory or / when chroot
  738. chdir = /
  739.  
  740. ; Redirect worker stdout and stderr into main error log. If not set, stdout and
  741. ; stderr will be redirected to /dev/null according to FastCGI specs.
  742. ; Note: on highloaded environement, this can cause some delay in the page
  743. ; process time (several ms).
  744. ; Default Value: no
  745. ;catch_workers_output = yes
  746.  
  747. ; Limits the extensions of the main script FPM will allow to parse. This can
  748. ; prevent configuration mistakes on the web server side. You should only limit
  749. ; FPM to .php extensions to prevent malicious users to use other extensions to
  750. ; exectute php code.
  751. ; Note: set an empty value to allow all extensions.
  752. ; Default Value: .php
  753. ;security.limit_extensions = .php .php3 .php4 .php5
  754.  
  755. ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
  756. ; the current environment.
  757. ; Default Value: clean env
  758. ;env[HOSTNAME] = $HOSTNAME
  759. ;env[PATH] = /usr/local/bin:/usr/bin:/bin
  760. ;env[TMP] = /tmp
  761. ;env[TMPDIR] = /tmp
  762. ;env[TEMP] = /tmp
  763.  
  764. ; Additional php.ini defines, specific to this pool of workers. These settings
  765. ; overwrite the values previously defined in the php.ini. The directives are the
  766. ; same as the PHP SAPI:
  767. ; php_value/php_flag - you can set classic ini defines which can
  768. ; be overwritten from PHP call 'ini_set'.
  769. ; php_admin_value/php_admin_flag - these directives won't be overwritten by
  770. ; PHP call 'ini_set'
  771. ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
  772.  
  773. ; Defining 'extension' will load the corresponding shared extension from
  774. ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
  775. ; overwrite previously defined php.ini values, but will append the new value
  776. ; instead.
  777.  
  778. ; Note: path INI options can be relative and will be expanded with the prefix
  779. ; (pool, global or /usr)
  780.  
  781. ; Default Value: nothing is defined by default except the values in php.ini and
  782. ; specified at startup with the -d argument
  783. ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
  784. ;php_flag[display_errors] = off
  785. ;php_admin_value[error_log] = /var/log/fpm-php.www.log
  786. ;php_admin_flag[log_errors] = on
  787. ;php_admin_value[memory_limit] = 32M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement