1 --- php-5.3.27/sapi/fpm/php-fpm.conf.in~ 2013-12-05 17:20:34.000000000 +0200
2 +++ php-5.3.27/sapi/fpm/php-fpm.conf.in 2013-12-05 20:51:02.914438767 +0200
4 ; prefix (@prefix@). This prefix can be dynamicaly 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 arguement)
12 -; - @prefix@ otherwise
13 -;include=/etc/php/fpm.d/*.conf
18 @@ -116,396 +108,11 @@
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:
31 -; - 'listen' (unixsocket)
35 -; - 'php_admin_values'
36 -; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
37 -; Note: This directive can also be relative to the global prefix.
38 -; Default Value: none
39 -;prefix = /path/to/pools/$pool
41 -; Unix user/group of processes
42 -; Note: The user is mandatory. If the group is not set, the default user's group
44 -user = @php_fpm_user@
45 -group = @php_fpm_group@
47 -; The address on which to accept FastCGI requests.
48 -; Valid syntaxes are:
49 -; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
51 -; 'port' - to listen on a TCP socket to all addresses on a
53 -; '/path/to/unix/socket' - to listen on a unix socket.
54 -; Note: This value is mandatory.
55 -listen = /var/run/php/@processname@.sock
57 -; Set listen(2) backlog. A value of '-1' means unlimited.
58 -; Default Value: 128 (-1 on FreeBSD and OpenBSD)
61 -; Set permissions for unix socket, if one is used. In Linux, read/write
62 -; permissions must be set in order to allow connections from a web server. Many
63 -; BSD-derived systems allow connections regardless of permissions.
64 -; Default Values: user and group are set as the running user
65 -; mode is set to 0666
66 -;listen.owner = @php_fpm_user@
67 -;listen.group = @php_fpm_group@
70 -; List of ipv4 addresses of FastCGI clients which are allowed to connect.
71 -; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
72 -; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
73 -; must be separated by a comma. If this value is left blank, connections will be
74 -; accepted from any ip address.
76 -listen.allowed_clients = 127.0.0.1
78 -; Specify the nice(2) priority to apply to the pool processes (only if set)
79 -; The value can vary from -19 (highest priority) to 20 (lower priority)
80 -; Note: - It will only work if the FPM master process is launched as root
81 -; - The pool processes will inherit the master process priority
82 -; unless it specified otherwise
83 -; Default Value: no set
86 -; Choose how the process manager will control the number of child processes.
88 -; static - a fixed number (pm.max_children) of child processes;
89 -; dynamic - the number of child processes are set dynamically based on the
90 -; following directives. With this process management, there will be
91 -; always at least 1 children.
92 -; pm.max_children - the maximum number of children that can
93 -; be alive at the same time.
94 -; pm.start_servers - the number of children created on startup.
95 -; pm.min_spare_servers - the minimum number of children in 'idle'
96 -; state (waiting to process). If the number
97 -; of 'idle' processes is less than this
98 -; number then some children will be created.
99 -; pm.max_spare_servers - the maximum number of children in 'idle'
100 -; state (waiting to process). If the number
101 -; of 'idle' processes is greater than this
102 -; number then some children will be killed.
103 -; ondemand - no children are created at startup. Children will be forked when
104 -; new requests will connect. The following parameter are used:
105 -; pm.max_children - the maximum number of children that
106 -; can be alive at the same time.
107 -; pm.process_idle_timeout - The number of seconds after which
108 -; an idle process will be killed.
109 -; Note: This value is mandatory.
112 -; The number of child processes to be created when pm is set to 'static' and the
113 -; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
114 -; This value sets the limit on the number of simultaneous requests that will be
115 -; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
116 -; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
117 -; CGI. The below defaults are based on a server without much resources. Don't
118 -; forget to tweak pm.* to fit your needs.
119 -; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
120 -; Note: This value is mandatory.
123 -; The number of child processes created on startup.
124 -; Note: Used only when pm is set to 'dynamic'
125 -; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
126 -pm.start_servers = 2
128 -; The desired minimum number of idle server processes.
129 -; Note: Used only when pm is set to 'dynamic'
130 -; Note: Mandatory when pm is set to 'dynamic'
131 -pm.min_spare_servers = 2
133 -; The desired maximum 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.max_spare_servers = 5
138 -; The number of seconds after which an idle process will be killed.
139 -; Note: Used only when pm is set to 'ondemand'
140 -; Default Value: 10s
141 -;pm.process_idle_timeout = 10s;
143 -; The number of requests each child process should execute before respawning.
144 -; This can be useful to work around memory leaks in 3rd party libraries. For
145 -; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
147 -;pm.max_requests = 500
149 -; The URI to view the FPM status page. If this value is not set, no URI will be
150 -; recognized as a status page. It shows the following informations:
151 -; pool - the name of the pool;
152 -; process manager - static, dynamic or ondemand;
153 -; start time - the date and time FPM has started;
154 -; start since - number of seconds since FPM has started;
155 -; accepted conn - the number of request accepted by the pool;
156 -; listen queue - the number of request in the queue of pending
157 -; connections (see backlog in listen(2));
158 -; max listen queue - the maximum number of requests in the queue
159 -; of pending connections since FPM has started;
160 -; listen queue len - the size of the socket queue of pending connections;
161 -; idle processes - the number of idle processes;
162 -; active processes - the number of active processes;
163 -; total processes - the number of idle + active processes;
164 -; max active processes - the maximum number of active processes since FPM
166 -; max children reached - number of times, the process limit has been reached,
167 -; when pm tries to start more children (works only for
168 -; pm 'dynamic' and 'ondemand');
169 -; Value are updated in real time.
172 -; process manager: static
173 -; start time: 01/Jul/2011:17:53:49 +0200
174 -; start since: 62636
175 -; accepted conn: 190460
177 -; max listen queue: 1
178 -; listen queue len: 42
180 -; active processes: 11
181 -; total processes: 15
182 -; max active processes: 12
183 -; max children reached: 0
185 -; By default the status page output is formatted as text/plain. Passing either
186 -; 'html', 'xml' or 'json' in the query string will return the corresponding
187 -; output syntax. Example:
188 -; http://www.foo.bar/status
189 -; http://www.foo.bar/status?json
190 -; http://www.foo.bar/status?html
191 -; http://www.foo.bar/status?xml
193 -; By default the status page only outputs short status. Passing 'full' in the
194 -; query string will also return status for each pool process.
196 -; http://www.foo.bar/status?full
197 -; http://www.foo.bar/status?json&full
198 -; http://www.foo.bar/status?html&full
199 -; http://www.foo.bar/status?xml&full
200 -; The Full status returns for each process:
201 -; pid - the PID of the process;
202 -; state - the state of the process (Idle, Running, ...);
203 -; start time - the date and time the process has started;
204 -; start since - the number of seconds since the process has started;
205 -; requests - the number of requests the process has served;
206 -; request duration - the duration in µs of the requests;
207 -; request method - the request method (GET, POST, ...);
208 -; request URI - the request URI with the query string;
209 -; content length - the content length of the request (only with POST);
210 -; user - the user (PHP_AUTH_USER) (or '-' if not set);
211 -; script - the main script called (or '-' if not set);
212 -; last request cpu - the %cpu the last request consumed
213 -; it's always 0 if the process is not in Idle state
214 -; because CPU calculation is done when the request
215 -; processing has terminated;
216 -; last request memory - the max amount of memory the last request consumed
217 -; it's always 0 if the process is not in Idle state
218 -; because memory calculation is done when the request
219 -; processing has terminated;
220 -; If the process is in Idle state, then informations are related to the
221 -; last request the process has served. Otherwise informations are related to
222 -; the current request being served.
224 -; ************************
227 -; start time: 01/Jul/2011:17:53:49 +0200
228 -; start since: 63087
230 -; request duration: 1250261
231 -; request method: GET
232 -; request URI: /test_mem.php?N=10000
235 -; script: /home/fat/web/docs/php/test_mem.php
236 -; last request cpu: 0.00
237 -; last request memory: 0
239 -; Note: There is a real-time FPM status monitoring sample web page available
240 -; It's available in: @EXPANDED_DATADIR@/fpm/status.html
242 -; Note: The value must start with a leading slash (/). The value can be
243 -; anything, but it may not be a good idea to use the .php extension or it
244 -; may conflict with a real PHP file.
245 -; Default Value: not set
246 -;pm.status_path = /fpm-status
248 -; The ping URI to call the monitoring page of FPM. If this value is not set, no
249 -; URI will be recognized as a ping page. This could be used to test from outside
250 -; that FPM is alive and responding, or to
251 -; - create a graph of FPM availability (rrd or such);
252 -; - remove a server from a group if it is not responding (load balancing);
253 -; - trigger alerts for the operating team (24/7).
254 -; Note: The value must start with a leading slash (/). The value can be
255 -; anything, but it may not be a good idea to use the .php extension or it
256 -; may conflict with a real PHP file.
257 -; Default Value: not set
260 -; This directive may be used to customize the response of a ping request. The
261 -; response is formatted as text/plain with a 200 response code.
262 -; Default Value: pong
263 -;ping.response = pong
265 -; The access log file
267 -;access.log = log/$pool.access.log
269 -; The access log format.
270 -; The following syntax is allowed
271 -; %%: the '%' character
272 -; %C: %CPU used by the request
273 -; it can accept the following format:
274 -; - %{user}C for user CPU only
275 -; - %{system}C for system CPU only
276 -; - %{total}C for user + system CPU (default)
277 -; %d: time taken to serve the request
278 -; it can accept the following format:
279 -; - %{seconds}d (default)
282 -; - %{microseconds}d
284 -; %e: an environment variable (same as $_ENV or $_SERVER)
285 -; it must be associated with embraces to specify the name of the env
286 -; variable. Some exemples:
287 -; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
288 -; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
289 -; %f: script filename
290 -; %l: content-length of the request (for POST request only)
291 -; %m: request method
292 -; %M: peak of memory allocated by PHP
293 -; it can accept the following format:
294 -; - %{bytes}M (default)
301 -; it must be associated with embraces to specify the name of the header:
302 -; - %{Content-Type}o
303 -; - %{X-Powered-By}o
304 -; - %{Transfert-Encoding}o
306 -; %p: PID of the child that serviced the request
307 -; %P: PID of the parent of the child that serviced the request
308 -; %q: the query string
309 -; %Q: the '?' character if query string exists
310 -; %r: the request URI (without the query string, see %q and %Q)
311 -; %R: remote IP address
312 -; %s: status (response code)
313 -; %t: server time the request was received
314 -; it can accept a strftime(3) format:
315 -; %d/%b/%Y:%H:%M:%S %z (default)
316 -; %T: time the log has been written (the request has finished)
317 -; it can accept a strftime(3) format:
318 -; %d/%b/%Y:%H:%M:%S %z (default)
321 -; Default: "%R - %u %t \"%m %r\" %s"
322 -;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
324 -; The log file for slow requests
325 -; Default Value: not set
326 -; Note: slowlog is mandatory if request_slowlog_timeout is set
327 -;slowlog = log/$pool.log.slow
329 -; The timeout for serving a single request after which a PHP backtrace will be
330 -; dumped to the 'slowlog' file. A value of '0s' means 'off'.
331 -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
333 -;request_slowlog_timeout = 0
335 -; The timeout for serving a single request after which the worker process will
336 -; be killed. This option should be used when the 'max_execution_time' ini option
337 -; does not stop script execution for some reason. A value of '0' means 'off'.
338 -; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
340 -;request_terminate_timeout = 0
342 -; Set open file descriptor rlimit.
343 -; Default Value: system defined value
344 -;rlimit_files = 1024
346 -; Set max core size rlimit.
347 -; Possible Values: 'unlimited' or an integer greater or equal to 0
348 -; Default Value: system defined value
351 -; Chroot to this directory at the start. This value must be defined as an
352 -; absolute path. When this value is not set, chroot is not used.
353 -; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
354 -; of its subdirectories. If the pool prefix is not set, the global prefix
355 -; will be used instead.
356 -; Note: chrooting is a great security feature and should be used whenever
357 -; possible. However, all PHP paths will be relative to the chroot
358 -; (error_log, sessions.save_path, ...).
359 -; Default Value: not set
362 -; Chdir to this directory at the start.
363 -; Note: relative path can be used.
364 -; Default Value: current directory or / when chroot
367 -; Redirect worker stdout and stderr into main error log. If not set, stdout and
368 -; stderr will be redirected to /dev/null according to FastCGI specs.
369 -; Note: on highloaded environement, this can cause some delay in the page
370 -; process time (several ms).
372 -catch_workers_output = yes
374 -; Limits the extensions of the main script FPM will allow to parse. This can
375 -; prevent configuration mistakes on the web server side. You should only limit
376 -; FPM to .php extensions to prevent malicious users to use other extensions to
377 -; exectute php code.
378 -; Note: set an empty value to allow all extensions.
379 -; Default Value: .php
380 -;security.limit_extensions = .php .php3 .php4 .php5
382 -; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
383 -; the current environment.
384 -; Default Value: clean env
385 -;env[HOSTNAME] = $HOSTNAME
391 -; Additional php.ini defines, specific to this pool of workers. These settings
392 -; overwrite the values previously defined in the php.ini. The directives are the
393 -; same as the PHP SAPI:
394 -; php_value/php_flag - you can set classic ini defines which can
395 -; be overwritten from PHP call 'ini_set'.
396 -; php_admin_value/php_admin_flag - these directives won't be overwritten by
397 -; PHP call 'ini_set'
398 -; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
400 -; Defining 'extension' will load the corresponding shared extension from
401 -; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
402 -; overwrite previously defined php.ini values, but will append the new value
405 -; Note: path INI options can be relative and will be expanded with the prefix
406 -; (pool, global or @prefix@)
408 -; Default Value: nothing is defined by default except the values in php.ini and
409 -; specified at startup with the -d argument
410 -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
411 -;php_flag[display_errors] = off
412 -;php_admin_value[error_log] = /var/log/fpm-php.www.log
413 -;php_admin_flag[log_errors] = on
414 -;php_admin_value[memory_limit] = 32M
415 +; Include one or more files. If glob(3) exists, it is used to include a bunch of
416 +; files from a glob(3) pattern. This directive can be used everywhere in the
418 +; Relative path can also be used. They will be prefixed by:
419 +; - the global prefix if it's been set (-p arguement)
420 +; - @prefix@ otherwise
421 +include=/etc/php/fpm.d/*.conf
422 --- /dev/null 2007-02-13 18:29:53.000000000 +0200
423 +++ php-5.3.27/sapi/fpm/php-fpm.conf-d.in 2013-12-05 20:50:54.570727359 +0200
425 +; Start a new pool named 'www'.
426 +; the variable $pool can we used in any directive and will be replaced by the
427 +; pool name ('www' here)
431 +; It only applies on the following directives:
433 +; - 'listen' (unixsocket)
437 +; - 'php_admin_values'
438 +; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
439 +; Note: This directive can also be relative to the global prefix.
440 +; Default Value: none
441 +;prefix = /path/to/pools/$pool
443 +; Unix user/group of processes
444 +; Note: The user is mandatory. If the group is not set, the default user's group
446 +user = @php_fpm_user@
447 +group = @php_fpm_group@
449 +; The address on which to accept FastCGI requests.
450 +; Valid syntaxes are:
451 +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
453 +; 'port' - to listen on a TCP socket to all addresses on a
455 +; '/path/to/unix/socket' - to listen on a unix socket.
456 +; Note: This value is mandatory.
457 +listen = /var/run/php/@processname@.sock
459 +; Set listen(2) backlog. A value of '-1' means unlimited.
460 +; Default Value: 128 (-1 on FreeBSD and OpenBSD)
461 +;listen.backlog = -1
463 +; Set permissions for unix socket, if one is used. In Linux, read/write
464 +; permissions must be set in order to allow connections from a web server. Many
465 +; BSD-derived systems allow connections regardless of permissions.
466 +; Default Values: user and group are set as the running user
467 +; mode is set to 0666
468 +;listen.owner = @php_fpm_user@
469 +;listen.group = @php_fpm_group@
472 +; List of ipv4 addresses of FastCGI clients which are allowed to connect.
473 +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
474 +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
475 +; must be separated by a comma. If this value is left blank, connections will be
476 +; accepted from any ip address.
477 +; Default Value: any
478 +listen.allowed_clients = 127.0.0.1
480 +; Specify the nice(2) priority to apply to the pool processes (only if set)
481 +; The value can vary from -19 (highest priority) to 20 (lower priority)
482 +; Note: - It will only work if the FPM master process is launched as root
483 +; - The pool processes will inherit the master process priority
484 +; unless it specified otherwise
485 +; Default Value: no set
488 +; Choose how the process manager will control the number of child processes.
490 +; static - a fixed number (pm.max_children) of child processes;
491 +; dynamic - the number of child processes are set dynamically based on the
492 +; following directives. With this process management, there will be
493 +; always at least 1 children.
494 +; pm.max_children - the maximum number of children that can
495 +; be alive at the same time.
496 +; pm.start_servers - the number of children created on startup.
497 +; pm.min_spare_servers - the minimum number of children in 'idle'
498 +; state (waiting to process). If the number
499 +; of 'idle' processes is less than this
500 +; number then some children will be created.
501 +; pm.max_spare_servers - the maximum number of children in 'idle'
502 +; state (waiting to process). If the number
503 +; of 'idle' processes is greater than this
504 +; number then some children will be killed.
505 +; ondemand - no children are created at startup. Children will be forked when
506 +; new requests will connect. The following parameter are used:
507 +; pm.max_children - the maximum number of children that
508 +; can be alive at the same time.
509 +; pm.process_idle_timeout - The number of seconds after which
510 +; an idle process will be killed.
511 +; Note: This value is mandatory.
514 +; The number of child processes to be created when pm is set to 'static' and the
515 +; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
516 +; This value sets the limit on the number of simultaneous requests that will be
517 +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
518 +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
519 +; CGI. The below defaults are based on a server without much resources. Don't
520 +; forget to tweak pm.* to fit your needs.
521 +; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
522 +; Note: This value is mandatory.
525 +; The number of child processes created on startup.
526 +; Note: Used only when pm is set to 'dynamic'
527 +; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
528 +pm.start_servers = 2
530 +; The desired minimum number of idle server processes.
531 +; Note: Used only when pm is set to 'dynamic'
532 +; Note: Mandatory when pm is set to 'dynamic'
533 +pm.min_spare_servers = 2
535 +; The desired maximum number of idle server processes.
536 +; Note: Used only when pm is set to 'dynamic'
537 +; Note: Mandatory when pm is set to 'dynamic'
538 +pm.max_spare_servers = 5
540 +; The number of seconds after which an idle process will be killed.
541 +; Note: Used only when pm is set to 'ondemand'
542 +; Default Value: 10s
543 +;pm.process_idle_timeout = 10s;
545 +; The number of requests each child process should execute before respawning.
546 +; This can be useful to work around memory leaks in 3rd party libraries. For
547 +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
549 +;pm.max_requests = 500
551 +; The URI to view the FPM status page. If this value is not set, no URI will be
552 +; recognized as a status page. It shows the following informations:
553 +; pool - the name of the pool;
554 +; process manager - static, dynamic or ondemand;
555 +; start time - the date and time FPM has started;
556 +; start since - number of seconds since FPM has started;
557 +; accepted conn - the number of request accepted by the pool;
558 +; listen queue - the number of request in the queue of pending
559 +; connections (see backlog in listen(2));
560 +; max listen queue - the maximum number of requests in the queue
561 +; of pending connections since FPM has started;
562 +; listen queue len - the size of the socket queue of pending connections;
563 +; idle processes - the number of idle processes;
564 +; active processes - the number of active processes;
565 +; total processes - the number of idle + active processes;
566 +; max active processes - the maximum number of active processes since FPM
568 +; max children reached - number of times, the process limit has been reached,
569 +; when pm tries to start more children (works only for
570 +; pm 'dynamic' and 'ondemand');
571 +; Value are updated in real time.
574 +; process manager: static
575 +; start time: 01/Jul/2011:17:53:49 +0200
576 +; start since: 62636
577 +; accepted conn: 190460
579 +; max listen queue: 1
580 +; listen queue len: 42
582 +; active processes: 11
583 +; total processes: 15
584 +; max active processes: 12
585 +; max children reached: 0
587 +; By default the status page output is formatted as text/plain. Passing either
588 +; 'html', 'xml' or 'json' in the query string will return the corresponding
589 +; output syntax. Example:
590 +; http://www.foo.bar/status
591 +; http://www.foo.bar/status?json
592 +; http://www.foo.bar/status?html
593 +; http://www.foo.bar/status?xml
595 +; By default the status page only outputs short status. Passing 'full' in the
596 +; query string will also return status for each pool process.
598 +; http://www.foo.bar/status?full
599 +; http://www.foo.bar/status?json&full
600 +; http://www.foo.bar/status?html&full
601 +; http://www.foo.bar/status?xml&full
602 +; The Full status returns for each process:
603 +; pid - the PID of the process;
604 +; state - the state of the process (Idle, Running, ...);
605 +; start time - the date and time the process has started;
606 +; start since - the number of seconds since the process has started;
607 +; requests - the number of requests the process has served;
608 +; request duration - the duration in µs of the requests;
609 +; request method - the request method (GET, POST, ...);
610 +; request URI - the request URI with the query string;
611 +; content length - the content length of the request (only with POST);
612 +; user - the user (PHP_AUTH_USER) (or '-' if not set);
613 +; script - the main script called (or '-' if not set);
614 +; last request cpu - the %cpu the last request consumed
615 +; it's always 0 if the process is not in Idle state
616 +; because CPU calculation is done when the request
617 +; processing has terminated;
618 +; last request memory - the max amount of memory the last request consumed
619 +; it's always 0 if the process is not in Idle state
620 +; because memory calculation is done when the request
621 +; processing has terminated;
622 +; If the process is in Idle state, then informations are related to the
623 +; last request the process has served. Otherwise informations are related to
624 +; the current request being served.
626 +; ************************
629 +; start time: 01/Jul/2011:17:53:49 +0200
630 +; start since: 63087
632 +; request duration: 1250261
633 +; request method: GET
634 +; request URI: /test_mem.php?N=10000
637 +; script: /home/fat/web/docs/php/test_mem.php
638 +; last request cpu: 0.00
639 +; last request memory: 0
641 +; Note: There is a real-time FPM status monitoring sample web page available
642 +; It's available in: @EXPANDED_DATADIR@/fpm/status.html
644 +; Note: The value must start with a leading slash (/). The value can be
645 +; anything, but it may not be a good idea to use the .php extension or it
646 +; may conflict with a real PHP file.
647 +; Default Value: not set
648 +;pm.status_path = /fpm-status
650 +; The ping URI to call the monitoring page of FPM. If this value is not set, no
651 +; URI will be recognized as a ping page. This could be used to test from outside
652 +; that FPM is alive and responding, or to
653 +; - create a graph of FPM availability (rrd or such);
654 +; - remove a server from a group if it is not responding (load balancing);
655 +; - trigger alerts for the operating team (24/7).
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
662 +; This directive may be used to customize the response of a ping request. The
663 +; response is formatted as text/plain with a 200 response code.
664 +; Default Value: pong
665 +;ping.response = pong
667 +; The access log file
669 +;access.log = log/$pool.access.log
671 +; The access log format.
672 +; The following syntax is allowed
673 +; %%: the '%' character
674 +; %C: %CPU used by the request
675 +; it can accept the following format:
676 +; - %{user}C for user CPU only
677 +; - %{system}C for system CPU only
678 +; - %{total}C for user + system CPU (default)
679 +; %d: time taken to serve the request
680 +; it can accept the following format:
681 +; - %{seconds}d (default)
684 +; - %{microseconds}d
686 +; %e: an environment variable (same as $_ENV or $_SERVER)
687 +; it must be associated with embraces to specify the name of the env
688 +; variable. Some exemples:
689 +; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
690 +; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
691 +; %f: script filename
692 +; %l: content-length of the request (for POST request only)
693 +; %m: request method
694 +; %M: peak of memory allocated by PHP
695 +; it can accept the following format:
696 +; - %{bytes}M (default)
703 +; it must be associated with embraces to specify the name of the header:
704 +; - %{Content-Type}o
705 +; - %{X-Powered-By}o
706 +; - %{Transfert-Encoding}o
708 +; %p: PID of the child that serviced the request
709 +; %P: PID of the parent of the child that serviced the request
710 +; %q: the query string
711 +; %Q: the '?' character if query string exists
712 +; %r: the request URI (without the query string, see %q and %Q)
713 +; %R: remote IP address
714 +; %s: status (response code)
715 +; %t: server time the request was received
716 +; it can accept a strftime(3) format:
717 +; %d/%b/%Y:%H:%M:%S %z (default)
718 +; %T: time the log has been written (the request has finished)
719 +; it can accept a strftime(3) format:
720 +; %d/%b/%Y:%H:%M:%S %z (default)
723 +; Default: "%R - %u %t \"%m %r\" %s"
724 +;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
726 +; The log file for slow requests
727 +; Default Value: not set
728 +; Note: slowlog is mandatory if request_slowlog_timeout is set
729 +;slowlog = log/$pool.log.slow
731 +; The timeout for serving a single request after which a PHP backtrace will be
732 +; dumped to the 'slowlog' file. A value of '0s' means 'off'.
733 +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
735 +;request_slowlog_timeout = 0
737 +; The timeout for serving a single request after which the worker process will
738 +; be killed. This option should be used when the 'max_execution_time' ini option
739 +; does not stop script execution for some reason. A value of '0' means 'off'.
740 +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
742 +;request_terminate_timeout = 0
744 +; Set open file descriptor rlimit.
745 +; Default Value: system defined value
746 +;rlimit_files = 1024
748 +; Set max core size rlimit.
749 +; Possible Values: 'unlimited' or an integer greater or equal to 0
750 +; Default Value: system defined value
753 +; Chroot to this directory at the start. This value must be defined as an
754 +; absolute path. When this value is not set, chroot is not used.
755 +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
756 +; of its subdirectories. If the pool prefix is not set, the global prefix
757 +; will be used instead.
758 +; Note: chrooting is a great security feature and should be used whenever
759 +; possible. However, all PHP paths will be relative to the chroot
760 +; (error_log, sessions.save_path, ...).
761 +; Default Value: not set
764 +; Chdir to this directory at the start.
765 +; Note: relative path can be used.
766 +; Default Value: current directory or / when chroot
769 +; Redirect worker stdout and stderr into main error log. If not set, stdout and
770 +; stderr will be redirected to /dev/null according to FastCGI specs.
771 +; Note: on highloaded environement, this can cause some delay in the page
772 +; process time (several ms).
774 +catch_workers_output = yes
776 +; Limits the extensions of the main script FPM will allow to parse. This can
777 +; prevent configuration mistakes on the web server side. You should only limit
778 +; FPM to .php extensions to prevent malicious users to use other extensions to
779 +; exectute php code.
780 +; Note: set an empty value to allow all extensions.
781 +; Default Value: .php
782 +;security.limit_extensions = .php .php3 .php4 .php5
784 +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
785 +; the current environment.
786 +; Default Value: clean env
787 +;env[HOSTNAME] = $HOSTNAME
793 +; Additional php.ini defines, specific to this pool of workers. These settings
794 +; overwrite the values previously defined in the php.ini. The directives are the
795 +; same as the PHP SAPI:
796 +; php_value/php_flag - you can set classic ini defines which can
797 +; be overwritten from PHP call 'ini_set'.
798 +; php_admin_value/php_admin_flag - these directives won't be overwritten by
799 +; PHP call 'ini_set'
800 +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
802 +; Defining 'extension' will load the corresponding shared extension from
803 +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
804 +; overwrite previously defined php.ini values, but will append the new value
807 +; Note: path INI options can be relative and will be expanded with the prefix
808 +; (pool, global or @prefix@)
810 +; Default Value: nothing is defined by default except the values in php.ini and
811 +; specified at startup with the -d argument
812 +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
813 +;php_flag[display_errors] = off
814 +;php_admin_value[error_log] = /var/log/fpm-php.www.log
815 +;php_admin_flag[log_errors] = on
816 +;php_admin_value[memory_limit] = 32M
817 --- php-5.3.27/sapi/fpm/config.m4~ 2013-12-05 20:55:36.000000000 +0200
818 +++ php-5.3.27/sapi/fpm/config.m4 2013-12-05 20:56:08.277968372 +0200
820 AC_DEFINE_UNQUOTED(PHP_FPM_USER, "$php_fpm_user", [fpm user name])
821 AC_DEFINE_UNQUOTED(PHP_FPM_GROUP, "$php_fpm_group", [fpm group name])
823 - 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)
824 + 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)
825 PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/fpm/Makefile.frag], [$abs_srcdir/sapi/fpm], [sapi/fpm])
827 SAPI_FPM_PATH=sapi/fpm/php-fpm
828 --- php-5.3.27/sapi/fpm/Makefile.frag~ 2013-12-05 20:55:36.000000000 +0200
829 +++ php-5.3.27/sapi/fpm/Makefile.frag 2013-12-05 20:57:56.416089690 +0200
831 @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
833 @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \
834 - $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || :
835 + $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/fpm.d || :
837 @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf || :
838 + @$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf || :
840 @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"
841 @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8