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