www.conf.default 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. ; Start a new pool named 'www'.
  2. ; the variable $pool can be used in any directive and will be replaced by the
  3. ; pool name ('www' here)
  4. [www]
  5. ; Per pool prefix
  6. ; It only applies on the following directives:
  7. ; - 'access.log'
  8. ; - 'slowlog'
  9. ; - 'listen' (unixsocket)
  10. ; - 'chroot'
  11. ; - 'chdir'
  12. ; - 'php_values'
  13. ; - 'php_admin_values'
  14. ; When not set, the global prefix (or /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/php-8.1.12/release) applies instead.
  15. ; Note: This directive can also be relative to the global prefix.
  16. ; Default Value: none
  17. ;prefix = /path/to/pools/$pool
  18. ; Unix user/group of processes
  19. ; Note: The user is mandatory. If the group is not set, the default user's group
  20. ; will be used.
  21. user = nobody
  22. group = nobody
  23. ; The address on which to accept FastCGI requests.
  24. ; Valid syntaxes are:
  25. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
  26. ; a specific port;
  27. ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
  28. ; a specific port;
  29. ; 'port' - to listen on a TCP socket to all addresses
  30. ; (IPv6 and IPv4-mapped) on a specific port;
  31. ; '/path/to/unix/socket' - to listen on a unix socket.
  32. ; Note: This value is mandatory.
  33. listen = 127.0.0.1:9000
  34. ; Set listen(2) backlog.
  35. ; Default Value: 511 (-1 on FreeBSD and OpenBSD)
  36. ;listen.backlog = 511
  37. ; Set permissions for unix socket, if one is used. In Linux, read/write
  38. ; permissions must be set in order to allow connections from a web server. Many
  39. ; BSD-derived systems allow connections regardless of permissions. The owner
  40. ; and group can be specified either by name or by their numeric IDs.
  41. ; Default Values: user and group are set as the running user
  42. ; mode is set to 0660
  43. ;listen.owner = nobody
  44. ;listen.group = nobody
  45. ;listen.mode = 0660
  46. ; When POSIX Access Control Lists are supported you can set them using
  47. ; these options, value is a comma separated list of user/group names.
  48. ; When set, listen.owner and listen.group are ignored
  49. ;listen.acl_users =
  50. ;listen.acl_groups =
  51. ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
  52. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
  53. ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
  54. ; must be separated by a comma. If this value is left blank, connections will be
  55. ; accepted from any ip address.
  56. ; Default Value: any
  57. ;listen.allowed_clients = 127.0.0.1
  58. ; Specify the nice(2) priority to apply to the pool processes (only if set)
  59. ; The value can vary from -19 (highest priority) to 20 (lower priority)
  60. ; Note: - It will only work if the FPM master process is launched as root
  61. ; - The pool processes will inherit the master process priority
  62. ; unless it specified otherwise
  63. ; Default Value: no set
  64. ; process.priority = -19
  65. ; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user
  66. ; or group is different than the master process user. It allows to create process
  67. ; core dump and ptrace the process for the pool user.
  68. ; Default Value: no
  69. ; process.dumpable = yes
  70. ; Choose how the process manager will control the number of child processes.
  71. ; Possible Values:
  72. ; static - a fixed number (pm.max_children) of child processes;
  73. ; dynamic - the number of child processes are set dynamically based on the
  74. ; following directives. With this process management, there will be
  75. ; always at least 1 children.
  76. ; pm.max_children - the maximum number of children that can
  77. ; be alive at the same time.
  78. ; pm.start_servers - the number of children created on startup.
  79. ; pm.min_spare_servers - the minimum number of children in 'idle'
  80. ; state (waiting to process). If the number
  81. ; of 'idle' processes is less than this
  82. ; number then some children will be created.
  83. ; pm.max_spare_servers - the maximum number of children in 'idle'
  84. ; state (waiting to process). If the number
  85. ; of 'idle' processes is greater than this
  86. ; number then some children will be killed.
  87. ; pm.max_spawn_rate - the maximum number of rate to spawn child
  88. ; processes at once.
  89. ; ondemand - no children are created at startup. Children will be forked when
  90. ; new requests will connect. The following parameter are used:
  91. ; pm.max_children - the maximum number of children that
  92. ; can be alive at the same time.
  93. ; pm.process_idle_timeout - The number of seconds after which
  94. ; an idle process will be killed.
  95. ; Note: This value is mandatory.
  96. pm = dynamic
  97. ; The number of child processes to be created when pm is set to 'static' and the
  98. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  99. ; This value sets the limit on the number of simultaneous requests that will be
  100. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  101. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  102. ; CGI. The below defaults are based on a server without much resources. Don't
  103. ; forget to tweak pm.* to fit your needs.
  104. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  105. ; Note: This value is mandatory.
  106. pm.max_children = 5
  107. ; The number of child processes created on startup.
  108. ; Note: Used only when pm is set to 'dynamic'
  109. ; Default Value: (min_spare_servers + max_spare_servers) / 2
  110. pm.start_servers = 2
  111. ; The desired minimum number of idle server processes.
  112. ; Note: Used only when pm is set to 'dynamic'
  113. ; Note: Mandatory when pm is set to 'dynamic'
  114. pm.min_spare_servers = 1
  115. ; The desired maximum number of idle server processes.
  116. ; Note: Used only when pm is set to 'dynamic'
  117. ; Note: Mandatory when pm is set to 'dynamic'
  118. pm.max_spare_servers = 3
  119. ; The number of rate to spawn child processes at once.
  120. ; Note: Used only when pm is set to 'dynamic'
  121. ; Note: Mandatory when pm is set to 'dynamic'
  122. ; Default Value: 32
  123. ;pm.max_spawn_rate = 32
  124. ; The number of seconds after which an idle process will be killed.
  125. ; Note: Used only when pm is set to 'ondemand'
  126. ; Default Value: 10s
  127. ;pm.process_idle_timeout = 10s;
  128. ; The number of requests each child process should execute before respawning.
  129. ; This can be useful to work around memory leaks in 3rd party libraries. For
  130. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  131. ; Default Value: 0
  132. ;pm.max_requests = 500
  133. ; The URI to view the FPM status page. If this value is not set, no URI will be
  134. ; recognized as a status page. It shows the following information:
  135. ; pool - the name of the pool;
  136. ; process manager - static, dynamic or ondemand;
  137. ; start time - the date and time FPM has started;
  138. ; start since - number of seconds since FPM has started;
  139. ; accepted conn - the number of request accepted by the pool;
  140. ; listen queue - the number of request in the queue of pending
  141. ; connections (see backlog in listen(2));
  142. ; max listen queue - the maximum number of requests in the queue
  143. ; of pending connections since FPM has started;
  144. ; listen queue len - the size of the socket queue of pending connections;
  145. ; idle processes - the number of idle processes;
  146. ; active processes - the number of active processes;
  147. ; total processes - the number of idle + active processes;
  148. ; max active processes - the maximum number of active processes since FPM
  149. ; has started;
  150. ; max children reached - number of times, the process limit has been reached,
  151. ; when pm tries to start more children (works only for
  152. ; pm 'dynamic' and 'ondemand');
  153. ; Value are updated in real time.
  154. ; Example output:
  155. ; pool: www
  156. ; process manager: static
  157. ; start time: 01/Jul/2011:17:53:49 +0200
  158. ; start since: 62636
  159. ; accepted conn: 190460
  160. ; listen queue: 0
  161. ; max listen queue: 1
  162. ; listen queue len: 42
  163. ; idle processes: 4
  164. ; active processes: 11
  165. ; total processes: 15
  166. ; max active processes: 12
  167. ; max children reached: 0
  168. ;
  169. ; By default the status page output is formatted as text/plain. Passing either
  170. ; 'html', 'xml' or 'json' in the query string will return the corresponding
  171. ; output syntax. Example:
  172. ; http://www.foo.bar/status
  173. ; http://www.foo.bar/status?json
  174. ; http://www.foo.bar/status?html
  175. ; http://www.foo.bar/status?xml
  176. ;
  177. ; By default the status page only outputs short status. Passing 'full' in the
  178. ; query string will also return status for each pool process.
  179. ; Example:
  180. ; http://www.foo.bar/status?full
  181. ; http://www.foo.bar/status?json&full
  182. ; http://www.foo.bar/status?html&full
  183. ; http://www.foo.bar/status?xml&full
  184. ; The Full status returns for each process:
  185. ; pid - the PID of the process;
  186. ; state - the state of the process (Idle, Running, ...);
  187. ; start time - the date and time the process has started;
  188. ; start since - the number of seconds since the process has started;
  189. ; requests - the number of requests the process has served;
  190. ; request duration - the duration in µs of the requests;
  191. ; request method - the request method (GET, POST, ...);
  192. ; request URI - the request URI with the query string;
  193. ; content length - the content length of the request (only with POST);
  194. ; user - the user (PHP_AUTH_USER) (or '-' if not set);
  195. ; script - the main script called (or '-' if not set);
  196. ; last request cpu - the %cpu the last request consumed
  197. ; it's always 0 if the process is not in Idle state
  198. ; because CPU calculation is done when the request
  199. ; processing has terminated;
  200. ; last request memory - the max amount of memory the last request consumed
  201. ; it's always 0 if the process is not in Idle state
  202. ; because memory calculation is done when the request
  203. ; processing has terminated;
  204. ; If the process is in Idle state, then informations are related to the
  205. ; last request the process has served. Otherwise informations are related to
  206. ; the current request being served.
  207. ; Example output:
  208. ; ************************
  209. ; pid: 31330
  210. ; state: Running
  211. ; start time: 01/Jul/2011:17:53:49 +0200
  212. ; start since: 63087
  213. ; requests: 12808
  214. ; request duration: 1250261
  215. ; request method: GET
  216. ; request URI: /test_mem.php?N=10000
  217. ; content length: 0
  218. ; user: -
  219. ; script: /home/fat/web/docs/php/test_mem.php
  220. ; last request cpu: 0.00
  221. ; last request memory: 0
  222. ;
  223. ; Note: There is a real-time FPM status monitoring sample web page available
  224. ; It's available in: /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/php-8.1.12/release/share/php/fpm/status.html
  225. ;
  226. ; Note: The value must start with a leading slash (/). The value can be
  227. ; anything, but it may not be a good idea to use the .php extension or it
  228. ; may conflict with a real PHP file.
  229. ; Default Value: not set
  230. ;pm.status_path = /status
  231. ; The address on which to accept FastCGI status request. This creates a new
  232. ; invisible pool that can handle requests independently. This is useful
  233. ; if the main pool is busy with long running requests because it is still possible
  234. ; to get the status before finishing the long running requests.
  235. ;
  236. ; Valid syntaxes are:
  237. ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
  238. ; a specific port;
  239. ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
  240. ; a specific port;
  241. ; 'port' - to listen on a TCP socket to all addresses
  242. ; (IPv6 and IPv4-mapped) on a specific port;
  243. ; '/path/to/unix/socket' - to listen on a unix socket.
  244. ; Default Value: value of the listen option
  245. ;pm.status_listen = 127.0.0.1:9001
  246. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  247. ; URI will be recognized as a ping page. This could be used to test from outside
  248. ; that FPM is alive and responding, or to
  249. ; - create a graph of FPM availability (rrd or such);
  250. ; - remove a server from a group if it is not responding (load balancing);
  251. ; - trigger alerts for the operating team (24/7).
  252. ; Note: The value must start with a leading slash (/). The value can be
  253. ; anything, but it may not be a good idea to use the .php extension or it
  254. ; may conflict with a real PHP file.
  255. ; Default Value: not set
  256. ;ping.path = /ping
  257. ; This directive may be used to customize the response of a ping request. The
  258. ; response is formatted as text/plain with a 200 response code.
  259. ; Default Value: pong
  260. ;ping.response = pong
  261. ; The access log file
  262. ; Default: not set
  263. ;access.log = log/$pool.access.log
  264. ; The access log format.
  265. ; The following syntax is allowed
  266. ; %%: the '%' character
  267. ; %C: %CPU used by the request
  268. ; it can accept the following format:
  269. ; - %{user}C for user CPU only
  270. ; - %{system}C for system CPU only
  271. ; - %{total}C for user + system CPU (default)
  272. ; %d: time taken to serve the request
  273. ; it can accept the following format:
  274. ; - %{seconds}d (default)
  275. ; - %{milliseconds}d
  276. ; - %{milli}d
  277. ; - %{microseconds}d
  278. ; - %{micro}d
  279. ; %e: an environment variable (same as $_ENV or $_SERVER)
  280. ; it must be associated with embraces to specify the name of the env
  281. ; variable. Some examples:
  282. ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
  283. ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
  284. ; %f: script filename
  285. ; %l: content-length of the request (for POST request only)
  286. ; %m: request method
  287. ; %M: peak of memory allocated by PHP
  288. ; it can accept the following format:
  289. ; - %{bytes}M (default)
  290. ; - %{kilobytes}M
  291. ; - %{kilo}M
  292. ; - %{megabytes}M
  293. ; - %{mega}M
  294. ; %n: pool name
  295. ; %o: output header
  296. ; it must be associated with embraces to specify the name of the header:
  297. ; - %{Content-Type}o
  298. ; - %{X-Powered-By}o
  299. ; - %{Transfert-Encoding}o
  300. ; - ....
  301. ; %p: PID of the child that serviced the request
  302. ; %P: PID of the parent of the child that serviced the request
  303. ; %q: the query string
  304. ; %Q: the '?' character if query string exists
  305. ; %r: the request URI (without the query string, see %q and %Q)
  306. ; %R: remote IP address
  307. ; %s: status (response code)
  308. ; %t: server time the request was received
  309. ; it can accept a strftime(3) format:
  310. ; %d/%b/%Y:%H:%M:%S %z (default)
  311. ; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
  312. ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
  313. ; %T: time the log has been written (the request has finished)
  314. ; it can accept a strftime(3) format:
  315. ; %d/%b/%Y:%H:%M:%S %z (default)
  316. ; The strftime(3) format must be encapsulated in a %{<strftime_format>}t tag
  317. ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
  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 %{milli}d %{kilo}M %C%%"
  322. ; The log file for slow requests
  323. ; Default Value: not set
  324. ; Note: slowlog is mandatory if request_slowlog_timeout is set
  325. ;slowlog = log/$pool.log.slow
  326. ; The timeout for serving a single request after which a PHP backtrace will be
  327. ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
  328. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  329. ; Default Value: 0
  330. ;request_slowlog_timeout = 0
  331. ; Depth of slow log stack trace.
  332. ; Default Value: 20
  333. ;request_slowlog_trace_depth = 20
  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. ; The timeout set by 'request_terminate_timeout' ini option is not engaged after
  341. ; application calls 'fastcgi_finish_request' or when application has finished and
  342. ; shutdown functions are being called (registered via register_shutdown_function).
  343. ; This option will enable timeout limit to be applied unconditionally
  344. ; even in such cases.
  345. ; Default Value: no
  346. ;request_terminate_timeout_track_finished = no
  347. ; Set open file descriptor rlimit.
  348. ; Default Value: system defined value
  349. ;rlimit_files = 1024
  350. ; Set max core size rlimit.
  351. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  352. ; Default Value: system defined value
  353. ;rlimit_core = 0
  354. ; Chroot to this directory at the start. This value must be defined as an
  355. ; absolute path. When this value is not set, chroot is not used.
  356. ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
  357. ; of its subdirectories. If the pool prefix is not set, the global prefix
  358. ; will be used instead.
  359. ; Note: chrooting is a great security feature and should be used whenever
  360. ; possible. However, all PHP paths will be relative to the chroot
  361. ; (error_log, sessions.save_path, ...).
  362. ; Default Value: not set
  363. ;chroot =
  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. ; Redirect worker stdout and stderr into main error log. If not set, stdout and
  369. ; stderr will be redirected to /dev/null according to FastCGI specs.
  370. ; Note: on highloaded environment, this can cause some delay in the page
  371. ; process time (several ms).
  372. ; Default Value: no
  373. ;catch_workers_output = yes
  374. ; Decorate worker output with prefix and suffix containing information about
  375. ; the child that writes to the log and if stdout or stderr is used as well as
  376. ; log level and time. This options is used only if catch_workers_output is yes.
  377. ; Settings to "no" will output data as written to the stdout or stderr.
  378. ; Default value: yes
  379. ;decorate_workers_output = no
  380. ; Clear environment in FPM workers
  381. ; Prevents arbitrary environment variables from reaching FPM worker processes
  382. ; by clearing the environment in workers before env vars specified in this
  383. ; pool configuration are added.
  384. ; Setting to "no" will make all environment variables available to PHP code
  385. ; via getenv(), $_ENV and $_SERVER.
  386. ; Default Value: yes
  387. ;clear_env = no
  388. ; Limits the extensions of the main script FPM will allow to parse. This can
  389. ; prevent configuration mistakes on the web server side. You should only limit
  390. ; FPM to .php extensions to prevent malicious users to use other extensions to
  391. ; execute php code.
  392. ; Note: set an empty value to allow all extensions.
  393. ; Default Value: .php
  394. ;security.limit_extensions = .php .php3 .php4 .php5 .php7
  395. ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
  396. ; the current environment.
  397. ; Default Value: clean env
  398. ;env[HOSTNAME] = $HOSTNAME
  399. ;env[PATH] = /usr/local/bin:/usr/bin:/bin
  400. ;env[TMP] = /tmp
  401. ;env[TMPDIR] = /tmp
  402. ;env[TEMP] = /tmp
  403. ; Additional php.ini defines, specific to this pool of workers. These settings
  404. ; overwrite the values previously defined in the php.ini. The directives are the
  405. ; same as the PHP SAPI:
  406. ; php_value/php_flag - you can set classic ini defines which can
  407. ; be overwritten from PHP call 'ini_set'.
  408. ; php_admin_value/php_admin_flag - these directives won't be overwritten by
  409. ; PHP call 'ini_set'
  410. ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
  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. ; Note: path INI options can be relative and will be expanded with the prefix
  416. ; (pool, global or /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/php-8.1.12/release)
  417. ; Default Value: nothing is defined by default except the values in php.ini and
  418. ; specified at startup with the -d argument
  419. ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
  420. ;php_flag[display_errors] = off
  421. ;php_admin_value[error_log] = /var/log/fpm-php.www.log
  422. ;php_admin_flag[log_errors] = on
  423. ;php_admin_value[memory_limit] = 32M