]> git.pld-linux.org Git - packages/php.git/blame - fpm-conf-split.patch
- readline rebuild
[packages/php.git] / fpm-conf-split.patch
CommitLineData
f7b16851
ER
1--- php-5.6.5/sapi/fpm/php-fpm.conf.in~ 2015-02-04 19:22:00.000000000 +0200
2+++ php-5.6.5/sapi/fpm/php-fpm.conf.in 2015-02-04 19:23:22.109298245 +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 ;;;;;;;;;;;;;;;;;;
f7b16851 18@@ -115,415 +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
f7b16851
ER
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 =
b604e307 79-
ba9835b0 80-; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
b604e307
ER
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
8851ace1 86-;listen.allowed_clients = 127.0.0.1
b604e307
ER
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
c42c0fb8 94-; process.priority = -19
b604e307
ER
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-
8d42644e
ER
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-
b604e307
ER
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
8851ace1 405-;env[PATH] = /usr/local/bin:/usr/bin:/bin
b604e307
ER
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
b604e307 434--- /dev/null 2007-02-13 18:29:53.000000000 +0200
f7b16851
ER
435+++ php-5.6.5/sapi/fpm/php-fpm.conf-d.in 2015-02-04 19:23:20.709225773 +0200
436@@ -0,0 +1,411 @@
b604e307
ER
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:
ba9835b0 444+; - 'access.log'
b604e307
ER
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:
ba9835b0 464+; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
b604e307 465+; a specific port;
b68c8f6c
ER
466+; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
467+; a specific port;
ba9835b0 468+; 'port' - to listen on a TCP socket to all IPv4 addresses on a
b604e307 469+; specific port;
ba9835b0
ER
470+; '[::]:port' - to listen on a TCP socket to all addresses
471+; (IPv6 and IPv4-mapped) on a specific port;
b604e307
ER
472+; '/path/to/unix/socket' - to listen on a unix socket.
473+; Note: This value is mandatory.
8851ace1 474+listen = 127.0.0.1:9000
b604e307
ER
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
c42c0fb8 484+; mode is set to 0660
b604e307
ER
485+;listen.owner = @php_fpm_user@
486+;listen.group = @php_fpm_group@
c42c0fb8 487+;listen.mode = 0660
f7b16851
ER
488+; When POSIX Access Control Lists are supported you can set them using
489+; these options, value is a comma separated list of user/group names.
490+; When set, listen.owner and listen.group are ignored
491+;listen.acl_users =
492+;listen.acl_groups =
b604e307 493+
ba9835b0 494+; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
b604e307
ER
495+; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
496+; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
497+; must be separated by a comma. If this value is left blank, connections will be
498+; accepted from any ip address.
499+; Default Value: any
8851ace1 500+;listen.allowed_clients = 127.0.0.1
b604e307
ER
501+
502+; Specify the nice(2) priority to apply to the pool processes (only if set)
503+; The value can vary from -19 (highest priority) to 20 (lower priority)
504+; Note: - It will only work if the FPM master process is launched as root
505+; - The pool processes will inherit the master process priority
506+; unless it specified otherwise
507+; Default Value: no set
c42c0fb8 508+; process.priority = -19
b604e307
ER
509+
510+; Choose how the process manager will control the number of child processes.
511+; Possible Values:
512+; static - a fixed number (pm.max_children) of child processes;
513+; dynamic - the number of child processes are set dynamically based on the
514+; following directives. With this process management, there will be
515+; always at least 1 children.
516+; pm.max_children - the maximum number of children that can
517+; be alive at the same time.
518+; pm.start_servers - the number of children created on startup.
519+; pm.min_spare_servers - the minimum number of children in 'idle'
520+; state (waiting to process). If the number
521+; of 'idle' processes is less than this
522+; number then some children will be created.
523+; pm.max_spare_servers - the maximum number of children in 'idle'
524+; state (waiting to process). If the number
525+; of 'idle' processes is greater than this
526+; number then some children will be killed.
527+; ondemand - no children are created at startup. Children will be forked when
528+; new requests will connect. The following parameter are used:
529+; pm.max_children - the maximum number of children that
530+; can be alive at the same time.
531+; pm.process_idle_timeout - The number of seconds after which
532+; an idle process will be killed.
533+; Note: This value is mandatory.
534+pm = dynamic
535+
536+; The number of child processes to be created when pm is set to 'static' and the
537+; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
538+; This value sets the limit on the number of simultaneous requests that will be
539+; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
540+; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
541+; CGI. The below defaults are based on a server without much resources. Don't
542+; forget to tweak pm.* to fit your needs.
543+; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
544+; Note: This value is mandatory.
545+pm.max_children = 5
546+
547+; The number of child processes created on startup.
548+; Note: Used only when pm is set to 'dynamic'
549+; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
550+pm.start_servers = 2
551+
552+; The desired minimum 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.min_spare_servers = 1
556+
557+; The desired maximum number of idle server processes.
558+; Note: Used only when pm is set to 'dynamic'
559+; Note: Mandatory when pm is set to 'dynamic'
560+pm.max_spare_servers = 3
561+
562+; The number of seconds after which an idle process will be killed.
563+; Note: Used only when pm is set to 'ondemand'
564+; Default Value: 10s
565+;pm.process_idle_timeout = 10s;
566+
567+; The number of requests each child process should execute before respawning.
568+; This can be useful to work around memory leaks in 3rd party libraries. For
569+; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
570+; Default Value: 0
571+;pm.max_requests = 500
572+
573+; The URI to view the FPM status page. If this value is not set, no URI will be
574+; recognized as a status page. It shows the following informations:
575+; pool - the name of the pool;
576+; process manager - static, dynamic or ondemand;
577+; start time - the date and time FPM has started;
578+; start since - number of seconds since FPM has started;
579+; accepted conn - the number of request accepted by the pool;
580+; listen queue - the number of request in the queue of pending
581+; connections (see backlog in listen(2));
582+; max listen queue - the maximum number of requests in the queue
583+; of pending connections since FPM has started;
584+; listen queue len - the size of the socket queue of pending connections;
585+; idle processes - the number of idle processes;
586+; active processes - the number of active processes;
587+; total processes - the number of idle + active processes;
588+; max active processes - the maximum number of active processes since FPM
589+; has started;
590+; max children reached - number of times, the process limit has been reached,
591+; when pm tries to start more children (works only for
592+; pm 'dynamic' and 'ondemand');
593+; Value are updated in real time.
594+; Example output:
595+; pool: www
596+; process manager: static
597+; start time: 01/Jul/2011:17:53:49 +0200
598+; start since: 62636
599+; accepted conn: 190460
600+; listen queue: 0
601+; max listen queue: 1
602+; listen queue len: 42
603+; idle processes: 4
604+; active processes: 11
605+; total processes: 15
606+; max active processes: 12
607+; max children reached: 0
608+;
609+; By default the status page output is formatted as text/plain. Passing either
610+; 'html', 'xml' or 'json' in the query string will return the corresponding
611+; output syntax. Example:
612+; http://www.foo.bar/status
613+; http://www.foo.bar/status?json
614+; http://www.foo.bar/status?html
615+; http://www.foo.bar/status?xml
616+;
617+; By default the status page only outputs short status. Passing 'full' in the
618+; query string will also return status for each pool process.
619+; Example:
620+; http://www.foo.bar/status?full
621+; http://www.foo.bar/status?json&full
622+; http://www.foo.bar/status?html&full
623+; http://www.foo.bar/status?xml&full
624+; The Full status returns for each process:
625+; pid - the PID of the process;
626+; state - the state of the process (Idle, Running, ...);
627+; start time - the date and time the process has started;
628+; start since - the number of seconds since the process has started;
629+; requests - the number of requests the process has served;
630+; request duration - the duration in µs of the requests;
631+; request method - the request method (GET, POST, ...);
632+; request URI - the request URI with the query string;
633+; content length - the content length of the request (only with POST);
634+; user - the user (PHP_AUTH_USER) (or '-' if not set);
635+; script - the main script called (or '-' if not set);
636+; last request cpu - the %cpu the last request consumed
637+; it's always 0 if the process is not in Idle state
638+; because CPU calculation is done when the request
639+; processing has terminated;
640+; last request memory - the max amount of memory the last request consumed
641+; it's always 0 if the process is not in Idle state
642+; because memory calculation is done when the request
643+; processing has terminated;
644+; If the process is in Idle state, then informations are related to the
645+; last request the process has served. Otherwise informations are related to
646+; the current request being served.
647+; Example output:
648+; ************************
649+; pid: 31330
650+; state: Running
651+; start time: 01/Jul/2011:17:53:49 +0200
652+; start since: 63087
653+; requests: 12808
654+; request duration: 1250261
655+; request method: GET
656+; request URI: /test_mem.php?N=10000
657+; content length: 0
658+; user: -
659+; script: /home/fat/web/docs/php/test_mem.php
660+; last request cpu: 0.00
661+; last request memory: 0
662+;
663+; Note: There is a real-time FPM status monitoring sample web page available
664+; It's available in: @EXPANDED_DATADIR@/fpm/status.html
665+;
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+;pm.status_path = /status
671+
672+; The ping URI to call the monitoring page of FPM. If this value is not set, no
673+; URI will be recognized as a ping page. This could be used to test from outside
674+; that FPM is alive and responding, or to
675+; - create a graph of FPM availability (rrd or such);
676+; - remove a server from a group if it is not responding (load balancing);
677+; - trigger alerts for the operating team (24/7).
678+; Note: The value must start with a leading slash (/). The value can be
679+; anything, but it may not be a good idea to use the .php extension or it
680+; may conflict with a real PHP file.
681+; Default Value: not set
682+;ping.path = /ping
683+
684+; This directive may be used to customize the response of a ping request. The
685+; response is formatted as text/plain with a 200 response code.
686+; Default Value: pong
687+;ping.response = pong
688+
689+; The access log file
690+; Default: not set
691+;access.log = log/$pool.access.log
692+
693+; The access log format.
694+; The following syntax is allowed
695+; %%: the '%' character
696+; %C: %CPU used by the request
697+; it can accept the following format:
698+; - %{user}C for user CPU only
699+; - %{system}C for system CPU only
700+; - %{total}C for user + system CPU (default)
701+; %d: time taken to serve the request
702+; it can accept the following format:
703+; - %{seconds}d (default)
704+; - %{miliseconds}d
705+; - %{mili}d
706+; - %{microseconds}d
707+; - %{micro}d
708+; %e: an environment variable (same as $_ENV or $_SERVER)
709+; it must be associated with embraces to specify the name of the env
710+; variable. Some exemples:
711+; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
712+; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
713+; %f: script filename
714+; %l: content-length of the request (for POST request only)
715+; %m: request method
716+; %M: peak of memory allocated by PHP
717+; it can accept the following format:
718+; - %{bytes}M (default)
719+; - %{kilobytes}M
720+; - %{kilo}M
721+; - %{megabytes}M
722+; - %{mega}M
723+; %n: pool name
724+; %o: output header
725+; it must be associated with embraces to specify the name of the header:
726+; - %{Content-Type}o
727+; - %{X-Powered-By}o
728+; - %{Transfert-Encoding}o
729+; - ....
730+; %p: PID of the child that serviced the request
731+; %P: PID of the parent of the child that serviced the request
732+; %q: the query string
733+; %Q: the '?' character if query string exists
734+; %r: the request URI (without the query string, see %q and %Q)
735+; %R: remote IP address
736+; %s: status (response code)
737+; %t: server time the request was received
738+; it can accept a strftime(3) format:
739+; %d/%b/%Y:%H:%M:%S %z (default)
740+; %T: time the log has been written (the request has finished)
741+; it can accept a strftime(3) format:
742+; %d/%b/%Y:%H:%M:%S %z (default)
743+; %u: remote user
744+;
745+; Default: "%R - %u %t \"%m %r\" %s"
746+;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
747+
748+; The log file for slow requests
749+; Default Value: not set
750+; Note: slowlog is mandatory if request_slowlog_timeout is set
751+;slowlog = log/$pool.log.slow
752+
753+; The timeout for serving a single request after which a PHP backtrace will be
754+; dumped to the 'slowlog' file. A value of '0s' means 'off'.
755+; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
756+; Default Value: 0
757+;request_slowlog_timeout = 0
758+
759+; The timeout for serving a single request after which the worker process will
760+; be killed. This option should be used when the 'max_execution_time' ini option
761+; does not stop script execution for some reason. A value of '0' means 'off'.
762+; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
763+; Default Value: 0
764+;request_terminate_timeout = 0
765+
766+; Set open file descriptor rlimit.
767+; Default Value: system defined value
768+;rlimit_files = 1024
769+
770+; Set max core size rlimit.
771+; Possible Values: 'unlimited' or an integer greater or equal to 0
772+; Default Value: system defined value
773+;rlimit_core = 0
774+
775+; Chroot to this directory at the start. This value must be defined as an
776+; absolute path. When this value is not set, chroot is not used.
777+; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
778+; of its subdirectories. If the pool prefix is not set, the global prefix
779+; will be used instead.
780+; Note: chrooting is a great security feature and should be used whenever
781+; possible. However, all PHP paths will be relative to the chroot
782+; (error_log, sessions.save_path, ...).
783+; Default Value: not set
784+;chroot =
785+
786+; Chdir to this directory at the start.
787+; Note: relative path can be used.
788+; Default Value: current directory or / when chroot
789+;chdir = /var/www
790+
791+; Redirect worker stdout and stderr into main error log. If not set, stdout and
792+; stderr will be redirected to /dev/null according to FastCGI specs.
793+; Note: on highloaded environement, this can cause some delay in the page
794+; process time (several ms).
795+; Default Value: no
796+;catch_workers_output = yes
797+
8d42644e
ER
798+; Clear environment in FPM workers
799+; Prevents arbitrary environment variables from reaching FPM worker processes
800+; by clearing the environment in workers before env vars specified in this
801+; pool configuration are added.
802+; Setting to "no" will make all environment variables available to PHP code
803+; via getenv(), $_ENV and $_SERVER.
804+; Default Value: yes
805+;clear_env = no
806+
b604e307
ER
807+; Limits the extensions of the main script FPM will allow to parse. This can
808+; prevent configuration mistakes on the web server side. You should only limit
809+; FPM to .php extensions to prevent malicious users to use other extensions to
810+; exectute php code.
811+; Note: set an empty value to allow all extensions.
812+; Default Value: .php
813+;security.limit_extensions = .php .php3 .php4 .php5
814+
815+; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
816+; the current environment.
817+; Default Value: clean env
818+;env[HOSTNAME] = $HOSTNAME
8851ace1 819+;env[PATH] = /usr/local/bin:/usr/bin:/bin
b604e307
ER
820+;env[TMP] = /tmp
821+;env[TMPDIR] = /tmp
822+;env[TEMP] = /tmp
823+
824+; Additional php.ini defines, specific to this pool of workers. These settings
825+; overwrite the values previously defined in the php.ini. The directives are the
826+; same as the PHP SAPI:
827+; php_value/php_flag - you can set classic ini defines which can
828+; be overwritten from PHP call 'ini_set'.
829+; php_admin_value/php_admin_flag - these directives won't be overwritten by
830+; PHP call 'ini_set'
831+; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
832+
833+; Defining 'extension' will load the corresponding shared extension from
834+; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
835+; overwrite previously defined php.ini values, but will append the new value
836+; instead.
837+
838+; Note: path INI options can be relative and will be expanded with the prefix
839+; (pool, global or @prefix@)
840+
841+; Default Value: nothing is defined by default except the values in php.ini and
842+; specified at startup with the -d argument
843+;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
844+;php_flag[display_errors] = off
845+;php_admin_value[error_log] = /var/log/fpm-php.www.log
846+;php_admin_flag[log_errors] = on
847+;php_admin_value[memory_limit] = 32M
b604e307
ER
848--- php-5.5.7/sapi/fpm/config.m4~ 2013-12-16 17:57:03.000000000 +0200
849+++ php-5.5.7/sapi/fpm/config.m4 2013-12-16 18:00:34.936527309 +0200
850@@ -609,7 +609,7 @@
851
852 PHP_ADD_BUILD_DIR(sapi/fpm/fpm)
853 PHP_ADD_BUILD_DIR(sapi/fpm/fpm/events)
854- 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)
855+ 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)
856 PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/fpm/Makefile.frag])
857
858 SAPI_FPM_PATH=sapi/fpm/php-fpm
8851ace1
ER
859--- php-5.6.2/sapi/fpm/Makefile.frag~ 2014-10-15 15:59:32.000000000 +0300
860+++ php-5.6.2/sapi/fpm/Makefile.frag 2014-10-27 08:12:57.402883790 +0200
b604e307
ER
861@@ -11,8 +11,9 @@
862 @$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
863
864 @echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \
865- $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || :
866+ $(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/fpm.d || :
8851ace1
ER
867 @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || :
868+ @$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf.default || :
b604e307
ER
869
870 @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"
871 @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8
This page took 0.266436 seconds and 4 git commands to generate.