1 --- php-5.6.4/sapi/fpm/php-fpm.conf.in~ 2015-01-01 17:18:30.000000000 +0200
2 +++ php-5.6.4/sapi/fpm/php-fpm.conf.in 2015-01-01 17:20:31.203799290 +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@
75 -; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
76 -; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
77 -; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
78 -; must be separated by a comma. If this value is left blank, connections will be
79 -; accepted from any ip address.
81 -;listen.allowed_clients = 127.0.0.1
83 -; Specify the nice(2) priority to apply to the pool processes (only if set)
84 -; The value can vary from -19 (highest priority) to 20 (lower priority)
85 -; Note: - It will only work if the FPM master process is launched as root
86 -; - The pool processes will inherit the master process priority
87 -; unless it specified otherwise
88 -; Default Value: no set
89 -; process.priority = -19
91 -; Choose how the process manager will control the number of child processes.
93 -; static - a fixed number (pm.max_children) of child processes;
94 -; dynamic - the number of child processes are set dynamically based on the
95 -; following directives. With this process management, there will be
96 -; always at least 1 children.
97 -; pm.max_children - the maximum number of children that can
98 -; be alive at the same time.
99 -; pm.start_servers - the number of children created on startup.
100 -; pm.min_spare_servers - the minimum number of children in 'idle'
101 -; state (waiting to process). If the number
102 -; of 'idle' processes is less than this
103 -; number then some children will be created.
104 -; pm.max_spare_servers - the maximum number of children in 'idle'
105 -; state (waiting to process). If the number
106 -; of 'idle' processes is greater than this
107 -; number then some children will be killed.
108 -; ondemand - no children are created at startup. Children will be forked when
109 -; new requests will connect. The following parameter are used:
110 -; pm.max_children - the maximum number of children that
111 -; can be alive at the same time.
112 -; pm.process_idle_timeout - The number of seconds after which
113 -; an idle process will be killed.
114 -; Note: This value is mandatory.
117 -; The number of child processes to be created when pm is set to 'static' and the
118 -; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
119 -; This value sets the limit on the number of simultaneous requests that will be
120 -; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
121 -; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
122 -; CGI. The below defaults are based on a server without much resources. Don't
123 -; forget to tweak pm.* to fit your needs.
124 -; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
125 -; Note: This value is mandatory.
128 -; The number of child processes created on startup.
129 -; Note: Used only when pm is set to 'dynamic'
130 -; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
131 -pm.start_servers = 2
133 -; The desired minimum number of idle server processes.
134 -; Note: Used only when pm is set to 'dynamic'
135 -; Note: Mandatory when pm is set to 'dynamic'
136 -pm.min_spare_servers = 1
138 -; The desired maximum 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.max_spare_servers = 3
143 -; The number of seconds after which an idle process will be killed.
144 -; Note: Used only when pm is set to 'ondemand'
145 -; Default Value: 10s
146 -;pm.process_idle_timeout = 10s;
148 -; The number of requests each child process should execute before respawning.
149 -; This can be useful to work around memory leaks in 3rd party libraries. For
150 -; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
152 -;pm.max_requests = 500
154 -; The URI to view the FPM status page. If this value is not set, no URI will be
155 -; recognized as a status page. It shows the following informations:
156 -; pool - the name of the pool;
157 -; process manager - static, dynamic or ondemand;
158 -; start time - the date and time FPM has started;
159 -; start since - number of seconds since FPM has started;
160 -; accepted conn - the number of request accepted by the pool;
161 -; listen queue - the number of request in the queue of pending
162 -; connections (see backlog in listen(2));
163 -; max listen queue - the maximum number of requests in the queue
164 -; of pending connections since FPM has started;
165 -; listen queue len - the size of the socket queue of pending connections;
166 -; idle processes - the number of idle processes;
167 -; active processes - the number of active processes;
168 -; total processes - the number of idle + active processes;
169 -; max active processes - the maximum number of active processes since FPM
171 -; max children reached - number of times, the process limit has been reached,
172 -; when pm tries to start more children (works only for
173 -; pm 'dynamic' and 'ondemand');
174 -; Value are updated in real time.
177 -; process manager: static
178 -; start time: 01/Jul/2011:17:53:49 +0200
179 -; start since: 62636
180 -; accepted conn: 190460
182 -; max listen queue: 1
183 -; listen queue len: 42
185 -; active processes: 11
186 -; total processes: 15
187 -; max active processes: 12
188 -; max children reached: 0
190 -; By default the status page output is formatted as text/plain. Passing either
191 -; 'html', 'xml' or 'json' in the query string will return the corresponding
192 -; output syntax. Example:
193 -; http://www.foo.bar/status
194 -; http://www.foo.bar/status?json
195 -; http://www.foo.bar/status?html
196 -; http://www.foo.bar/status?xml
198 -; By default the status page only outputs short status. Passing 'full' in the
199 -; query string will also return status for each pool process.
201 -; http://www.foo.bar/status?full
202 -; http://www.foo.bar/status?json&full
203 -; http://www.foo.bar/status?html&full
204 -; http://www.foo.bar/status?xml&full
205 -; The Full status returns for each process:
206 -; pid - the PID of the process;
207 -; state - the state of the process (Idle, Running, ...);
208 -; start time - the date and time the process has started;
209 -; start since - the number of seconds since the process has started;
210 -; requests - the number of requests the process has served;
211 -; request duration - the duration in µs of the requests;
212 -; request method - the request method (GET, POST, ...);
213 -; request URI - the request URI with the query string;
214 -; content length - the content length of the request (only with POST);
215 -; user - the user (PHP_AUTH_USER) (or '-' if not set);
216 -; script - the main script called (or '-' if not set);
217 -; last request cpu - the %cpu the last request consumed
218 -; it's always 0 if the process is not in Idle state
219 -; because CPU calculation is done when the request
220 -; processing has terminated;
221 -; last request memory - the max amount of memory the last request consumed
222 -; it's always 0 if the process is not in Idle state
223 -; because memory calculation is done when the request
224 -; processing has terminated;
225 -; If the process is in Idle state, then informations are related to the
226 -; last request the process has served. Otherwise informations are related to
227 -; the current request being served.
229 -; ************************
232 -; start time: 01/Jul/2011:17:53:49 +0200
233 -; start since: 63087
235 -; request duration: 1250261
236 -; request method: GET
237 -; request URI: /test_mem.php?N=10000
240 -; script: /home/fat/web/docs/php/test_mem.php
241 -; last request cpu: 0.00
242 -; last request memory: 0
244 -; Note: There is a real-time FPM status monitoring sample web page available
245 -; It's available in: @EXPANDED_DATADIR@/fpm/status.html
247 -; Note: The value must start with a leading slash (/). The value can be
248 -; anything, but it may not be a good idea to use the .php extension or it
249 -; may conflict with a real PHP file.
250 -; Default Value: not set
251 -;pm.status_path = /status
253 -; The ping URI to call the monitoring page of FPM. If this value is not set, no
254 -; URI will be recognized as a ping page. This could be used to test from outside
255 -; that FPM is alive and responding, or to
256 -; - create a graph of FPM availability (rrd or such);
257 -; - remove a server from a group if it is not responding (load balancing);
258 -; - trigger alerts for the operating team (24/7).
259 -; Note: The value must start with a leading slash (/). The value can be
260 -; anything, but it may not be a good idea to use the .php extension or it
261 -; may conflict with a real PHP file.
262 -; Default Value: not set
265 -; This directive may be used to customize the response of a ping request. The
266 -; response is formatted as text/plain with a 200 response code.
267 -; Default Value: pong
268 -;ping.response = pong
270 -; The access log file
272 -;access.log = log/$pool.access.log
274 -; The access log format.
275 -; The following syntax is allowed
276 -; %%: the '%' character
277 -; %C: %CPU used by the request
278 -; it can accept the following format:
279 -; - %{user}C for user CPU only
280 -; - %{system}C for system CPU only
281 -; - %{total}C for user + system CPU (default)
282 -; %d: time taken to serve the request
283 -; it can accept the following format:
284 -; - %{seconds}d (default)
287 -; - %{microseconds}d
289 -; %e: an environment variable (same as $_ENV or $_SERVER)
290 -; it must be associated with embraces to specify the name of the env
291 -; variable. Some exemples:
292 -; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
293 -; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
294 -; %f: script filename
295 -; %l: content-length of the request (for POST request only)
296 -; %m: request method
297 -; %M: peak of memory allocated by PHP
298 -; it can accept the following format:
299 -; - %{bytes}M (default)
306 -; it must be associated with embraces to specify the name of the header:
307 -; - %{Content-Type}o
308 -; - %{X-Powered-By}o
309 -; - %{Transfert-Encoding}o
311 -; %p: PID of the child that serviced the request
312 -; %P: PID of the parent of the child that serviced the request
313 -; %q: the query string
314 -; %Q: the '?' character if query string exists
315 -; %r: the request URI (without the query string, see %q and %Q)
316 -; %R: remote IP address
317 -; %s: status (response code)
318 -; %t: server time the request was received
319 -; it can accept a strftime(3) format:
320 -; %d/%b/%Y:%H:%M:%S %z (default)
321 -; %T: time the log has been written (the request has finished)
322 -; it can accept a strftime(3) format:
323 -; %d/%b/%Y:%H:%M:%S %z (default)
326 -; Default: "%R - %u %t \"%m %r\" %s"
327 -;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
329 -; The log file for slow requests
330 -; Default Value: not set
331 -; Note: slowlog is mandatory if request_slowlog_timeout is set
332 -;slowlog = log/$pool.log.slow
334 -; The timeout for serving a single request after which a PHP backtrace will be
335 -; dumped to the 'slowlog' file. A value of '0s' means 'off'.
336 -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
338 -;request_slowlog_timeout = 0
340 -; The timeout for serving a single request after which the worker process will
341 -; be killed. This option should be used when the 'max_execution_time' ini option
342 -; does not stop script execution for some reason. A value of '0' means 'off'.
343 -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
345 -;request_terminate_timeout = 0
347 -; Set open file descriptor rlimit.
348 -; Default Value: system defined value
349 -;rlimit_files = 1024
351 -; Set max core size rlimit.
352 -; Possible Values: 'unlimited' or an integer greater or equal to 0
353 -; Default Value: system defined value
356 -; Chroot to this directory at the start. This value must be defined as an
357 -; absolute path. When this value is not set, chroot is not used.
358 -; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
359 -; of its subdirectories. If the pool prefix is not set, the global prefix
360 -; will be used instead.
361 -; Note: chrooting is a great security feature and should be used whenever
362 -; possible. However, all PHP paths will be relative to the chroot
363 -; (error_log, sessions.save_path, ...).
364 -; Default Value: not set
367 -; Chdir to this directory at the start.
368 -; Note: relative path can be used.
369 -; Default Value: current directory or / when chroot
372 -; Redirect worker stdout and stderr into main error log. If not set, stdout and
373 -; stderr will be redirected to /dev/null according to FastCGI specs.
374 -; Note: on highloaded environement, this can cause some delay in the page
375 -; process time (several ms).
377 -;catch_workers_output = yes
379 -; Clear environment in FPM workers
380 -; Prevents arbitrary environment variables from reaching FPM worker processes
381 -; by clearing the environment in workers before env vars specified in this
382 -; pool configuration are added.
383 -; Setting to "no" will make all environment variables available to PHP code
384 -; via getenv(), $_ENV and $_SERVER.
385 -; Default Value: yes
388 -; Limits the extensions of the main script FPM will allow to parse. This can
389 -; prevent configuration mistakes on the web server side. You should only limit
390 -; FPM to .php extensions to prevent malicious users to use other extensions to
391 -; exectute php code.
392 -; Note: set an empty value to allow all extensions.
393 -; Default Value: .php
394 -;security.limit_extensions = .php .php3 .php4 .php5
396 -; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
397 -; the current environment.
398 -; Default Value: clean env
399 -;env[HOSTNAME] = $HOSTNAME
400 -;env[PATH] = /usr/local/bin:/usr/bin:/bin
405 -; Additional php.ini defines, specific to this pool of workers. These settings
406 -; overwrite the values previously defined in the php.ini. The directives are the
407 -; same as the PHP SAPI:
408 -; php_value/php_flag - you can set classic ini defines which can
409 -; be overwritten from PHP call 'ini_set'.
410 -; php_admin_value/php_admin_flag - these directives won't be overwritten by
411 -; PHP call 'ini_set'
412 -; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
414 -; Defining 'extension' will load the corresponding shared extension from
415 -; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
416 -; overwrite previously defined php.ini values, but will append the new value
419 -; Note: path INI options can be relative and will be expanded with the prefix
420 -; (pool, global or @prefix@)
422 -; Default Value: nothing is defined by default except the values in php.ini and
423 -; specified at startup with the -d argument
424 -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
425 -;php_flag[display_errors] = off
426 -;php_admin_value[error_log] = /var/log/fpm-php.www.log
427 -;php_admin_flag[log_errors] = on
428 -;php_admin_value[memory_limit] = 32M
429 --- /dev/null 2007-02-13 18:29:53.000000000 +0200
430 +++ php-5.6.4/sapi/fpm/php-fpm.conf-d.in 2015-01-01 17:19:55.621958470 +0200
432 +; Start a new pool named 'www'.
433 +; the variable $pool can we used in any directive and will be replaced by the
434 +; pool name ('www' here)
438 +; It only applies on the following directives:
441 +; - 'listen' (unixsocket)
445 +; - 'php_admin_values'
446 +; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
447 +; Note: This directive can also be relative to the global prefix.
448 +; Default Value: none
449 +;prefix = /path/to/pools/$pool
451 +; Unix user/group of processes
452 +; Note: The user is mandatory. If the group is not set, the default user's group
454 +user = @php_fpm_user@
455 +group = @php_fpm_group@
457 +; The address on which to accept FastCGI requests.
458 +; Valid syntaxes are:
459 +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
461 +; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
463 +; 'port' - to listen on a TCP socket to all IPv4 addresses on a
465 +; '[::]:port' - to listen on a TCP socket to all addresses
466 +; (IPv6 and IPv4-mapped) on a specific port;
467 +; '/path/to/unix/socket' - to listen on a unix socket.
468 +; Note: This value is mandatory.
469 +listen = 127.0.0.1:9000
471 +; Set listen(2) backlog.
472 +; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
473 +;listen.backlog = 65535
475 +; Set permissions for unix socket, if one is used. In Linux, read/write
476 +; permissions must be set in order to allow connections from a web server. Many
477 +; BSD-derived systems allow connections regardless of permissions.
478 +; Default Values: user and group are set as the running user
479 +; mode is set to 0660
480 +;listen.owner = @php_fpm_user@
481 +;listen.group = @php_fpm_group@
484 +; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
485 +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
486 +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
487 +; must be separated by a comma. If this value is left blank, connections will be
488 +; accepted from any ip address.
489 +; Default Value: any
490 +;listen.allowed_clients = 127.0.0.1
492 +; Specify the nice(2) priority to apply to the pool processes (only if set)
493 +; The value can vary from -19 (highest priority) to 20 (lower priority)
494 +; Note: - It will only work if the FPM master process is launched as root
495 +; - The pool processes will inherit the master process priority
496 +; unless it specified otherwise
497 +; Default Value: no set
498 +; process.priority = -19
500 +; Choose how the process manager will control the number of child processes.
502 +; static - a fixed number (pm.max_children) of child processes;
503 +; dynamic - the number of child processes are set dynamically based on the
504 +; following directives. With this process management, there will be
505 +; always at least 1 children.
506 +; pm.max_children - the maximum number of children that can
507 +; be alive at the same time.
508 +; pm.start_servers - the number of children created on startup.
509 +; pm.min_spare_servers - the minimum number of children in 'idle'
510 +; state (waiting to process). If the number
511 +; of 'idle' processes is less than this
512 +; number then some children will be created.
513 +; pm.max_spare_servers - the maximum number of children in 'idle'
514 +; state (waiting to process). If the number
515 +; of 'idle' processes is greater than this
516 +; number then some children will be killed.
517 +; ondemand - no children are created at startup. Children will be forked when
518 +; new requests will connect. The following parameter are used:
519 +; pm.max_children - the maximum number of children that
520 +; can be alive at the same time.
521 +; pm.process_idle_timeout - The number of seconds after which
522 +; an idle process will be killed.
523 +; Note: This value is mandatory.
526 +; The number of child processes to be created when pm is set to 'static' and the
527 +; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
528 +; This value sets the limit on the number of simultaneous requests that will be
529 +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
530 +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
531 +; CGI. The below defaults are based on a server without much resources. Don't
532 +; forget to tweak pm.* to fit your needs.
533 +; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
534 +; Note: This value is mandatory.
537 +; The number of child processes created on startup.
538 +; Note: Used only when pm is set to 'dynamic'
539 +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
540 +pm.start_servers = 2
542 +; The desired minimum number of idle server processes.
543 +; Note: Used only when pm is set to 'dynamic'
544 +; Note: Mandatory when pm is set to 'dynamic'
545 +pm.min_spare_servers = 1
547 +; The desired maximum number of idle server processes.
548 +; Note: Used only when pm is set to 'dynamic'
549 +; Note: Mandatory when pm is set to 'dynamic'
550 +pm.max_spare_servers = 3
552 +; The number of seconds after which an idle process will be killed.
553 +; Note: Used only when pm is set to 'ondemand'
554 +; Default Value: 10s
555 +;pm.process_idle_timeout = 10s;
557 +; The number of requests each child process should execute before respawning.
558 +; This can be useful to work around memory leaks in 3rd party libraries. For
559 +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
561 +;pm.max_requests = 500
563 +; The URI to view the FPM status page. If this value is not set, no URI will be
564 +; recognized as a status page. It shows the following informations:
565 +; pool - the name of the pool;
566 +; process manager - static, dynamic or ondemand;
567 +; start time - the date and time FPM has started;
568 +; start since - number of seconds since FPM has started;
569 +; accepted conn - the number of request accepted by the pool;
570 +; listen queue - the number of request in the queue of pending
571 +; connections (see backlog in listen(2));
572 +; max listen queue - the maximum number of requests in the queue
573 +; of pending connections since FPM has started;
574 +; listen queue len - the size of the socket queue of pending connections;
575 +; idle processes - the number of idle processes;
576 +; active processes - the number of active processes;
577 +; total processes - the number of idle + active processes;
578 +; max active processes - the maximum number of active processes since FPM
580 +; max children reached - number of times, the process limit has been reached,
581 +; when pm tries to start more children (works only for
582 +; pm 'dynamic' and 'ondemand');
583 +; Value are updated in real time.
586 +; process manager: static
587 +; start time: 01/Jul/2011:17:53:49 +0200
588 +; start since: 62636
589 +; accepted conn: 190460
591 +; max listen queue: 1
592 +; listen queue len: 42
594 +; active processes: 11
595 +; total processes: 15
596 +; max active processes: 12
597 +; max children reached: 0
599 +; By default the status page output is formatted as text/plain. Passing either
600 +; 'html', 'xml' or 'json' in the query string will return the corresponding
601 +; output syntax. Example:
602 +; http://www.foo.bar/status
603 +; http://www.foo.bar/status?json
604 +; http://www.foo.bar/status?html
605 +; http://www.foo.bar/status?xml
607 +; By default the status page only outputs short status. Passing 'full' in the
608 +; query string will also return status for each pool process.
610 +; http://www.foo.bar/status?full
611 +; http://www.foo.bar/status?json&full
612 +; http://www.foo.bar/status?html&full
613 +; http://www.foo.bar/status?xml&full
614 +; The Full status returns for each process:
615 +; pid - the PID of the process;
616 +; state - the state of the process (Idle, Running, ...);
617 +; start time - the date and time the process has started;
618 +; start since - the number of seconds since the process has started;
619 +; requests - the number of requests the process has served;
620 +; request duration - the duration in µs of the requests;
621 +; request method - the request method (GET, POST, ...);
622 +; request URI - the request URI with the query string;
623 +; content length - the content length of the request (only with POST);
624 +; user - the user (PHP_AUTH_USER) (or '-' if not set);
625 +; script - the main script called (or '-' if not set);
626 +; last request cpu - the %cpu the last request consumed
627 +; it's always 0 if the process is not in Idle state
628 +; because CPU calculation is done when the request
629 +; processing has terminated;
630 +; last request memory - the max amount of memory the last request consumed
631 +; it's always 0 if the process is not in Idle state
632 +; because memory calculation is done when the request
633 +; processing has terminated;
634 +; If the process is in Idle state, then informations are related to the
635 +; last request the process has served. Otherwise informations are related to
636 +; the current request being served.
638 +; ************************
641 +; start time: 01/Jul/2011:17:53:49 +0200
642 +; start since: 63087
644 +; request duration: 1250261
645 +; request method: GET
646 +; request URI: /test_mem.php?N=10000
649 +; script: /home/fat/web/docs/php/test_mem.php
650 +; last request cpu: 0.00
651 +; last request memory: 0
653 +; Note: There is a real-time FPM status monitoring sample web page available
654 +; It's available in: @EXPANDED_DATADIR@/fpm/status.html
656 +; Note: The value must start with a leading slash (/). The value can be
657 +; anything, but it may not be a good idea to use the .php extension or it
658 +; may conflict with a real PHP file.
659 +; Default Value: not set
660 +;pm.status_path = /status
662 +; The ping URI to call the monitoring page of FPM. If this value is not set, no
663 +; URI will be recognized as a ping page. This could be used to test from outside
664 +; that FPM is alive and responding, or to
665 +; - create a graph of FPM availability (rrd or such);
666 +; - remove a server from a group if it is not responding (load balancing);
667 +; - trigger alerts for the operating team (24/7).
668 +; Note: The value must start with a leading slash (/). The value can be
669 +; anything, but it may not be a good idea to use the .php extension or it
670 +; may conflict with a real PHP file.
671 +; Default Value: not set
674 +; This directive may be used to customize the response of a ping request. The
675 +; response is formatted as text/plain with a 200 response code.
676 +; Default Value: pong
677 +;ping.response = pong
679 +; The access log file
681 +;access.log = log/$pool.access.log
683 +; The access log format.
684 +; The following syntax is allowed
685 +; %%: the '%' character
686 +; %C: %CPU used by the request
687 +; it can accept the following format:
688 +; - %{user}C for user CPU only
689 +; - %{system}C for system CPU only
690 +; - %{total}C for user + system CPU (default)
691 +; %d: time taken to serve the request
692 +; it can accept the following format:
693 +; - %{seconds}d (default)
696 +; - %{microseconds}d
698 +; %e: an environment variable (same as $_ENV or $_SERVER)
699 +; it must be associated with embraces to specify the name of the env
700 +; variable. Some exemples:
701 +; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
702 +; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
703 +; %f: script filename
704 +; %l: content-length of the request (for POST request only)
705 +; %m: request method
706 +; %M: peak of memory allocated by PHP
707 +; it can accept the following format:
708 +; - %{bytes}M (default)
715 +; it must be associated with embraces to specify the name of the header:
716 +; - %{Content-Type}o
717 +; - %{X-Powered-By}o
718 +; - %{Transfert-Encoding}o
720 +; %p: PID of the child that serviced the request
721 +; %P: PID of the parent of the child that serviced the request
722 +; %q: the query string
723 +; %Q: the '?' character if query string exists
724 +; %r: the request URI (without the query string, see %q and %Q)
725 +; %R: remote IP address
726 +; %s: status (response code)
727 +; %t: server time the request was received
728 +; it can accept a strftime(3) format:
729 +; %d/%b/%Y:%H:%M:%S %z (default)
730 +; %T: time the log has been written (the request has finished)
731 +; it can accept a strftime(3) format:
732 +; %d/%b/%Y:%H:%M:%S %z (default)
735 +; Default: "%R - %u %t \"%m %r\" %s"
736 +;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
738 +; The log file for slow requests
739 +; Default Value: not set
740 +; Note: slowlog is mandatory if request_slowlog_timeout is set
741 +;slowlog = log/$pool.log.slow
743 +; The timeout for serving a single request after which a PHP backtrace will be
744 +; dumped to the 'slowlog' file. A value of '0s' means 'off'.
745 +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
747 +;request_slowlog_timeout = 0
749 +; The timeout for serving a single request after which the worker process will
750 +; be killed. This option should be used when the 'max_execution_time' ini option
751 +; does not stop script execution for some reason. A value of '0' means 'off'.
752 +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
754 +;request_terminate_timeout = 0
756 +; Set open file descriptor rlimit.
757 +; Default Value: system defined value
758 +;rlimit_files = 1024
760 +; Set max core size rlimit.
761 +; Possible Values: 'unlimited' or an integer greater or equal to 0
762 +; Default Value: system defined value
765 +; Chroot to this directory at the start. This value must be defined as an
766 +; absolute path. When this value is not set, chroot is not used.
767 +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
768 +; of its subdirectories. If the pool prefix is not set, the global prefix
769 +; will be used instead.
770 +; Note: chrooting is a great security feature and should be used whenever
771 +; possible. However, all PHP paths will be relative to the chroot
772 +; (error_log, sessions.save_path, ...).
773 +; Default Value: not set
776 +; Chdir to this directory at the start.
777 +; Note: relative path can be used.
778 +; Default Value: current directory or / when chroot
781 +; Redirect worker stdout and stderr into main error log. If not set, stdout and
782 +; stderr will be redirected to /dev/null according to FastCGI specs.
783 +; Note: on highloaded environement, this can cause some delay in the page
784 +; process time (several ms).
786 +;catch_workers_output = yes
788 +; Clear environment in FPM workers
789 +; Prevents arbitrary environment variables from reaching FPM worker processes
790 +; by clearing the environment in workers before env vars specified in this
791 +; pool configuration are added.
792 +; Setting to "no" will make all environment variables available to PHP code
793 +; via getenv(), $_ENV and $_SERVER.
794 +; Default Value: yes
797 +; Limits the extensions of the main script FPM will allow to parse. This can
798 +; prevent configuration mistakes on the web server side. You should only limit
799 +; FPM to .php extensions to prevent malicious users to use other extensions to
800 +; exectute php code.
801 +; Note: set an empty value to allow all extensions.
802 +; Default Value: .php
803 +;security.limit_extensions = .php .php3 .php4 .php5
805 +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
806 +; the current environment.
807 +; Default Value: clean env
808 +;env[HOSTNAME] = $HOSTNAME
809 +;env[PATH] = /usr/local/bin:/usr/bin:/bin
814 +; Additional php.ini defines, specific to this pool of workers. These settings
815 +; overwrite the values previously defined in the php.ini. The directives are the
816 +; same as the PHP SAPI:
817 +; php_value/php_flag - you can set classic ini defines which can
818 +; be overwritten from PHP call 'ini_set'.
819 +; php_admin_value/php_admin_flag - these directives won't be overwritten by
820 +; PHP call 'ini_set'
821 +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
823 +; Defining 'extension' will load the corresponding shared extension from
824 +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
825 +; overwrite previously defined php.ini values, but will append the new value
828 +; Note: path INI options can be relative and will be expanded with the prefix
829 +; (pool, global or @prefix@)
831 +; Default Value: nothing is defined by default except the values in php.ini and
832 +; specified at startup with the -d argument
833 +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
834 +;php_flag[display_errors] = off
835 +;php_admin_value[error_log] = /var/log/fpm-php.www.log
836 +;php_admin_flag[log_errors] = on
837 +;php_admin_value[memory_limit] = 32M
838 --- php-5.5.7/sapi/fpm/config.m4~ 2013-12-16 17:57:03.000000000 +0200
839 +++ php-5.5.7/sapi/fpm/config.m4 2013-12-16 18:00:34.936527309 +0200
842 PHP_ADD_BUILD_DIR(sapi/fpm/fpm)
843 PHP_ADD_BUILD_DIR(sapi/fpm/fpm/events)
844 - 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)
845 + 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)
846 PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/fpm/Makefile.frag])
848 SAPI_FPM_PATH=sapi/fpm/php-fpm
849 --- php-5.6.2/sapi/fpm/Makefile.frag~ 2014-10-15 15:59:32.000000000 +0300
850 +++ php-5.6.2/sapi/fpm/Makefile.frag 2014-10-27 08:12:57.402883790 +0200
852 @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
854 @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \
855 - $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || :
856 + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/fpm.d || :
857 @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || :
858 + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf.default || :
860 @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"
861 @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8