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