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