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