1 --- php-5.6.5/sapi/fpm/php-fpm.conf.in~ 2015-02-04 19:22:00.000000000 +0200
2 +++ php-5.6.5/sapi/fpm/php-fpm.conf.in 2015-02-04 19:23:22.109298245 +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/fpm.d/*.conf
19 ; ports and different management options. The name of the pool will be
20 ; used in logs and stats. There is no limitation on the number of pools which
21 ; FPM can handle. Your system will tell you anyway :)
23 -; Start a new pool named 'www'.
24 -; the variable $pool can we used in any directive and will be replaced by the
25 -; pool name ('www' here)
29 -; It only applies on the following directives:
32 -; - 'listen' (unixsocket)
36 -; - 'php_admin_values'
37 -; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
38 -; Note: This directive can also be relative to the global prefix.
39 -; Default Value: none
40 -;prefix = /path/to/pools/$pool
42 -; Unix user/group of processes
43 -; Note: The user is mandatory. If the group is not set, the default user's group
45 -user = @php_fpm_user@
46 -group = @php_fpm_group@
48 -; The address on which to accept FastCGI requests.
49 -; Valid syntaxes are:
50 -; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
52 -; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
54 -; 'port' - to listen on a TCP socket to all IPv4 addresses on a
56 -; '[::]:port' - to listen on a TCP socket to all addresses
57 -; (IPv6 and IPv4-mapped) on a specific port;
58 -; '/path/to/unix/socket' - to listen on a unix socket.
59 -; Note: This value is mandatory.
60 -listen = 127.0.0.1:9000
62 -; Set listen(2) backlog.
63 -; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
64 -;listen.backlog = 65535
66 -; Set permissions for unix socket, if one is used. In Linux, read/write
67 -; permissions must be set in order to allow connections from a web server. Many
68 -; BSD-derived systems allow connections regardless of permissions.
69 -; Default Values: user and group are set as the running user
70 -; mode is set to 0660
71 -;listen.owner = @php_fpm_user@
72 -;listen.group = @php_fpm_group@
74 -; When POSIX Access Control Lists are supported you can set them using
75 -; these options, value is a comma separated list of user/group names.
76 -; When set, listen.owner and listen.group are ignored
80 -; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
81 -; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
82 -; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
83 -; must be separated by a comma. If this value is left blank, connections will be
84 -; accepted from any ip address.
86 -;listen.allowed_clients = 127.0.0.1
88 -; Specify the nice(2) priority to apply to the pool processes (only if set)
89 -; The value can vary from -19 (highest priority) to 20 (lower priority)
90 -; Note: - It will only work if the FPM master process is launched as root
91 -; - The pool processes will inherit the master process priority
92 -; unless it specified otherwise
93 -; Default Value: no set
94 -; process.priority = -19
96 -; Choose how the process manager will control the number of child processes.
98 -; static - a fixed number (pm.max_children) of child processes;
99 -; dynamic - the number of child processes are set dynamically based on the
100 -; following directives. With this process management, there will be
101 -; always at least 1 children.
102 -; pm.max_children - the maximum number of children that can
103 -; be alive at the same time.
104 -; pm.start_servers - the number of children created on startup.
105 -; pm.min_spare_servers - the minimum number of children in 'idle'
106 -; state (waiting to process). If the number
107 -; of 'idle' processes is less than this
108 -; number then some children will be created.
109 -; pm.max_spare_servers - the maximum number of children in 'idle'
110 -; state (waiting to process). If the number
111 -; of 'idle' processes is greater than this
112 -; number then some children will be killed.
113 -; ondemand - no children are created at startup. Children will be forked when
114 -; new requests will connect. The following parameter are used:
115 -; pm.max_children - the maximum number of children that
116 -; can be alive at the same time.
117 -; pm.process_idle_timeout - The number of seconds after which
118 -; an idle process will be killed.
119 -; Note: This value is mandatory.
122 -; The number of child processes to be created when pm is set to 'static' and the
123 -; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
124 -; This value sets the limit on the number of simultaneous requests that will be
125 -; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
126 -; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
127 -; CGI. The below defaults are based on a server without much resources. Don't
128 -; forget to tweak pm.* to fit your needs.
129 -; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
130 -; Note: This value is mandatory.
133 -; The number of child processes created on startup.
134 -; Note: Used only when pm is set to 'dynamic'
135 -; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
136 -pm.start_servers = 2
138 -; The desired minimum number of idle server processes.
139 -; Note: Used only when pm is set to 'dynamic'
140 -; Note: Mandatory when pm is set to 'dynamic'
141 -pm.min_spare_servers = 1
143 -; The desired maximum number of idle server processes.
144 -; Note: Used only when pm is set to 'dynamic'
145 -; Note: Mandatory when pm is set to 'dynamic'
146 -pm.max_spare_servers = 3
148 -; The number of seconds after which an idle process will be killed.
149 -; Note: Used only when pm is set to 'ondemand'
150 -; Default Value: 10s
151 -;pm.process_idle_timeout = 10s;
153 -; The number of requests each child process should execute before respawning.
154 -; This can be useful to work around memory leaks in 3rd party libraries. For
155 -; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
157 -;pm.max_requests = 500
159 -; The URI to view the FPM status page. If this value is not set, no URI will be
160 -; recognized as a status page. It shows the following informations:
161 -; pool - the name of the pool;
162 -; process manager - static, dynamic or ondemand;
163 -; start time - the date and time FPM has started;
164 -; start since - number of seconds since FPM has started;
165 -; accepted conn - the number of request accepted by the pool;
166 -; listen queue - the number of request in the queue of pending
167 -; connections (see backlog in listen(2));
168 -; max listen queue - the maximum number of requests in the queue
169 -; of pending connections since FPM has started;
170 -; listen queue len - the size of the socket queue of pending connections;
171 -; idle processes - the number of idle processes;
172 -; active processes - the number of active processes;
173 -; total processes - the number of idle + active processes;
174 -; max active processes - the maximum number of active processes since FPM
176 -; max children reached - number of times, the process limit has been reached,
177 -; when pm tries to start more children (works only for
178 -; pm 'dynamic' and 'ondemand');
179 -; Value are updated in real time.
182 -; process manager: static
183 -; start time: 01/Jul/2011:17:53:49 +0200
184 -; start since: 62636
185 -; accepted conn: 190460
187 -; max listen queue: 1
188 -; listen queue len: 42
190 -; active processes: 11
191 -; total processes: 15
192 -; max active processes: 12
193 -; max children reached: 0
195 -; By default the status page output is formatted as text/plain. Passing either
196 -; 'html', 'xml' or 'json' in the query string will return the corresponding
197 -; output syntax. Example:
198 -; http://www.foo.bar/status
199 -; http://www.foo.bar/status?json
200 -; http://www.foo.bar/status?html
201 -; http://www.foo.bar/status?xml
203 -; By default the status page only outputs short status. Passing 'full' in the
204 -; query string will also return status for each pool process.
206 -; http://www.foo.bar/status?full
207 -; http://www.foo.bar/status?json&full
208 -; http://www.foo.bar/status?html&full
209 -; http://www.foo.bar/status?xml&full
210 -; The Full status returns for each process:
211 -; pid - the PID of the process;
212 -; state - the state of the process (Idle, Running, ...);
213 -; start time - the date and time the process has started;
214 -; start since - the number of seconds since the process has started;
215 -; requests - the number of requests the process has served;
216 -; request duration - the duration in µs of the requests;
217 -; request method - the request method (GET, POST, ...);
218 -; request URI - the request URI with the query string;
219 -; content length - the content length of the request (only with POST);
220 -; user - the user (PHP_AUTH_USER) (or '-' if not set);
221 -; script - the main script called (or '-' if not set);
222 -; last request cpu - the %cpu the last request consumed
223 -; it's always 0 if the process is not in Idle state
224 -; because CPU calculation is done when the request
225 -; processing has terminated;
226 -; last request memory - the max amount of memory the last request consumed
227 -; it's always 0 if the process is not in Idle state
228 -; because memory calculation is done when the request
229 -; processing has terminated;
230 -; If the process is in Idle state, then informations are related to the
231 -; last request the process has served. Otherwise informations are related to
232 -; the current request being served.
234 -; ************************
237 -; start time: 01/Jul/2011:17:53:49 +0200
238 -; start since: 63087
240 -; request duration: 1250261
241 -; request method: GET
242 -; request URI: /test_mem.php?N=10000
245 -; script: /home/fat/web/docs/php/test_mem.php
246 -; last request cpu: 0.00
247 -; last request memory: 0
249 -; Note: There is a real-time FPM status monitoring sample web page available
250 -; It's available in: @EXPANDED_DATADIR@/fpm/status.html
252 -; Note: The value must start with a leading slash (/). The value can be
253 -; anything, but it may not be a good idea to use the .php extension or it
254 -; may conflict with a real PHP file.
255 -; Default Value: not set
256 -;pm.status_path = /status
258 -; The ping URI to call the monitoring page of FPM. If this value is not set, no
259 -; URI will be recognized as a ping page. This could be used to test from outside
260 -; that FPM is alive and responding, or to
261 -; - create a graph of FPM availability (rrd or such);
262 -; - remove a server from a group if it is not responding (load balancing);
263 -; - trigger alerts for the operating team (24/7).
264 -; Note: The value must start with a leading slash (/). The value can be
265 -; anything, but it may not be a good idea to use the .php extension or it
266 -; may conflict with a real PHP file.
267 -; Default Value: not set
270 -; This directive may be used to customize the response of a ping request. The
271 -; response is formatted as text/plain with a 200 response code.
272 -; Default Value: pong
273 -;ping.response = pong
275 -; The access log file
277 -;access.log = log/$pool.access.log
279 -; The access log format.
280 -; The following syntax is allowed
281 -; %%: the '%' character
282 -; %C: %CPU used by the request
283 -; it can accept the following format:
284 -; - %{user}C for user CPU only
285 -; - %{system}C for system CPU only
286 -; - %{total}C for user + system CPU (default)
287 -; %d: time taken to serve the request
288 -; it can accept the following format:
289 -; - %{seconds}d (default)
292 -; - %{microseconds}d
294 -; %e: an environment variable (same as $_ENV or $_SERVER)
295 -; it must be associated with embraces to specify the name of the env
296 -; variable. Some exemples:
297 -; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
298 -; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
299 -; %f: script filename
300 -; %l: content-length of the request (for POST request only)
301 -; %m: request method
302 -; %M: peak of memory allocated by PHP
303 -; it can accept the following format:
304 -; - %{bytes}M (default)
311 -; it must be associated with embraces to specify the name of the header:
312 -; - %{Content-Type}o
313 -; - %{X-Powered-By}o
314 -; - %{Transfert-Encoding}o
316 -; %p: PID of the child that serviced the request
317 -; %P: PID of the parent of the child that serviced the request
318 -; %q: the query string
319 -; %Q: the '?' character if query string exists
320 -; %r: the request URI (without the query string, see %q and %Q)
321 -; %R: remote IP address
322 -; %s: status (response code)
323 -; %t: server time the request was received
324 -; it can accept a strftime(3) format:
325 -; %d/%b/%Y:%H:%M:%S %z (default)
326 -; %T: time the log has been written (the request has finished)
327 -; it can accept a strftime(3) format:
328 -; %d/%b/%Y:%H:%M:%S %z (default)
331 -; Default: "%R - %u %t \"%m %r\" %s"
332 -;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
334 -; The log file for slow requests
335 -; Default Value: not set
336 -; Note: slowlog is mandatory if request_slowlog_timeout is set
337 -;slowlog = log/$pool.log.slow
339 -; The timeout for serving a single request after which a PHP backtrace will be
340 -; dumped to the 'slowlog' file. A value of '0s' means 'off'.
341 -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
343 -;request_slowlog_timeout = 0
345 -; The timeout for serving a single request after which the worker process will
346 -; be killed. This option should be used when the 'max_execution_time' ini option
347 -; does not stop script execution for some reason. A value of '0' means 'off'.
348 -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
350 -;request_terminate_timeout = 0
352 -; Set open file descriptor rlimit.
353 -; Default Value: system defined value
354 -;rlimit_files = 1024
356 -; Set max core size rlimit.
357 -; Possible Values: 'unlimited' or an integer greater or equal to 0
358 -; Default Value: system defined value
361 -; Chroot to this directory at the start. This value must be defined as an
362 -; absolute path. When this value is not set, chroot is not used.
363 -; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
364 -; of its subdirectories. If the pool prefix is not set, the global prefix
365 -; will be used instead.
366 -; Note: chrooting is a great security feature and should be used whenever
367 -; possible. However, all PHP paths will be relative to the chroot
368 -; (error_log, sessions.save_path, ...).
369 -; Default Value: not set
372 -; Chdir to this directory at the start.
373 -; Note: relative path can be used.
374 -; Default Value: current directory or / when chroot
377 -; Redirect worker stdout and stderr into main error log. If not set, stdout and
378 -; stderr will be redirected to /dev/null according to FastCGI specs.
379 -; Note: on highloaded environement, this can cause some delay in the page
380 -; process time (several ms).
382 -;catch_workers_output = yes
384 -; Clear environment in FPM workers
385 -; Prevents arbitrary environment variables from reaching FPM worker processes
386 -; by clearing the environment in workers before env vars specified in this
387 -; pool configuration are added.
388 -; Setting to "no" will make all environment variables available to PHP code
389 -; via getenv(), $_ENV and $_SERVER.
390 -; Default Value: yes
393 -; Limits the extensions of the main script FPM will allow to parse. This can
394 -; prevent configuration mistakes on the web server side. You should only limit
395 -; FPM to .php extensions to prevent malicious users to use other extensions to
396 -; exectute php code.
397 -; Note: set an empty value to allow all extensions.
398 -; Default Value: .php
399 -;security.limit_extensions = .php .php3 .php4 .php5
401 -; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
402 -; the current environment.
403 -; Default Value: clean env
404 -;env[HOSTNAME] = $HOSTNAME
405 -;env[PATH] = /usr/local/bin:/usr/bin:/bin
410 -; Additional php.ini defines, specific to this pool of workers. These settings
411 -; overwrite the values previously defined in the php.ini. The directives are the
412 -; same as the PHP SAPI:
413 -; php_value/php_flag - you can set classic ini defines which can
414 -; be overwritten from PHP call 'ini_set'.
415 -; php_admin_value/php_admin_flag - these directives won't be overwritten by
416 -; PHP call 'ini_set'
417 -; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
419 -; Defining 'extension' will load the corresponding shared extension from
420 -; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
421 -; overwrite previously defined php.ini values, but will append the new value
424 -; Note: path INI options can be relative and will be expanded with the prefix
425 -; (pool, global or @prefix@)
427 -; Default Value: nothing is defined by default except the values in php.ini and
428 -; specified at startup with the -d argument
429 -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
430 -;php_flag[display_errors] = off
431 -;php_admin_value[error_log] = /var/log/fpm-php.www.log
432 -;php_admin_flag[log_errors] = on
433 -;php_admin_value[memory_limit] = 32M
434 --- /dev/null 2007-02-13 18:29:53.000000000 +0200
435 +++ php-5.6.5/sapi/fpm/php-fpm.conf-d.in 2015-02-04 19:23:20.709225773 +0200
437 +; Start a new pool named 'www'.
438 +; the variable $pool can we used in any directive and will be replaced by the
439 +; pool name ('www' here)
443 +; It only applies on the following directives:
446 +; - 'listen' (unixsocket)
450 +; - 'php_admin_values'
451 +; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
452 +; Note: This directive can also be relative to the global prefix.
453 +; Default Value: none
454 +;prefix = /path/to/pools/$pool
456 +; Unix user/group of processes
457 +; Note: The user is mandatory. If the group is not set, the default user's group
459 +user = @php_fpm_user@
460 +group = @php_fpm_group@
462 +; The address on which to accept FastCGI requests.
463 +; Valid syntaxes are:
464 +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
466 +; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
468 +; 'port' - to listen on a TCP socket to all IPv4 addresses on a
470 +; '[::]:port' - to listen on a TCP socket to all addresses
471 +; (IPv6 and IPv4-mapped) on a specific port;
472 +; '/path/to/unix/socket' - to listen on a unix socket.
473 +; Note: This value is mandatory.
474 +listen = 127.0.0.1:9000
476 +; Set listen(2) backlog.
477 +; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
478 +;listen.backlog = 65535
480 +; Set permissions for unix socket, if one is used. In Linux, read/write
481 +; permissions must be set in order to allow connections from a web server. Many
482 +; BSD-derived systems allow connections regardless of permissions.
483 +; Default Values: user and group are set as the running user
484 +; mode is set to 0660
485 +;listen.owner = @php_fpm_user@
486 +;listen.group = @php_fpm_group@
488 +; When POSIX Access Control Lists are supported you can set them using
489 +; these options, value is a comma separated list of user/group names.
490 +; When set, listen.owner and listen.group are ignored
492 +;listen.acl_groups =
494 +; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
495 +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
496 +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
497 +; must be separated by a comma. If this value is left blank, connections will be
498 +; accepted from any ip address.
499 +; Default Value: any
500 +;listen.allowed_clients = 127.0.0.1
502 +; Specify the nice(2) priority to apply to the pool processes (only if set)
503 +; The value can vary from -19 (highest priority) to 20 (lower priority)
504 +; Note: - It will only work if the FPM master process is launched as root
505 +; - The pool processes will inherit the master process priority
506 +; unless it specified otherwise
507 +; Default Value: no set
508 +; process.priority = -19
510 +; Choose how the process manager will control the number of child processes.
512 +; static - a fixed number (pm.max_children) of child processes;
513 +; dynamic - the number of child processes are set dynamically based on the
514 +; following directives. With this process management, there will be
515 +; always at least 1 children.
516 +; pm.max_children - the maximum number of children that can
517 +; be alive at the same time.
518 +; pm.start_servers - the number of children created on startup.
519 +; pm.min_spare_servers - the minimum number of children in 'idle'
520 +; state (waiting to process). If the number
521 +; of 'idle' processes is less than this
522 +; number then some children will be created.
523 +; pm.max_spare_servers - the maximum number of children in 'idle'
524 +; state (waiting to process). If the number
525 +; of 'idle' processes is greater than this
526 +; number then some children will be killed.
527 +; ondemand - no children are created at startup. Children will be forked when
528 +; new requests will connect. The following parameter are used:
529 +; pm.max_children - the maximum number of children that
530 +; can be alive at the same time.
531 +; pm.process_idle_timeout - The number of seconds after which
532 +; an idle process will be killed.
533 +; Note: This value is mandatory.
536 +; The number of child processes to be created when pm is set to 'static' and the
537 +; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
538 +; This value sets the limit on the number of simultaneous requests that will be
539 +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
540 +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
541 +; CGI. The below defaults are based on a server without much resources. Don't
542 +; forget to tweak pm.* to fit your needs.
543 +; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
544 +; Note: This value is mandatory.
547 +; The number of child processes created on startup.
548 +; Note: Used only when pm is set to 'dynamic'
549 +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
550 +pm.start_servers = 2
552 +; The desired minimum number of idle server processes.
553 +; Note: Used only when pm is set to 'dynamic'
554 +; Note: Mandatory when pm is set to 'dynamic'
555 +pm.min_spare_servers = 1
557 +; The desired maximum number of idle server processes.
558 +; Note: Used only when pm is set to 'dynamic'
559 +; Note: Mandatory when pm is set to 'dynamic'
560 +pm.max_spare_servers = 3
562 +; The number of seconds after which an idle process will be killed.
563 +; Note: Used only when pm is set to 'ondemand'
564 +; Default Value: 10s
565 +;pm.process_idle_timeout = 10s;
567 +; The number of requests each child process should execute before respawning.
568 +; This can be useful to work around memory leaks in 3rd party libraries. For
569 +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
571 +;pm.max_requests = 500
573 +; The URI to view the FPM status page. If this value is not set, no URI will be
574 +; recognized as a status page. It shows the following informations:
575 +; pool - the name of the pool;
576 +; process manager - static, dynamic or ondemand;
577 +; start time - the date and time FPM has started;
578 +; start since - number of seconds since FPM has started;
579 +; accepted conn - the number of request accepted by the pool;
580 +; listen queue - the number of request in the queue of pending
581 +; connections (see backlog in listen(2));
582 +; max listen queue - the maximum number of requests in the queue
583 +; of pending connections since FPM has started;
584 +; listen queue len - the size of the socket queue of pending connections;
585 +; idle processes - the number of idle processes;
586 +; active processes - the number of active processes;
587 +; total processes - the number of idle + active processes;
588 +; max active processes - the maximum number of active processes since FPM
590 +; max children reached - number of times, the process limit has been reached,
591 +; when pm tries to start more children (works only for
592 +; pm 'dynamic' and 'ondemand');
593 +; Value are updated in real time.
596 +; process manager: static
597 +; start time: 01/Jul/2011:17:53:49 +0200
598 +; start since: 62636
599 +; accepted conn: 190460
601 +; max listen queue: 1
602 +; listen queue len: 42
604 +; active processes: 11
605 +; total processes: 15
606 +; max active processes: 12
607 +; max children reached: 0
609 +; By default the status page output is formatted as text/plain. Passing either
610 +; 'html', 'xml' or 'json' in the query string will return the corresponding
611 +; output syntax. Example:
612 +; http://www.foo.bar/status
613 +; http://www.foo.bar/status?json
614 +; http://www.foo.bar/status?html
615 +; http://www.foo.bar/status?xml
617 +; By default the status page only outputs short status. Passing 'full' in the
618 +; query string will also return status for each pool process.
620 +; http://www.foo.bar/status?full
621 +; http://www.foo.bar/status?json&full
622 +; http://www.foo.bar/status?html&full
623 +; http://www.foo.bar/status?xml&full
624 +; The Full status returns for each process:
625 +; pid - the PID of the process;
626 +; state - the state of the process (Idle, Running, ...);
627 +; start time - the date and time the process has started;
628 +; start since - the number of seconds since the process has started;
629 +; requests - the number of requests the process has served;
630 +; request duration - the duration in µs of the requests;
631 +; request method - the request method (GET, POST, ...);
632 +; request URI - the request URI with the query string;
633 +; content length - the content length of the request (only with POST);
634 +; user - the user (PHP_AUTH_USER) (or '-' if not set);
635 +; script - the main script called (or '-' if not set);
636 +; last request cpu - the %cpu the last request consumed
637 +; it's always 0 if the process is not in Idle state
638 +; because CPU calculation is done when the request
639 +; processing has terminated;
640 +; last request memory - the max amount of memory the last request consumed
641 +; it's always 0 if the process is not in Idle state
642 +; because memory calculation is done when the request
643 +; processing has terminated;
644 +; If the process is in Idle state, then informations are related to the
645 +; last request the process has served. Otherwise informations are related to
646 +; the current request being served.
648 +; ************************
651 +; start time: 01/Jul/2011:17:53:49 +0200
652 +; start since: 63087
654 +; request duration: 1250261
655 +; request method: GET
656 +; request URI: /test_mem.php?N=10000
659 +; script: /home/fat/web/docs/php/test_mem.php
660 +; last request cpu: 0.00
661 +; last request memory: 0
663 +; Note: There is a real-time FPM status monitoring sample web page available
664 +; It's available in: @EXPANDED_DATADIR@/fpm/status.html
666 +; Note: The value must start with a leading slash (/). The value can be
667 +; anything, but it may not be a good idea to use the .php extension or it
668 +; may conflict with a real PHP file.
669 +; Default Value: not set
670 +;pm.status_path = /status
672 +; The ping URI to call the monitoring page of FPM. If this value is not set, no
673 +; URI will be recognized as a ping page. This could be used to test from outside
674 +; that FPM is alive and responding, or to
675 +; - create a graph of FPM availability (rrd or such);
676 +; - remove a server from a group if it is not responding (load balancing);
677 +; - trigger alerts for the operating team (24/7).
678 +; Note: The value must start with a leading slash (/). The value can be
679 +; anything, but it may not be a good idea to use the .php extension or it
680 +; may conflict with a real PHP file.
681 +; Default Value: not set
684 +; This directive may be used to customize the response of a ping request. The
685 +; response is formatted as text/plain with a 200 response code.
686 +; Default Value: pong
687 +;ping.response = pong
689 +; The access log file
691 +;access.log = log/$pool.access.log
693 +; The access log format.
694 +; The following syntax is allowed
695 +; %%: the '%' character
696 +; %C: %CPU used by the request
697 +; it can accept the following format:
698 +; - %{user}C for user CPU only
699 +; - %{system}C for system CPU only
700 +; - %{total}C for user + system CPU (default)
701 +; %d: time taken to serve the request
702 +; it can accept the following format:
703 +; - %{seconds}d (default)
706 +; - %{microseconds}d
708 +; %e: an environment variable (same as $_ENV or $_SERVER)
709 +; it must be associated with embraces to specify the name of the env
710 +; variable. Some exemples:
711 +; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
712 +; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
713 +; %f: script filename
714 +; %l: content-length of the request (for POST request only)
715 +; %m: request method
716 +; %M: peak of memory allocated by PHP
717 +; it can accept the following format:
718 +; - %{bytes}M (default)
725 +; it must be associated with embraces to specify the name of the header:
726 +; - %{Content-Type}o
727 +; - %{X-Powered-By}o
728 +; - %{Transfert-Encoding}o
730 +; %p: PID of the child that serviced the request
731 +; %P: PID of the parent of the child that serviced the request
732 +; %q: the query string
733 +; %Q: the '?' character if query string exists
734 +; %r: the request URI (without the query string, see %q and %Q)
735 +; %R: remote IP address
736 +; %s: status (response code)
737 +; %t: server time the request was received
738 +; it can accept a strftime(3) format:
739 +; %d/%b/%Y:%H:%M:%S %z (default)
740 +; %T: time the log has been written (the request has finished)
741 +; it can accept a strftime(3) format:
742 +; %d/%b/%Y:%H:%M:%S %z (default)
745 +; Default: "%R - %u %t \"%m %r\" %s"
746 +;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
748 +; The log file for slow requests
749 +; Default Value: not set
750 +; Note: slowlog is mandatory if request_slowlog_timeout is set
751 +;slowlog = log/$pool.log.slow
753 +; The timeout for serving a single request after which a PHP backtrace will be
754 +; dumped to the 'slowlog' file. A value of '0s' means 'off'.
755 +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
757 +;request_slowlog_timeout = 0
759 +; The timeout for serving a single request after which the worker process will
760 +; be killed. This option should be used when the 'max_execution_time' ini option
761 +; does not stop script execution for some reason. A value of '0' means 'off'.
762 +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
764 +;request_terminate_timeout = 0
766 +; Set open file descriptor rlimit.
767 +; Default Value: system defined value
768 +;rlimit_files = 1024
770 +; Set max core size rlimit.
771 +; Possible Values: 'unlimited' or an integer greater or equal to 0
772 +; Default Value: system defined value
775 +; Chroot to this directory at the start. This value must be defined as an
776 +; absolute path. When this value is not set, chroot is not used.
777 +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
778 +; of its subdirectories. If the pool prefix is not set, the global prefix
779 +; will be used instead.
780 +; Note: chrooting is a great security feature and should be used whenever
781 +; possible. However, all PHP paths will be relative to the chroot
782 +; (error_log, sessions.save_path, ...).
783 +; Default Value: not set
786 +; Chdir to this directory at the start.
787 +; Note: relative path can be used.
788 +; Default Value: current directory or / when chroot
791 +; Redirect worker stdout and stderr into main error log. If not set, stdout and
792 +; stderr will be redirected to /dev/null according to FastCGI specs.
793 +; Note: on highloaded environement, this can cause some delay in the page
794 +; process time (several ms).
796 +;catch_workers_output = yes
798 +; Clear environment in FPM workers
799 +; Prevents arbitrary environment variables from reaching FPM worker processes
800 +; by clearing the environment in workers before env vars specified in this
801 +; pool configuration are added.
802 +; Setting to "no" will make all environment variables available to PHP code
803 +; via getenv(), $_ENV and $_SERVER.
804 +; Default Value: yes
807 +; Limits the extensions of the main script FPM will allow to parse. This can
808 +; prevent configuration mistakes on the web server side. You should only limit
809 +; FPM to .php extensions to prevent malicious users to use other extensions to
810 +; exectute php code.
811 +; Note: set an empty value to allow all extensions.
812 +; Default Value: .php
813 +;security.limit_extensions = .php .php3 .php4 .php5
815 +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
816 +; the current environment.
817 +; Default Value: clean env
818 +;env[HOSTNAME] = $HOSTNAME
819 +;env[PATH] = /usr/local/bin:/usr/bin:/bin
824 +; Additional php.ini defines, specific to this pool of workers. These settings
825 +; overwrite the values previously defined in the php.ini. The directives are the
826 +; same as the PHP SAPI:
827 +; php_value/php_flag - you can set classic ini defines which can
828 +; be overwritten from PHP call 'ini_set'.
829 +; php_admin_value/php_admin_flag - these directives won't be overwritten by
830 +; PHP call 'ini_set'
831 +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
833 +; Defining 'extension' will load the corresponding shared extension from
834 +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
835 +; overwrite previously defined php.ini values, but will append the new value
838 +; Note: path INI options can be relative and will be expanded with the prefix
839 +; (pool, global or @prefix@)
841 +; Default Value: nothing is defined by default except the values in php.ini and
842 +; specified at startup with the -d argument
843 +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
844 +;php_flag[display_errors] = off
845 +;php_admin_value[error_log] = /var/log/fpm-php.www.log
846 +;php_admin_flag[log_errors] = on
847 +;php_admin_value[memory_limit] = 32M
848 --- php-5.5.7/sapi/fpm/config.m4~ 2013-12-16 17:57:03.000000000 +0200
849 +++ php-5.5.7/sapi/fpm/config.m4 2013-12-16 18:00:34.936527309 +0200
852 PHP_ADD_BUILD_DIR(sapi/fpm/fpm)
853 PHP_ADD_BUILD_DIR(sapi/fpm/fpm/events)
854 - 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)
855 + 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)
856 PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/fpm/Makefile.frag])
858 SAPI_FPM_PATH=sapi/fpm/php-fpm
859 --- php-5.6.2/sapi/fpm/Makefile.frag~ 2014-10-15 15:59:32.000000000 +0300
860 +++ php-5.6.2/sapi/fpm/Makefile.frag 2014-10-27 08:12:57.402883790 +0200
862 @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
864 @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \
865 - $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || :
866 + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/fpm.d || :
867 @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || :
868 + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf.default || :
870 @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"
871 @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8