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