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