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