1 --- php-5.5.20/sapi/fpm/php-fpm.conf.in 2015-01-01 17:48:20.993520423 +0200
2 +++ php-5.5.20/sapi/fpm/php-fpm.conf.in 2015-01-01 17:52:53.447616090 +0200
4 ; prefix (@prefix@). This prefix can be dynamically changed by using the
5 ; '-p' argument from the command line.
7 -; Include one or more files. If glob(3) exists, it is used to include a bunch of
8 -; files from a glob(3) pattern. This directive can be used everywhere in the
10 -; Relative path can also be used. They will be prefixed by:
11 -; - the global prefix if it's been set (-p argument)
12 -; - @prefix@ otherwise
13 -;include=/etc/php/fpm.d/*.conf
20 -; Start a new pool named 'www'.
21 -; the variable $pool can we used in any directive and will be replaced by the
22 -; pool name ('www' here)
26 -; It only applies on the following directives:
29 -; - 'listen' (unixsocket)
33 -; - 'php_admin_values'
34 -; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
35 -; Note: This directive can also be relative to the global prefix.
36 -; Default Value: none
37 -;prefix = /path/to/pools/$pool
39 -; Unix user/group of processes
40 -; Note: The user is mandatory. If the group is not set, the default user's group
42 -user = @php_fpm_user@
43 -group = @php_fpm_group@
45 -; The address on which to accept FastCGI requests.
46 -; Valid syntaxes are:
47 -; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
49 -; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
51 -; 'port' - to listen on a TCP socket to all IPv4 addresses on a
53 -; '[::]:port' - to listen on a TCP socket to all addresses
54 -; (IPv6 and IPv4-mapped) on a specific port;
55 -; '/path/to/unix/socket' - to listen on a unix socket.
56 -; Note: This value is mandatory.
57 -listen = /var/run/php/@processname@.sock
59 -; Set listen(2) backlog.
60 -; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
61 -;listen.backlog = 65535
63 -; Set permissions for unix socket, if one is used. In Linux, read/write
64 -; permissions must be set in order to allow connections from a web server. Many
65 -; BSD-derived systems allow connections regardless of permissions.
66 -; Default Values: user and group are set as the running user
67 -; mode is set to 0660
68 -;listen.owner = @php_fpm_user@
69 -;listen.group = @php_fpm_group@
72 -; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
73 -; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
74 -; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
75 -; must be separated by a comma. If this value is left blank, connections will be
76 -; accepted from any ip address.
78 -listen.allowed_clients = 127.0.0.1
80 -; Specify the nice(2) priority to apply to the pool processes (only if set)
81 -; The value can vary from -19 (highest priority) to 20 (lower priority)
82 -; Note: - It will only work if the FPM master process is launched as root
83 -; - The pool processes will inherit the master process priority
84 -; unless it specified otherwise
85 -; Default Value: no set
86 -; process.priority = -19
88 -; Choose how the process manager will control the number of child processes.
90 -; static - a fixed number (pm.max_children) of child processes;
91 -; dynamic - the number of child processes are set dynamically based on the
92 -; following directives. With this process management, there will be
93 -; always at least 1 children.
94 -; pm.max_children - the maximum number of children that can
95 -; be alive at the same time.
96 -; pm.start_servers - the number of children created on startup.
97 -; pm.min_spare_servers - the minimum number of children in 'idle'
98 -; state (waiting to process). If the number
99 -; of 'idle' processes is less than this
100 -; number then some children will be created.
101 -; pm.max_spare_servers - the maximum number of children in 'idle'
102 -; state (waiting to process). If the number
103 -; of 'idle' processes is greater than this
104 -; number then some children will be killed.
105 -; ondemand - no children are created at startup. Children will be forked when
106 -; new requests will connect. The following parameter are used:
107 -; pm.max_children - the maximum number of children that
108 -; can be alive at the same time.
109 -; pm.process_idle_timeout - The number of seconds after which
110 -; an idle process will be killed.
111 -; Note: This value is mandatory.
114 -; The number of child processes to be created when pm is set to 'static' and the
115 -; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
116 -; This value sets the limit on the number of simultaneous requests that will be
117 -; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
118 -; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
119 -; CGI. The below defaults are based on a server without much resources. Don't
120 -; forget to tweak pm.* to fit your needs.
121 -; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
122 -; Note: This value is mandatory.
125 -; The number of child processes created on startup.
126 -; Note: Used only when pm is set to 'dynamic'
127 -; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
128 -pm.start_servers = 2
130 -; The desired minimum number of idle server processes.
131 -; Note: Used only when pm is set to 'dynamic'
132 -; Note: Mandatory when pm is set to 'dynamic'
133 -pm.min_spare_servers = 1
135 -; The desired maximum number of idle server processes.
136 -; Note: Used only when pm is set to 'dynamic'
137 -; Note: Mandatory when pm is set to 'dynamic'
138 -pm.max_spare_servers = 3
140 -; The number of seconds after which an idle process will be killed.
141 -; Note: Used only when pm is set to 'ondemand'
142 -; Default Value: 10s
143 -;pm.process_idle_timeout = 10s;
145 -; The number of requests each child process should execute before respawning.
146 -; This can be useful to work around memory leaks in 3rd party libraries. For
147 -; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
149 -;pm.max_requests = 500
151 -; The URI to view the FPM status page. If this value is not set, no URI will be
152 -; recognized as a status page. It shows the following informations:
153 -; pool - the name of the pool;
154 -; process manager - static, dynamic or ondemand;
155 -; start time - the date and time FPM has started;
156 -; start since - number of seconds since FPM has started;
157 -; accepted conn - the number of request accepted by the pool;
158 -; listen queue - the number of request in the queue of pending
159 -; connections (see backlog in listen(2));
160 -; max listen queue - the maximum number of requests in the queue
161 -; of pending connections since FPM has started;
162 -; listen queue len - the size of the socket queue of pending connections;
163 -; idle processes - the number of idle processes;
164 -; active processes - the number of active processes;
165 -; total processes - the number of idle + active processes;
166 -; max active processes - the maximum number of active processes since FPM
168 -; max children reached - number of times, the process limit has been reached,
169 -; when pm tries to start more children (works only for
170 -; pm 'dynamic' and 'ondemand');
171 -; Value are updated in real time.
174 -; process manager: static
175 -; start time: 01/Jul/2011:17:53:49 +0200
176 -; start since: 62636
177 -; accepted conn: 190460
179 -; max listen queue: 1
180 -; listen queue len: 42
182 -; active processes: 11
183 -; total processes: 15
184 -; max active processes: 12
185 -; max children reached: 0
187 -; By default the status page output is formatted as text/plain. Passing either
188 -; 'html', 'xml' or 'json' in the query string will return the corresponding
189 -; output syntax. Example:
190 -; http://www.foo.bar/status
191 -; http://www.foo.bar/status?json
192 -; http://www.foo.bar/status?html
193 -; http://www.foo.bar/status?xml
195 -; By default the status page only outputs short status. Passing 'full' in the
196 -; query string will also return status for each pool process.
198 -; http://www.foo.bar/status?full
199 -; http://www.foo.bar/status?json&full
200 -; http://www.foo.bar/status?html&full
201 -; http://www.foo.bar/status?xml&full
202 -; The Full status returns for each process:
203 -; pid - the PID of the process;
204 -; state - the state of the process (Idle, Running, ...);
205 -; start time - the date and time the process has started;
206 -; start since - the number of seconds since the process has started;
207 -; requests - the number of requests the process has served;
208 -; request duration - the duration in µs of the requests;
209 -; request method - the request method (GET, POST, ...);
210 -; request URI - the request URI with the query string;
211 -; content length - the content length of the request (only with POST);
212 -; user - the user (PHP_AUTH_USER) (or '-' if not set);
213 -; script - the main script called (or '-' if not set);
214 -; last request cpu - the %cpu the last request consumed
215 -; it's always 0 if the process is not in Idle state
216 -; because CPU calculation is done when the request
217 -; processing has terminated;
218 -; last request memory - the max amount of memory the last request consumed
219 -; it's always 0 if the process is not in Idle state
220 -; because memory calculation is done when the request
221 -; processing has terminated;
222 -; If the process is in Idle state, then informations are related to the
223 -; last request the process has served. Otherwise informations are related to
224 -; the current request being served.
226 -; ************************
229 -; start time: 01/Jul/2011:17:53:49 +0200
230 -; start since: 63087
232 -; request duration: 1250261
233 -; request method: GET
234 -; request URI: /test_mem.php?N=10000
237 -; script: /home/fat/web/docs/php/test_mem.php
238 -; last request cpu: 0.00
239 -; last request memory: 0
241 -; Note: There is a real-time FPM status monitoring sample web page available
242 -; It's available in: @EXPANDED_DATADIR@/fpm/status.html
244 -; Note: The value must start with a leading slash (/). The value can be
245 -; anything, but it may not be a good idea to use the .php extension or it
246 -; may conflict with a real PHP file.
247 -; Default Value: not set
248 -;pm.status_path = /status
250 -; The ping URI to call the monitoring page of FPM. If this value is not set, no
251 -; URI will be recognized as a ping page. This could be used to test from outside
252 -; that FPM is alive and responding, or to
253 -; - create a graph of FPM availability (rrd or such);
254 -; - remove a server from a group if it is not responding (load balancing);
255 -; - trigger alerts for the operating team (24/7).
256 -; Note: The value must start with a leading slash (/). The value can be
257 -; anything, but it may not be a good idea to use the .php extension or it
258 -; may conflict with a real PHP file.
259 -; Default Value: not set
262 -; This directive may be used to customize the response of a ping request. The
263 -; response is formatted as text/plain with a 200 response code.
264 -; Default Value: pong
265 -;ping.response = pong
267 -; The access log file
269 -;access.log = log/$pool.access.log
271 -; The access log format.
272 -; The following syntax is allowed
273 -; %%: the '%' character
274 -; %C: %CPU used by the request
275 -; it can accept the following format:
276 -; - %{user}C for user CPU only
277 -; - %{system}C for system CPU only
278 -; - %{total}C for user + system CPU (default)
279 -; %d: time taken to serve the request
280 -; it can accept the following format:
281 -; - %{seconds}d (default)
284 -; - %{microseconds}d
286 -; %e: an environment variable (same as $_ENV or $_SERVER)
287 -; it must be associated with embraces to specify the name of the env
288 -; variable. Some exemples:
289 -; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
290 -; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
291 -; %f: script filename
292 -; %l: content-length of the request (for POST request only)
293 -; %m: request method
294 -; %M: peak of memory allocated by PHP
295 -; it can accept the following format:
296 -; - %{bytes}M (default)
303 -; it must be associated with embraces to specify the name of the header:
304 -; - %{Content-Type}o
305 -; - %{X-Powered-By}o
306 -; - %{Transfert-Encoding}o
308 -; %p: PID of the child that serviced the request
309 -; %P: PID of the parent of the child that serviced the request
310 -; %q: the query string
311 -; %Q: the '?' character if query string exists
312 -; %r: the request URI (without the query string, see %q and %Q)
313 -; %R: remote IP address
314 -; %s: status (response code)
315 -; %t: server time the request was received
316 -; it can accept a strftime(3) format:
317 -; %d/%b/%Y:%H:%M:%S %z (default)
318 -; %T: time the log has been written (the request has finished)
319 -; it can accept a strftime(3) format:
320 -; %d/%b/%Y:%H:%M:%S %z (default)
323 -; Default: "%R - %u %t \"%m %r\" %s"
324 -;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
326 -; The log file for slow requests
327 -; Default Value: not set
328 -; Note: slowlog is mandatory if request_slowlog_timeout is set
329 -;slowlog = log/$pool.log.slow
331 -; The timeout for serving a single request after which a PHP backtrace will be
332 -; dumped to the 'slowlog' file. A value of '0s' means 'off'.
333 -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
335 -;request_slowlog_timeout = 0
337 -; The timeout for serving a single request after which the worker process will
338 -; be killed. This option should be used when the 'max_execution_time' ini option
339 -; does not stop script execution for some reason. A value of '0' means 'off'.
340 -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
342 -;request_terminate_timeout = 0
344 -; Set open file descriptor rlimit.
345 -; Default Value: system defined value
346 -;rlimit_files = 1024
348 -; Set max core size rlimit.
349 -; Possible Values: 'unlimited' or an integer greater or equal to 0
350 -; Default Value: system defined value
353 -; Chroot to this directory at the start. This value must be defined as an
354 -; absolute path. When this value is not set, chroot is not used.
355 -; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
356 -; of its subdirectories. If the pool prefix is not set, the global prefix
357 -; will be used instead.
358 -; Note: chrooting is a great security feature and should be used whenever
359 -; possible. However, all PHP paths will be relative to the chroot
360 -; (error_log, sessions.save_path, ...).
361 -; Default Value: not set
364 -; Chdir to this directory at the start.
365 -; Note: relative path can be used.
366 -; Default Value: current directory or / when chroot
369 -; Redirect worker stdout and stderr into main error log. If not set, stdout and
370 -; stderr will be redirected to /dev/null according to FastCGI specs.
371 -; Note: on highloaded environement, this can cause some delay in the page
372 -; process time (several ms).
374 -;catch_workers_output = yes
376 -; Clear environment in FPM workers
377 -; Prevents arbitrary environment variables from reaching FPM worker processes
378 -; by clearing the environment in workers before env vars specified in this
379 -; pool configuration are added.
380 -; Setting to "no" will make all environment variables available to PHP code
381 -; via getenv(), $_ENV and $_SERVER.
382 -; Default Value: yes
385 -; Limits the extensions of the main script FPM will allow to parse. This can
386 -; prevent configuration mistakes on the web server side. You should only limit
387 -; FPM to .php extensions to prevent malicious users to use other extensions to
388 -; exectute php code.
389 -; Note: set an empty value to allow all extensions.
390 -; Default Value: .php
391 -;security.limit_extensions = .php .php3 .php4 .php5
393 -; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
394 -; the current environment.
395 -; Default Value: clean env
396 -;env[HOSTNAME] = $HOSTNAME
402 -; Additional php.ini defines, specific to this pool of workers. These settings
403 -; overwrite the values previously defined in the php.ini. The directives are the
404 -; same as the PHP SAPI:
405 -; php_value/php_flag - you can set classic ini defines which can
406 -; be overwritten from PHP call 'ini_set'.
407 -; php_admin_value/php_admin_flag - these directives won't be overwritten by
408 -; PHP call 'ini_set'
409 -; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
411 -; Defining 'extension' will load the corresponding shared extension from
412 -; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
413 -; overwrite previously defined php.ini values, but will append the new value
416 -; Note: path INI options can be relative and will be expanded with the prefix
417 -; (pool, global or @prefix@)
419 -; Default Value: nothing is defined by default except the values in php.ini and
420 -; specified at startup with the -d argument
421 -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
422 -;php_flag[display_errors] = off
423 -;php_admin_value[error_log] = /var/log/fpm-php.www.log
424 -;php_admin_flag[log_errors] = on
425 -;php_admin_value[memory_limit] = 32M
426 +; Include one or more files. If glob(3) exists, it is used to include a bunch of
427 +; files from a glob(3) pattern. This directive can be used everywhere in the
429 +; Relative path can also be used. They will be prefixed by:
430 +; - the global prefix if it's been set (-p argument)
431 +; - @prefix@ otherwise
432 +include=/etc/php/fpm.d/*.conf
433 --- /dev/null 2007-02-13 18:29:53.000000000 +0200
434 +++ php-5.5.20/sapi/fpm/php-fpm.conf-d.in 2015-01-01 17:47:46.328393657 +0200
436 +; Start a new pool named 'www'.
437 +; the variable $pool can we used in any directive and will be replaced by the
438 +; pool name ('www' here)
442 +; It only applies on the following directives:
445 +; - 'listen' (unixsocket)
449 +; - 'php_admin_values'
450 +; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
451 +; Note: This directive can also be relative to the global prefix.
452 +; Default Value: none
453 +;prefix = /path/to/pools/$pool
455 +; Unix user/group of processes
456 +; Note: The user is mandatory. If the group is not set, the default user's group
458 +user = @php_fpm_user@
459 +group = @php_fpm_group@
461 +; The address on which to accept FastCGI requests.
462 +; Valid syntaxes are:
463 +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
465 +; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
467 +; 'port' - to listen on a TCP socket to all IPv4 addresses on a
469 +; '[::]:port' - to listen on a TCP socket to all addresses
470 +; (IPv6 and IPv4-mapped) on a specific port;
471 +; '/path/to/unix/socket' - to listen on a unix socket.
472 +; Note: This value is mandatory.
473 +listen = /var/run/php/@processname@.sock
475 +; Set listen(2) backlog.
476 +; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
477 +;listen.backlog = 65535
479 +; Set permissions for unix socket, if one is used. In Linux, read/write
480 +; permissions must be set in order to allow connections from a web server. Many
481 +; BSD-derived systems allow connections regardless of permissions.
482 +; Default Values: user and group are set as the running user
483 +; mode is set to 0660
484 +;listen.owner = @php_fpm_user@
485 +;listen.group = @php_fpm_group@
488 +; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
489 +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
490 +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
491 +; must be separated by a comma. If this value is left blank, connections will be
492 +; accepted from any ip address.
493 +; Default Value: any
494 +listen.allowed_clients = 127.0.0.1
496 +; Specify the nice(2) priority to apply to the pool processes (only if set)
497 +; The value can vary from -19 (highest priority) to 20 (lower priority)
498 +; Note: - It will only work if the FPM master process is launched as root
499 +; - The pool processes will inherit the master process priority
500 +; unless it specified otherwise
501 +; Default Value: no set
502 +; process.priority = -19
504 +; Choose how the process manager will control the number of child processes.
506 +; static - a fixed number (pm.max_children) of child processes;
507 +; dynamic - the number of child processes are set dynamically based on the
508 +; following directives. With this process management, there will be
509 +; always at least 1 children.
510 +; pm.max_children - the maximum number of children that can
511 +; be alive at the same time.
512 +; pm.start_servers - the number of children created on startup.
513 +; pm.min_spare_servers - the minimum number of children in 'idle'
514 +; state (waiting to process). If the number
515 +; of 'idle' processes is less than this
516 +; number then some children will be created.
517 +; pm.max_spare_servers - the maximum number of children in 'idle'
518 +; state (waiting to process). If the number
519 +; of 'idle' processes is greater than this
520 +; number then some children will be killed.
521 +; ondemand - no children are created at startup. Children will be forked when
522 +; new requests will connect. The following parameter are used:
523 +; pm.max_children - the maximum number of children that
524 +; can be alive at the same time.
525 +; pm.process_idle_timeout - The number of seconds after which
526 +; an idle process will be killed.
527 +; Note: This value is mandatory.
530 +; The number of child processes to be created when pm is set to 'static' and the
531 +; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
532 +; This value sets the limit on the number of simultaneous requests that will be
533 +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
534 +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
535 +; CGI. The below defaults are based on a server without much resources. Don't
536 +; forget to tweak pm.* to fit your needs.
537 +; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
538 +; Note: This value is mandatory.
541 +; The number of child processes created on startup.
542 +; Note: Used only when pm is set to 'dynamic'
543 +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
544 +pm.start_servers = 2
546 +; The desired minimum number of idle server processes.
547 +; Note: Used only when pm is set to 'dynamic'
548 +; Note: Mandatory when pm is set to 'dynamic'
549 +pm.min_spare_servers = 1
551 +; The desired maximum number of idle server processes.
552 +; Note: Used only when pm is set to 'dynamic'
553 +; Note: Mandatory when pm is set to 'dynamic'
554 +pm.max_spare_servers = 3
556 +; The number of seconds after which an idle process will be killed.
557 +; Note: Used only when pm is set to 'ondemand'
558 +; Default Value: 10s
559 +;pm.process_idle_timeout = 10s;
561 +; The number of requests each child process should execute before respawning.
562 +; This can be useful to work around memory leaks in 3rd party libraries. For
563 +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
565 +;pm.max_requests = 500
567 +; The URI to view the FPM status page. If this value is not set, no URI will be
568 +; recognized as a status page. It shows the following informations:
569 +; pool - the name of the pool;
570 +; process manager - static, dynamic or ondemand;
571 +; start time - the date and time FPM has started;
572 +; start since - number of seconds since FPM has started;
573 +; accepted conn - the number of request accepted by the pool;
574 +; listen queue - the number of request in the queue of pending
575 +; connections (see backlog in listen(2));
576 +; max listen queue - the maximum number of requests in the queue
577 +; of pending connections since FPM has started;
578 +; listen queue len - the size of the socket queue of pending connections;
579 +; idle processes - the number of idle processes;
580 +; active processes - the number of active processes;
581 +; total processes - the number of idle + active processes;
582 +; max active processes - the maximum number of active processes since FPM
584 +; max children reached - number of times, the process limit has been reached,
585 +; when pm tries to start more children (works only for
586 +; pm 'dynamic' and 'ondemand');
587 +; Value are updated in real time.
590 +; process manager: static
591 +; start time: 01/Jul/2011:17:53:49 +0200
592 +; start since: 62636
593 +; accepted conn: 190460
595 +; max listen queue: 1
596 +; listen queue len: 42
598 +; active processes: 11
599 +; total processes: 15
600 +; max active processes: 12
601 +; max children reached: 0
603 +; By default the status page output is formatted as text/plain. Passing either
604 +; 'html', 'xml' or 'json' in the query string will return the corresponding
605 +; output syntax. Example:
606 +; http://www.foo.bar/status
607 +; http://www.foo.bar/status?json
608 +; http://www.foo.bar/status?html
609 +; http://www.foo.bar/status?xml
611 +; By default the status page only outputs short status. Passing 'full' in the
612 +; query string will also return status for each pool process.
614 +; http://www.foo.bar/status?full
615 +; http://www.foo.bar/status?json&full
616 +; http://www.foo.bar/status?html&full
617 +; http://www.foo.bar/status?xml&full
618 +; The Full status returns for each process:
619 +; pid - the PID of the process;
620 +; state - the state of the process (Idle, Running, ...);
621 +; start time - the date and time the process has started;
622 +; start since - the number of seconds since the process has started;
623 +; requests - the number of requests the process has served;
624 +; request duration - the duration in µs of the requests;
625 +; request method - the request method (GET, POST, ...);
626 +; request URI - the request URI with the query string;
627 +; content length - the content length of the request (only with POST);
628 +; user - the user (PHP_AUTH_USER) (or '-' if not set);
629 +; script - the main script called (or '-' if not set);
630 +; last request cpu - the %cpu the last request consumed
631 +; it's always 0 if the process is not in Idle state
632 +; because CPU calculation is done when the request
633 +; processing has terminated;
634 +; last request memory - the max amount of memory the last request consumed
635 +; it's always 0 if the process is not in Idle state
636 +; because memory calculation is done when the request
637 +; processing has terminated;
638 +; If the process is in Idle state, then informations are related to the
639 +; last request the process has served. Otherwise informations are related to
640 +; the current request being served.
642 +; ************************
645 +; start time: 01/Jul/2011:17:53:49 +0200
646 +; start since: 63087
648 +; request duration: 1250261
649 +; request method: GET
650 +; request URI: /test_mem.php?N=10000
653 +; script: /home/fat/web/docs/php/test_mem.php
654 +; last request cpu: 0.00
655 +; last request memory: 0
657 +; Note: There is a real-time FPM status monitoring sample web page available
658 +; It's available in: @EXPANDED_DATADIR@/fpm/status.html
660 +; Note: The value must start with a leading slash (/). The value can be
661 +; anything, but it may not be a good idea to use the .php extension or it
662 +; may conflict with a real PHP file.
663 +; Default Value: not set
664 +;pm.status_path = /status
666 +; The ping URI to call the monitoring page of FPM. If this value is not set, no
667 +; URI will be recognized as a ping page. This could be used to test from outside
668 +; that FPM is alive and responding, or to
669 +; - create a graph of FPM availability (rrd or such);
670 +; - remove a server from a group if it is not responding (load balancing);
671 +; - trigger alerts for the operating team (24/7).
672 +; Note: The value must start with a leading slash (/). The value can be
673 +; anything, but it may not be a good idea to use the .php extension or it
674 +; may conflict with a real PHP file.
675 +; Default Value: not set
678 +; This directive may be used to customize the response of a ping request. The
679 +; response is formatted as text/plain with a 200 response code.
680 +; Default Value: pong
681 +;ping.response = pong
683 +; The access log file
685 +;access.log = log/$pool.access.log
687 +; The access log format.
688 +; The following syntax is allowed
689 +; %%: the '%' character
690 +; %C: %CPU used by the request
691 +; it can accept the following format:
692 +; - %{user}C for user CPU only
693 +; - %{system}C for system CPU only
694 +; - %{total}C for user + system CPU (default)
695 +; %d: time taken to serve the request
696 +; it can accept the following format:
697 +; - %{seconds}d (default)
700 +; - %{microseconds}d
702 +; %e: an environment variable (same as $_ENV or $_SERVER)
703 +; it must be associated with embraces to specify the name of the env
704 +; variable. Some exemples:
705 +; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
706 +; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
707 +; %f: script filename
708 +; %l: content-length of the request (for POST request only)
709 +; %m: request method
710 +; %M: peak of memory allocated by PHP
711 +; it can accept the following format:
712 +; - %{bytes}M (default)
719 +; it must be associated with embraces to specify the name of the header:
720 +; - %{Content-Type}o
721 +; - %{X-Powered-By}o
722 +; - %{Transfert-Encoding}o
724 +; %p: PID of the child that serviced the request
725 +; %P: PID of the parent of the child that serviced the request
726 +; %q: the query string
727 +; %Q: the '?' character if query string exists
728 +; %r: the request URI (without the query string, see %q and %Q)
729 +; %R: remote IP address
730 +; %s: status (response code)
731 +; %t: server time the request was received
732 +; it can accept a strftime(3) format:
733 +; %d/%b/%Y:%H:%M:%S %z (default)
734 +; %T: time the log has been written (the request has finished)
735 +; it can accept a strftime(3) format:
736 +; %d/%b/%Y:%H:%M:%S %z (default)
739 +; Default: "%R - %u %t \"%m %r\" %s"
740 +;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
742 +; The log file for slow requests
743 +; Default Value: not set
744 +; Note: slowlog is mandatory if request_slowlog_timeout is set
745 +;slowlog = log/$pool.log.slow
747 +; The timeout for serving a single request after which a PHP backtrace will be
748 +; dumped to the 'slowlog' file. A value of '0s' means 'off'.
749 +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
751 +;request_slowlog_timeout = 0
753 +; The timeout for serving a single request after which the worker process will
754 +; be killed. This option should be used when the 'max_execution_time' ini option
755 +; does not stop script execution for some reason. A value of '0' means 'off'.
756 +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
758 +;request_terminate_timeout = 0
760 +; Set open file descriptor rlimit.
761 +; Default Value: system defined value
762 +;rlimit_files = 1024
764 +; Set max core size rlimit.
765 +; Possible Values: 'unlimited' or an integer greater or equal to 0
766 +; Default Value: system defined value
769 +; Chroot to this directory at the start. This value must be defined as an
770 +; absolute path. When this value is not set, chroot is not used.
771 +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
772 +; of its subdirectories. If the pool prefix is not set, the global prefix
773 +; will be used instead.
774 +; Note: chrooting is a great security feature and should be used whenever
775 +; possible. However, all PHP paths will be relative to the chroot
776 +; (error_log, sessions.save_path, ...).
777 +; Default Value: not set
780 +; Chdir to this directory at the start.
781 +; Note: relative path can be used.
782 +; Default Value: current directory or / when chroot
785 +; Redirect worker stdout and stderr into main error log. If not set, stdout and
786 +; stderr will be redirected to /dev/null according to FastCGI specs.
787 +; Note: on highloaded environement, this can cause some delay in the page
788 +; process time (several ms).
790 +;catch_workers_output = yes
792 +; Clear environment in FPM workers
793 +; Prevents arbitrary environment variables from reaching FPM worker processes
794 +; by clearing the environment in workers before env vars specified in this
795 +; pool configuration are added.
796 +; Setting to "no" will make all environment variables available to PHP code
797 +; via getenv(), $_ENV and $_SERVER.
798 +; Default Value: yes
801 +; Limits the extensions of the main script FPM will allow to parse. This can
802 +; prevent configuration mistakes on the web server side. You should only limit
803 +; FPM to .php extensions to prevent malicious users to use other extensions to
804 +; exectute php code.
805 +; Note: set an empty value to allow all extensions.
806 +; Default Value: .php
807 +;security.limit_extensions = .php .php3 .php4 .php5
809 +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
810 +; the current environment.
811 +; Default Value: clean env
812 +;env[HOSTNAME] = $HOSTNAME
818 +; Additional php.ini defines, specific to this pool of workers. These settings
819 +; overwrite the values previously defined in the php.ini. The directives are the
820 +; same as the PHP SAPI:
821 +; php_value/php_flag - you can set classic ini defines which can
822 +; be overwritten from PHP call 'ini_set'.
823 +; php_admin_value/php_admin_flag - these directives won't be overwritten by
824 +; PHP call 'ini_set'
825 +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
827 +; Defining 'extension' will load the corresponding shared extension from
828 +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
829 +; overwrite previously defined php.ini values, but will append the new value
832 +; Note: path INI options can be relative and will be expanded with the prefix
833 +; (pool, global or @prefix@)
835 +; Default Value: nothing is defined by default except the values in php.ini and
836 +; specified at startup with the -d argument
837 +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
838 +;php_flag[display_errors] = off
839 +;php_admin_value[error_log] = /var/log/fpm-php.www.log
840 +;php_admin_flag[log_errors] = on
841 +;php_admin_value[memory_limit] = 32M
842 --- php-5.5.7/sapi/fpm/config.m4~ 2013-12-16 17:57:03.000000000 +0200
843 +++ php-5.5.7/sapi/fpm/config.m4 2013-12-16 18:00:34.936527309 +0200
846 PHP_ADD_BUILD_DIR(sapi/fpm/fpm)
847 PHP_ADD_BUILD_DIR(sapi/fpm/fpm/events)
848 - PHP_OUTPUT(sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html)
849 + PHP_OUTPUT(sapi/fpm/php-fpm.conf sapi/fpm/php-fpm.conf-d sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html)
850 PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/fpm/Makefile.frag])
852 SAPI_FPM_PATH=sapi/fpm/php-fpm
853 --- php-5.5.7/sapi/fpm/Makefile.frag~ 2013-12-16 17:57:03.000000000 +0200
854 +++ php-5.5.7/sapi/fpm/Makefile.frag 2013-12-16 18:01:19.511829907 +0200
856 @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
858 @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \
859 - $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || :
860 + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/fpm.d || :
861 @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf || :
862 + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf || :
864 @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"
865 @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8