]> git.pld-linux.org Git - packages/php.git/blame - fpm-conf-split.patch
up to 5.5.19
[packages/php.git] / fpm-conf-split.patch
CommitLineData
fad09f8a
ER
1--- php-5.5.19/sapi/fpm/php-fpm.conf.in~ 2014-11-18 21:43:01.000000000 +0200
2+++ php-5.5.19/sapi/fpm/php-fpm.conf.in 2014-11-18 21:44:54.727742022 +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
13-;include=/etc/php/fpm.d/*.conf
14-
15 ;;;;;;;;;;;;;;;;;;
16 ; Global Options ;
17 ;;;;;;;;;;;;;;;;;;
fad09f8a 18@@ -116,406 +116,10 @@
b604e307
ER
19 ; used in logs and stats. There is no limitation on the number of pools which
20 ; FPM can handle. Your system will tell you anyway :)
21
22-; Start a new pool named 'www'.
23-; the variable $pool can we used in any directive and will be replaced by the
24-; pool name ('www' here)
25-[www]
26-
27-; Per pool prefix
28-; It only applies on the following directives:
29-; - 'slowlog'
30-; - 'listen' (unixsocket)
31-; - 'chroot'
32-; - 'chdir'
33-; - 'php_values'
34-; - 'php_admin_values'
35-; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
36-; Note: This directive can also be relative to the global prefix.
37-; Default Value: none
38-;prefix = /path/to/pools/$pool
39-
40-; Unix user/group of processes
41-; Note: The user is mandatory. If the group is not set, the default user's group
42-; will be used.
43-user = @php_fpm_user@
44-group = @php_fpm_group@
45-
46-; The address on which to accept FastCGI requests.
47-; Valid syntaxes are:
48-; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
49-; a specific port;
fad09f8a
ER
50-; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
51-; a specific port;
b604e307
ER
52-; 'port' - to listen on a TCP socket to all addresses on a
53-; specific port;
54-; '/path/to/unix/socket' - to listen on a unix socket.
55-; Note: This value is mandatory.
56-listen = /var/run/php/@processname@.sock
57-
58-; Set listen(2) backlog.
59-; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
60-;listen.backlog = 65535
61-
62-; Set permissions for unix socket, if one is used. In Linux, read/write
63-; permissions must be set in order to allow connections from a web server. Many
64-; BSD-derived systems allow connections regardless of permissions.
65-; Default Values: user and group are set as the running user
4d241919 66-; mode is set to 0660
b604e307
ER
67-;listen.owner = @php_fpm_user@
68-;listen.group = @php_fpm_group@
4d241919 69-;listen.mode = 0660
b604e307
ER
70-
71-; List of ipv4 addresses of FastCGI clients which are allowed to connect.
72-; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
73-; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
74-; must be separated by a comma. If this value is left blank, connections will be
75-; accepted from any ip address.
76-; Default Value: any
77-listen.allowed_clients = 127.0.0.1
78-
79-; Specify the nice(2) priority to apply to the pool processes (only if set)
80-; The value can vary from -19 (highest priority) to 20 (lower priority)
81-; Note: - It will only work if the FPM master process is launched as root
82-; - The pool processes will inherit the master process priority
83-; unless it specified otherwise
84-; Default Value: no set
4d241919 85-; process.priority = -19
b604e307
ER
86-
87-; Choose how the process manager will control the number of child processes.
88-; Possible Values:
89-; static - a fixed number (pm.max_children) of child processes;
90-; dynamic - the number of child processes are set dynamically based on the
91-; following directives. With this process management, there will be
92-; always at least 1 children.
93-; pm.max_children - the maximum number of children that can
94-; be alive at the same time.
95-; pm.start_servers - the number of children created on startup.
96-; pm.min_spare_servers - the minimum number of children in 'idle'
97-; state (waiting to process). If the number
98-; of 'idle' processes is less than this
99-; number then some children will be created.
100-; pm.max_spare_servers - the maximum number of children in 'idle'
101-; state (waiting to process). If the number
102-; of 'idle' processes is greater than this
103-; number then some children will be killed.
104-; ondemand - no children are created at startup. Children will be forked when
105-; new requests will connect. The following parameter are used:
106-; pm.max_children - the maximum number of children that
107-; can be alive at the same time.
108-; pm.process_idle_timeout - The number of seconds after which
109-; an idle process will be killed.
110-; Note: This value is mandatory.
111-pm = dynamic
112-
113-; The number of child processes to be created when pm is set to 'static' and the
114-; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
115-; This value sets the limit on the number of simultaneous requests that will be
116-; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
117-; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
118-; CGI. The below defaults are based on a server without much resources. Don't
119-; forget to tweak pm.* to fit your needs.
120-; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
121-; Note: This value is mandatory.
122-pm.max_children = 5
123-
124-; The number of child processes created on startup.
125-; Note: Used only when pm is set to 'dynamic'
126-; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
127-pm.start_servers = 2
128-
129-; The desired minimum number of idle server processes.
130-; Note: Used only when pm is set to 'dynamic'
131-; Note: Mandatory when pm is set to 'dynamic'
132-pm.min_spare_servers = 1
133-
134-; The desired maximum number of idle server processes.
135-; Note: Used only when pm is set to 'dynamic'
136-; Note: Mandatory when pm is set to 'dynamic'
137-pm.max_spare_servers = 3
138-
139-; The number of seconds after which an idle process will be killed.
140-; Note: Used only when pm is set to 'ondemand'
141-; Default Value: 10s
142-;pm.process_idle_timeout = 10s;
143-
144-; The number of requests each child process should execute before respawning.
145-; This can be useful to work around memory leaks in 3rd party libraries. For
146-; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
147-; Default Value: 0
148-;pm.max_requests = 500
149-
150-; The URI to view the FPM status page. If this value is not set, no URI will be
151-; recognized as a status page. It shows the following informations:
152-; pool - the name of the pool;
153-; process manager - static, dynamic or ondemand;
154-; start time - the date and time FPM has started;
155-; start since - number of seconds since FPM has started;
156-; accepted conn - the number of request accepted by the pool;
157-; listen queue - the number of request in the queue of pending
158-; connections (see backlog in listen(2));
159-; max listen queue - the maximum number of requests in the queue
160-; of pending connections since FPM has started;
161-; listen queue len - the size of the socket queue of pending connections;
162-; idle processes - the number of idle processes;
163-; active processes - the number of active processes;
164-; total processes - the number of idle + active processes;
165-; max active processes - the maximum number of active processes since FPM
166-; has started;
167-; max children reached - number of times, the process limit has been reached,
168-; when pm tries to start more children (works only for
169-; pm 'dynamic' and 'ondemand');
170-; Value are updated in real time.
171-; Example output:
172-; pool: www
173-; process manager: static
174-; start time: 01/Jul/2011:17:53:49 +0200
175-; start since: 62636
176-; accepted conn: 190460
177-; listen queue: 0
178-; max listen queue: 1
179-; listen queue len: 42
180-; idle processes: 4
181-; active processes: 11
182-; total processes: 15
183-; max active processes: 12
184-; max children reached: 0
185-;
186-; By default the status page output is formatted as text/plain. Passing either
187-; 'html', 'xml' or 'json' in the query string will return the corresponding
188-; output syntax. Example:
189-; http://www.foo.bar/status
190-; http://www.foo.bar/status?json
191-; http://www.foo.bar/status?html
192-; http://www.foo.bar/status?xml
193-;
194-; By default the status page only outputs short status. Passing 'full' in the
195-; query string will also return status for each pool process.
196-; Example:
197-; http://www.foo.bar/status?full
198-; http://www.foo.bar/status?json&full
199-; http://www.foo.bar/status?html&full
200-; http://www.foo.bar/status?xml&full
201-; The Full status returns for each process:
202-; pid - the PID of the process;
203-; state - the state of the process (Idle, Running, ...);
204-; start time - the date and time the process has started;
205-; start since - the number of seconds since the process has started;
206-; requests - the number of requests the process has served;
207-; request duration - the duration in µs of the requests;
208-; request method - the request method (GET, POST, ...);
209-; request URI - the request URI with the query string;
210-; content length - the content length of the request (only with POST);
211-; user - the user (PHP_AUTH_USER) (or '-' if not set);
212-; script - the main script called (or '-' if not set);
213-; last request cpu - the %cpu the last request consumed
214-; it's always 0 if the process is not in Idle state
215-; because CPU calculation is done when the request
216-; processing has terminated;
217-; last request memory - the max amount of memory the last request consumed
218-; it's always 0 if the process is not in Idle state
219-; because memory calculation is done when the request
220-; processing has terminated;
221-; If the process is in Idle state, then informations are related to the
222-; last request the process has served. Otherwise informations are related to
223-; the current request being served.
224-; Example output:
225-; ************************
226-; pid: 31330
227-; state: Running
228-; start time: 01/Jul/2011:17:53:49 +0200
229-; start since: 63087
230-; requests: 12808
231-; request duration: 1250261
232-; request method: GET
233-; request URI: /test_mem.php?N=10000
234-; content length: 0
235-; user: -
236-; script: /home/fat/web/docs/php/test_mem.php
237-; last request cpu: 0.00
238-; last request memory: 0
239-;
240-; Note: There is a real-time FPM status monitoring sample web page available
241-; It's available in: @EXPANDED_DATADIR@/fpm/status.html
242-;
243-; Note: The value must start with a leading slash (/). The value can be
244-; anything, but it may not be a good idea to use the .php extension or it
245-; may conflict with a real PHP file.
246-; Default Value: not set
247-;pm.status_path = /status
248-
249-; The ping URI to call the monitoring page of FPM. If this value is not set, no
250-; URI will be recognized as a ping page. This could be used to test from outside
251-; that FPM is alive and responding, or to
252-; - create a graph of FPM availability (rrd or such);
253-; - remove a server from a group if it is not responding (load balancing);
254-; - trigger alerts for the operating team (24/7).
255-; Note: The value must start with a leading slash (/). The value can be
256-; anything, but it may not be a good idea to use the .php extension or it
257-; may conflict with a real PHP file.
258-; Default Value: not set
259-;ping.path = /ping
260-
261-; This directive may be used to customize the response of a ping request. The
262-; response is formatted as text/plain with a 200 response code.
263-; Default Value: pong
264-;ping.response = pong
265-
266-; The access log file
267-; Default: not set
268-;access.log = log/$pool.access.log
269-
270-; The access log format.
271-; The following syntax is allowed
272-; %%: the '%' character
273-; %C: %CPU used by the request
274-; it can accept the following format:
275-; - %{user}C for user CPU only
276-; - %{system}C for system CPU only
277-; - %{total}C for user + system CPU (default)
278-; %d: time taken to serve the request
279-; it can accept the following format:
280-; - %{seconds}d (default)
281-; - %{miliseconds}d
282-; - %{mili}d
283-; - %{microseconds}d
284-; - %{micro}d
285-; %e: an environment variable (same as $_ENV or $_SERVER)
286-; it must be associated with embraces to specify the name of the env
287-; variable. Some exemples:
288-; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
289-; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
290-; %f: script filename
291-; %l: content-length of the request (for POST request only)
292-; %m: request method
293-; %M: peak of memory allocated by PHP
294-; it can accept the following format:
295-; - %{bytes}M (default)
296-; - %{kilobytes}M
297-; - %{kilo}M
298-; - %{megabytes}M
299-; - %{mega}M
300-; %n: pool name
301-; %o: output header
302-; it must be associated with embraces to specify the name of the header:
303-; - %{Content-Type}o
304-; - %{X-Powered-By}o
305-; - %{Transfert-Encoding}o
306-; - ....
307-; %p: PID of the child that serviced the request
308-; %P: PID of the parent of the child that serviced the request
309-; %q: the query string
310-; %Q: the '?' character if query string exists
311-; %r: the request URI (without the query string, see %q and %Q)
312-; %R: remote IP address
313-; %s: status (response code)
314-; %t: server time the request was received
315-; it can accept a strftime(3) format:
316-; %d/%b/%Y:%H:%M:%S %z (default)
317-; %T: time the log has been written (the request has finished)
318-; it can accept a strftime(3) format:
319-; %d/%b/%Y:%H:%M:%S %z (default)
320-; %u: remote user
321-;
322-; Default: "%R - %u %t \"%m %r\" %s"
323-;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
324-
325-; The log file for slow requests
326-; Default Value: not set
327-; Note: slowlog is mandatory if request_slowlog_timeout is set
328-;slowlog = log/$pool.log.slow
329-
330-; The timeout for serving a single request after which a PHP backtrace will be
331-; dumped to the 'slowlog' file. A value of '0s' means 'off'.
332-; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
333-; Default Value: 0
334-;request_slowlog_timeout = 0
335-
336-; The timeout for serving a single request after which the worker process will
337-; be killed. This option should be used when the 'max_execution_time' ini option
338-; does not stop script execution for some reason. A value of '0' means 'off'.
339-; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
340-; Default Value: 0
341-;request_terminate_timeout = 0
342-
343-; Set open file descriptor rlimit.
344-; Default Value: system defined value
345-;rlimit_files = 1024
346-
347-; Set max core size rlimit.
348-; Possible Values: 'unlimited' or an integer greater or equal to 0
349-; Default Value: system defined value
350-;rlimit_core = 0
351-
352-; Chroot to this directory at the start. This value must be defined as an
353-; absolute path. When this value is not set, chroot is not used.
354-; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
355-; of its subdirectories. If the pool prefix is not set, the global prefix
356-; will be used instead.
357-; Note: chrooting is a great security feature and should be used whenever
358-; possible. However, all PHP paths will be relative to the chroot
359-; (error_log, sessions.save_path, ...).
360-; Default Value: not set
361-;chroot =
362-
363-; Chdir to this directory at the start.
364-; Note: relative path can be used.
365-; Default Value: current directory or / when chroot
366-;chdir = /var/www
367-
368-; Redirect worker stdout and stderr into main error log. If not set, stdout and
369-; stderr will be redirected to /dev/null according to FastCGI specs.
370-; Note: on highloaded environement, this can cause some delay in the page
371-; process time (several ms).
372-; Default Value: no
373-;catch_workers_output = yes
374-
3790806a
ER
375-; Clear environment in FPM workers
376-; Prevents arbitrary environment variables from reaching FPM worker processes
377-; by clearing the environment in workers before env vars specified in this
378-; pool configuration are added.
379-; Setting to "no" will make all environment variables available to PHP code
380-; via getenv(), $_ENV and $_SERVER.
381-; Default Value: yes
382-;clear_env = no
383-
b604e307
ER
384-; Limits the extensions of the main script FPM will allow to parse. This can
385-; prevent configuration mistakes on the web server side. You should only limit
386-; FPM to .php extensions to prevent malicious users to use other extensions to
387-; exectute php code.
388-; Note: set an empty value to allow all extensions.
389-; Default Value: .php
390-;security.limit_extensions = .php .php3 .php4 .php5
391-
392-; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
393-; the current environment.
394-; Default Value: clean env
395-;env[HOSTNAME] = $HOSTNAME
396-env[PATH] = $PATH
397-;env[TMP] = /tmp
398-;env[TMPDIR] = /tmp
399-;env[TEMP] = /tmp
400-
401-; Additional php.ini defines, specific to this pool of workers. These settings
402-; overwrite the values previously defined in the php.ini. The directives are the
403-; same as the PHP SAPI:
404-; php_value/php_flag - you can set classic ini defines which can
405-; be overwritten from PHP call 'ini_set'.
406-; php_admin_value/php_admin_flag - these directives won't be overwritten by
407-; PHP call 'ini_set'
408-; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
409-
410-; Defining 'extension' will load the corresponding shared extension from
411-; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
412-; overwrite previously defined php.ini values, but will append the new value
413-; instead.
414-
415-; Note: path INI options can be relative and will be expanded with the prefix
416-; (pool, global or @prefix@)
417-
418-; Default Value: nothing is defined by default except the values in php.ini and
419-; specified at startup with the -d argument
420-;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
421-;php_flag[display_errors] = off
422-;php_admin_value[error_log] = /var/log/fpm-php.www.log
423-;php_admin_flag[log_errors] = on
424-;php_admin_value[memory_limit] = 32M
425+; Include one or more files. If glob(3) exists, it is used to include a bunch of
426+; files from a glob(3) pattern. This directive can be used everywhere in the
427+; file.
428+; Relative path can also be used. They will be prefixed by:
429+; - the global prefix if it's been set (-p argument)
430+; - @prefix@ otherwise
431+include=/etc/php/fpm.d/*.conf
432--- /dev/null 2007-02-13 18:29:53.000000000 +0200
fad09f8a 433+++ php-5.5.19/sapi/fpm/php-fpm.conf-d.in 2014-11-18 21:44:32.469960258 +0200
3790806a 434@@ -0,0 +1,403 @@
b604e307
ER
435+; Start a new pool named 'www'.
436+; the variable $pool can we used in any directive and will be replaced by the
437+; pool name ('www' here)
438+[www]
439+
440+; Per pool prefix
441+; It only applies on the following directives:
442+; - 'slowlog'
443+; - 'listen' (unixsocket)
444+; - 'chroot'
445+; - 'chdir'
446+; - 'php_values'
447+; - 'php_admin_values'
448+; When not set, the global prefix (or @php_fpm_prefix@) applies instead.
449+; Note: This directive can also be relative to the global prefix.
450+; Default Value: none
451+;prefix = /path/to/pools/$pool
452+
453+; Unix user/group of processes
454+; Note: The user is mandatory. If the group is not set, the default user's group
455+; will be used.
456+user = @php_fpm_user@
457+group = @php_fpm_group@
458+
459+; The address on which to accept FastCGI requests.
460+; Valid syntaxes are:
461+; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
462+; a specific port;
fad09f8a
ER
463+; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
464+; a specific port;
b604e307
ER
465+; 'port' - to listen on a TCP socket to all addresses on a
466+; specific port;
467+; '/path/to/unix/socket' - to listen on a unix socket.
468+; Note: This value is mandatory.
469+listen = /var/run/php/@processname@.sock
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
4d241919 479+; mode is set to 0660
b604e307
ER
480+;listen.owner = @php_fpm_user@
481+;listen.group = @php_fpm_group@
4d241919 482+;listen.mode = 0660
b604e307
ER
483+
484+; List of ipv4 addresses of FastCGI clients which are allowed to connect.
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
490+listen.allowed_clients = 127.0.0.1
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
4d241919 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+
3790806a
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
809+env[PATH] = $PATH
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
849--- php-5.5.7/sapi/fpm/Makefile.frag~ 2013-12-16 17:57:03.000000000 +0200
850+++ php-5.5.7/sapi/fpm/Makefile.frag 2013-12-16 18:01:19.511829907 +0200
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 || :
857 @$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf || :
858+ @$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf || :
859
860 @echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"
861 @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8
This page took 0.142761 seconds and 4 git commands to generate.