firemail

标题: php相关文件 [打印本页]

作者: Qter    时间: 2020-6-5 19:25
标题: php相关文件
本帖最后由 Qter 于 2020-6-5 19:49 编辑

# cp php.ini-production /etc/php.ini
  1. [PHP]

  2. ;;;;;;;;;;;;;;;;;;;
  3. ; About php.ini   ;
  4. ;;;;;;;;;;;;;;;;;;;
  5. ; PHP's initialization file, generally called php.ini, is responsible for
  6. ; configuring many of the aspects of PHP's behavior.

  7. ; PHP attempts to find and load this configuration from a number of locations.
  8. ; The following is a summary of its search order:
  9. ; 1. SAPI module specific location.
  10. ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
  11. ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
  12. ; 4. Current working directory (except CLI)
  13. ; 5. The web server's directory (for SAPI modules), or directory of PHP
  14. ; (otherwise in Windows)
  15. ; 6. The directory from the --with-config-file-path compile time option, or the
  16. ; Windows directory (C:\windows or C:\winnt)
  17. ; See the PHP docs for more specific information.
  18. ; http://php.net/configuration.file

  19. ; The syntax of the file is extremely simple.  Whitespace and lines
  20. ; beginning with a semicolon are silently ignored (as you probably guessed).
  21. ; Section headers (e.g. [Foo]) are also silently ignored, even though
  22. ; they might mean something in the future.

  23. ; Directives following the section heading [PATH=/www/mysite] only
  24. ; apply to PHP files in the /www/mysite directory.  Directives
  25. ; following the section heading [HOST=www.example.com] only apply to
  26. ; PHP files served from www.example.com.  Directives set in these
  27. ; special sections cannot be overridden by user-defined INI files or
  28. ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
  29. ; CGI/FastCGI.
  30. ; http://php.net/ini.sections

  31. ; Directives are specified using the following syntax:
  32. ; directive = value
  33. ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
  34. ; Directives are variables used to configure PHP or PHP extensions.
  35. ; There is no name validation.  If PHP can't find an expected
  36. ; directive because it is not set or is mistyped, a default value will be used.

  37. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
  38. ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
  39. ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
  40. ; previously set variable or directive (e.g. ${foo})

  41. ; Expressions in the INI file are limited to bitwise operators and parentheses:
  42. ; |  bitwise OR
  43. ; ^  bitwise XOR
  44. ; &  bitwise AND
  45. ; ~  bitwise NOT
  46. ; !  boolean NOT

  47. ; Boolean flags can be turned on using the values 1, On, True or Yes.
  48. ; They can be turned off using the values 0, Off, False or No.

  49. ; An empty string can be denoted by simply not writing anything after the equal
  50. ; sign, or by using the None keyword:

  51. ;  foo =         ; sets foo to an empty string
  52. ;  foo = None    ; sets foo to an empty string
  53. ;  foo = "None"  ; sets foo to the string 'None'

  54. ; If you use constants in your value, and these constants belong to a
  55. ; dynamically loaded extension (either a PHP extension or a Zend extension),
  56. ; you may only use these constants *after* the line that loads the extension.

  57. ;;;;;;;;;;;;;;;;;;;
  58. ; About this file ;
  59. ;;;;;;;;;;;;;;;;;;;
  60. ; PHP comes packaged with two INI files. One that is recommended to be used
  61. ; in production environments and one that is recommended to be used in
  62. ; development environments.

  63. ; php.ini-production contains settings which hold security, performance and
  64. ; best practices at its core. But please be aware, these settings may break
  65. ; compatibility with older or less security conscience applications. We
  66. ; recommending using the production ini in production and testing environments.

  67. ; php.ini-development is very similar to its production variant, except it is
  68. ; much more verbose when it comes to errors. We recommend using the
  69. ; development version only in development environments, as errors shown to
  70. ; application users can inadvertently leak otherwise secure information.

  71. ; This is php.ini-production INI file.

  72. ;;;;;;;;;;;;;;;;;;;
  73. ; Quick Reference ;
  74. ;;;;;;;;;;;;;;;;;;;
  75. ; The following are all the settings which are different in either the production
  76. ; or development versions of the INIs with respect to PHP's default behavior.
  77. ; Please see the actual settings later in the document for more details as to why
  78. ; we recommend these changes in PHP's behavior.

  79. ; display_errors
  80. ;   Default Value: On
  81. ;   Development Value: On
  82. ;   Production Value: Off

  83. ; display_startup_errors
  84. ;   Default Value: Off
  85. ;   Development Value: On
  86. ;   Production Value: Off

  87. ; error_reporting
  88. ;   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
  89. ;   Development Value: E_ALL
  90. ;   Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT

  91. ; html_errors
  92. ;   Default Value: On
  93. ;   Development Value: On
  94. ;   Production value: On

  95. ; log_errors
  96. ;   Default Value: Off
  97. ;   Development Value: On
  98. ;   Production Value: On

  99. ; max_input_time
  100. ;   Default Value: -1 (Unlimited)
  101. ;   Development Value: 60 (60 seconds)
  102. ;   Production Value: 60 (60 seconds)

  103. ; output_buffering
  104. ;   Default Value: Off
  105. ;   Development Value: 4096
  106. ;   Production Value: 4096

  107. ; register_argc_argv
  108. ;   Default Value: On
  109. ;   Development Value: Off
  110. ;   Production Value: Off

  111. ; request_order
  112. ;   Default Value: None
  113. ;   Development Value: "GP"
  114. ;   Production Value: "GP"

  115. ; session.gc_divisor
  116. ;   Default Value: 100
  117. ;   Development Value: 1000
  118. ;   Production Value: 1000

  119. ; session.sid_bits_per_character
  120. ;   Default Value: 4
  121. ;   Development Value: 5
  122. ;   Production Value: 5

  123. ; short_open_tag
  124. ;   Default Value: On
  125. ;   Development Value: Off
  126. ;   Production Value: Off

  127. ; track_errors
  128. ;   Default Value: Off
  129. ;   Development Value: On
  130. ;   Production Value: Off

  131. ; variables_order
  132. ;   Default Value: "EGPCS"
  133. ;   Development Value: "GPCS"
  134. ;   Production Value: "GPCS"

  135. ;;;;;;;;;;;;;;;;;;;;
  136. ; php.ini Options  ;
  137. ;;;;;;;;;;;;;;;;;;;;
  138. ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
  139. ;user_ini.filename = ".user.ini"

  140. ; To disable this feature set this option to empty value
  141. ;user_ini.filename =

  142. ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
  143. ;user_ini.cache_ttl = 300

  144. ;;;;;;;;;;;;;;;;;;;;
  145. ; Language Options ;
  146. ;;;;;;;;;;;;;;;;;;;;

  147. ; Enable the PHP scripting language engine under Apache.
  148. ; http://php.net/engine
  149. engine = On

  150. ; This directive determines whether or not PHP will recognize code between
  151. ; <? and ?> tags as PHP source which should be processed as such. It is
  152. ; generally recommended that <?php and ?> should be used and that this feature
  153. ; should be disabled, as enabling it may result in issues when generating XML
  154. ; documents, however this remains supported for backward compatibility reasons.
  155. ; Note that this directive does not control the <?= shorthand tag, which can be
  156. ; used regardless of this directive.
  157. ; Default Value: On
  158. ; Development Value: Off
  159. ; Production Value: Off
  160. ; http://php.net/short-open-tag
  161. short_open_tag = Off

  162. ; The number of significant digits displayed in floating point numbers.
  163. ; http://php.net/precision
  164. precision = 14

  165. ; Output buffering is a mechanism for controlling how much output data
  166. ; (excluding headers and cookies) PHP should keep internally before pushing that
  167. ; data to the client. If your application's output exceeds this setting, PHP
  168. ; will send that data in chunks of roughly the size you specify.
  169. ; Turning on this setting and managing its maximum buffer size can yield some
  170. ; interesting side-effects depending on your application and web server.
  171. ; You may be able to send headers and cookies after you've already sent output
  172. ; through print or echo. You also may see performance benefits if your server is
  173. ; emitting less packets due to buffered output versus PHP streaming the output
  174. ; as it gets it. On production servers, 4096 bytes is a good setting for performance
  175. ; reasons.
  176. ; Note: Output buffering can also be controlled via Output Buffering Control
  177. ;   functions.
  178. ; Possible Values:
  179. ;   On = Enabled and buffer is unlimited. (Use with caution)
  180. ;   Off = Disabled
  181. ;   Integer = Enables the buffer and sets its maximum size in bytes.
  182. ; Note: This directive is hardcoded to Off for the CLI SAPI
  183. ; Default Value: Off
  184. ; Development Value: 4096
  185. ; Production Value: 4096
  186. ; http://php.net/output-buffering
  187. output_buffering = 4096

  188. ; You can redirect all of the output of your scripts to a function.  For
  189. ; example, if you set output_handler to "mb_output_handler", character
  190. ; encoding will be transparently converted to the specified encoding.
  191. ; Setting any output handler automatically turns on output buffering.
  192. ; Note: People who wrote portable scripts should not depend on this ini
  193. ;   directive. Instead, explicitly set the output handler using ob_start().
  194. ;   Using this ini directive may cause problems unless you know what script
  195. ;   is doing.
  196. ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
  197. ;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
  198. ; Note: output_handler must be empty if this is set 'On' !!!!
  199. ;   Instead you must use zlib.output_handler.
  200. ; http://php.net/output-handler
  201. ;output_handler =

  202. ; URL rewriter function rewrites URL on the fly by using
  203. ; output buffer. You can set target tags by this configuration.
  204. ; "form" tag is special tag. It will add hidden input tag to pass values.
  205. ; Refer to session.trans_sid_tags for usage.
  206. ; Default Value: "form="
  207. ; Development Value: "form="
  208. ; Production Value: "form="
  209. ;url_rewriter.tags

  210. ; URL rewriter will not rewrites absolute URL nor form by default. To enable
  211. ; absolute URL rewrite, allowed hosts must be defined at RUNTIME.
  212. ; Refer to session.trans_sid_hosts for more details.
  213. ; Default Value: ""
  214. ; Development Value: ""
  215. ; Production Value: ""
  216. ;url_rewriter.hosts

  217. ; Transparent output compression using the zlib library
  218. ; Valid values for this option are 'off', 'on', or a specific buffer size
  219. ; to be used for compression (default is 4KB)
  220. ; Note: Resulting chunk size may vary due to nature of compression. PHP
  221. ;   outputs chunks that are few hundreds bytes each as a result of
  222. ;   compression. If you prefer a larger chunk size for better
  223. ;   performance, enable output_buffering in addition.
  224. ; Note: You need to use zlib.output_handler instead of the standard
  225. ;   output_handler, or otherwise the output will be corrupted.
  226. ; http://php.net/zlib.output-compression
  227. zlib.output_compression = Off

  228. ; http://php.net/zlib.output-compression-level
  229. ;zlib.output_compression_level = -1

  230. ; You cannot specify additional output handlers if zlib.output_compression
  231. ; is activated here. This setting does the same as output_handler but in
  232. ; a different order.
  233. ; http://php.net/zlib.output-handler
  234. ;zlib.output_handler =

  235. ; Implicit flush tells PHP to tell the output layer to flush itself
  236. ; automatically after every output block.  This is equivalent to calling the
  237. ; PHP function flush() after each and every call to print() or echo() and each
  238. ; and every HTML block.  Turning this option on has serious performance
  239. ; implications and is generally recommended for debugging purposes only.
  240. ; http://php.net/implicit-flush
  241. ; Note: This directive is hardcoded to On for the CLI SAPI
  242. implicit_flush = Off

  243. ; The unserialize callback function will be called (with the undefined class'
  244. ; name as parameter), if the unserializer finds an undefined class
  245. ; which should be instantiated. A warning appears if the specified function is
  246. ; not defined, or if the function doesn't include/implement the missing class.
  247. ; So only set this entry, if you really want to implement such a
  248. ; callback-function.
  249. unserialize_callback_func =

  250. ; When floats & doubles are serialized, store serialize_precision significant
  251. ; digits after the floating point. The default value ensures that when floats
  252. ; are decoded with unserialize, the data will remain the same.
  253. ; The value is also used for json_encode when encoding double values.
  254. ; If -1 is used, then dtoa mode 0 is used which automatically select the best
  255. ; precision.
  256. serialize_precision = -1

  257. ; open_basedir, if set, limits all file operations to the defined directory
  258. ; and below.  This directive makes most sense if used in a per-directory
  259. ; or per-virtualhost web server configuration file.
  260. ; Note: disables the realpath cache
  261. ; http://php.net/open-basedir
  262. ;open_basedir =

  263. ; This directive allows you to disable certain functions for security reasons.
  264. ; It receives a comma-delimited list of function names.
  265. ; http://php.net/disable-functions
  266. disable_functions =

  267. ; This directive allows you to disable certain classes for security reasons.
  268. ; It receives a comma-delimited list of class names.
  269. ; http://php.net/disable-classes
  270. disable_classes =

  271. ; Colors for Syntax Highlighting mode.  Anything that's acceptable in
  272. ; <span style="color: ???????"> would work.
  273. ; http://php.net/syntax-highlighting
  274. ;highlight.string  = #DD0000
  275. ;highlight.comment = #FF9900
  276. ;highlight.keyword = #007700
  277. ;highlight.default = #0000BB
  278. ;highlight.html    = #000000

  279. ; If enabled, the request will be allowed to complete even if the user aborts
  280. ; the request. Consider enabling it if executing long requests, which may end up
  281. ; being interrupted by the user or a browser timing out. PHP's default behavior
  282. ; is to disable this feature.
  283. ; http://php.net/ignore-user-abort
  284. ;ignore_user_abort = On

  285. ; Determines the size of the realpath cache to be used by PHP. This value should
  286. ; be increased on systems where PHP opens many files to reflect the quantity of
  287. ; the file operations performed.
  288. ; Note: if open_basedir is set, the cache is disabled
  289. ; http://php.net/realpath-cache-size
  290. ;realpath_cache_size = 4096k

  291. ; Duration of time, in seconds for which to cache realpath information for a given
  292. ; file or directory. For systems with rarely changing files, consider increasing this
  293. ; value.
  294. ; http://php.net/realpath-cache-ttl
  295. ;realpath_cache_ttl = 120

  296. ; Enables or disables the circular reference collector.
  297. ; http://php.net/zend.enable-gc
  298. zend.enable_gc = On

  299. ; If enabled, scripts may be written in encodings that are incompatible with
  300. ; the scanner.  CP936, Big5, CP949 and Shift_JIS are the examples of such
  301. ; encodings.  To use this feature, mbstring extension must be enabled.
  302. ; Default: Off
  303. ;zend.multibyte = Off

  304. ; Allows to set the default encoding for the scripts.  This value will be used
  305. ; unless "declare(encoding=...)" directive appears at the top of the script.
  306. ; Only affects if zend.multibyte is set.
  307. ; Default: ""
  308. ;zend.script_encoding =

  309. ;;;;;;;;;;;;;;;;;
  310. ; Miscellaneous ;
  311. ;;;;;;;;;;;;;;;;;

  312. ; Decides whether PHP may expose the fact that it is installed on the server
  313. ; (e.g. by adding its signature to the Web server header).  It is no security
  314. ; threat in any way, but it makes it possible to determine whether you use PHP
  315. ; on your server or not.
  316. ; http://php.net/expose-php
  317. expose_php = On

  318. ;;;;;;;;;;;;;;;;;;;
  319. ; Resource Limits ;
  320. ;;;;;;;;;;;;;;;;;;;

  321. ; Maximum execution time of each script, in seconds
  322. ; http://php.net/max-execution-time
  323. ; Note: This directive is hardcoded to 0 for the CLI SAPI
  324. max_execution_time = 30

  325. ; Maximum amount of time each script may spend parsing request data. It's a good
  326. ; idea to limit this time on productions servers in order to eliminate unexpectedly
  327. ; long running scripts.
  328. ; Note: This directive is hardcoded to -1 for the CLI SAPI
  329. ; Default Value: -1 (Unlimited)
  330. ; Development Value: 60 (60 seconds)
  331. ; Production Value: 60 (60 seconds)
  332. ; http://php.net/max-input-time
  333. max_input_time = 60

  334. ; Maximum input variable nesting level
  335. ; http://php.net/max-input-nesting-level
  336. ;max_input_nesting_level = 64

  337. ; How many GET/POST/COOKIE input variables may be accepted
  338. ; max_input_vars = 1000

  339. ; Maximum amount of memory a script may consume (128MB)
  340. ; http://php.net/memory-limit
  341. memory_limit = 128M

  342. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  343. ; Error handling and logging ;
  344. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

  345. ; This directive informs PHP of which errors, warnings and notices you would like
  346. ; it to take action for. The recommended way of setting values for this
  347. ; directive is through the use of the error level constants and bitwise
  348. ; operators. The error level constants are below here for convenience as well as
  349. ; some common settings and their meanings.
  350. ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
  351. ; those related to E_NOTICE and E_STRICT, which together cover best practices and
  352. ; recommended coding standards in PHP. For performance reasons, this is the
  353. ; recommend error reporting setting. Your production server shouldn't be wasting
  354. ; resources complaining about best practices and coding standards. That's what
  355. ; development servers and development settings are for.
  356. ; Note: The php.ini-development file has this setting as E_ALL. This
  357. ; means it pretty much reports everything which is exactly what you want during
  358. ; development and early testing.
  359. ;
  360. ; Error Level Constants:
  361. ; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
  362. ; E_ERROR           - fatal run-time errors
  363. ; E_RECOVERABLE_ERROR  - almost fatal run-time errors
  364. ; E_WARNING         - run-time warnings (non-fatal errors)
  365. ; E_PARSE           - compile-time parse errors
  366. ; E_NOTICE          - run-time notices (these are warnings which often result
  367. ;                     from a bug in your code, but it's possible that it was
  368. ;                     intentional (e.g., using an uninitialized variable and
  369. ;                     relying on the fact it is automatically initialized to an
  370. ;                     empty string)
  371. ; E_STRICT          - run-time notices, enable to have PHP suggest changes
  372. ;                     to your code which will ensure the best interoperability
  373. ;                     and forward compatibility of your code
  374. ; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
  375. ; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
  376. ;                     initial startup
  377. ; E_COMPILE_ERROR   - fatal compile-time errors
  378. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  379. ; E_USER_ERROR      - user-generated error message
  380. ; E_USER_WARNING    - user-generated warning message
  381. ; E_USER_NOTICE     - user-generated notice message
  382. ; E_DEPRECATED      - warn about code that will not work in future versions
  383. ;                     of PHP
  384. ; E_USER_DEPRECATED - user-generated deprecation warnings
  385. ;
  386. ; Common Values:
  387. ;   E_ALL (Show all errors, warnings and notices including coding standards.)
  388. ;   E_ALL & ~E_NOTICE  (Show all errors, except for notices)
  389. ;   E_ALL & ~E_NOTICE & ~E_STRICT  (Show all errors, except for notices and coding standards warnings.)
  390. ;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
  391. ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
  392. ; Development Value: E_ALL
  393. ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
  394. ; http://php.net/error-reporting
  395. error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

  396. ; This directive controls whether or not and where PHP will output errors,
  397. ; notices and warnings too. Error output is very useful during development, but
  398. ; it could be very dangerous in production environments. Depending on the code
  399. ; which is triggering the error, sensitive information could potentially leak
  400. ; out of your application such as database usernames and passwords or worse.
  401. ; For production environments, we recommend logging errors rather than
  402. ; sending them to STDOUT.
  403. ; Possible Values:
  404. ;   Off = Do not display any errors
  405. ;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
  406. ;   On or stdout = Display errors to STDOUT
  407. ; Default Value: On
  408. ; Development Value: On
  409. ; Production Value: Off
  410. ; http://php.net/display-errors
  411. display_errors = Off

  412. ; The display of errors which occur during PHP's startup sequence are handled
  413. ; separately from display_errors. PHP's default behavior is to suppress those
  414. ; errors from clients. Turning the display of startup errors on can be useful in
  415. ; debugging configuration problems. We strongly recommend you
  416. ; set this to 'off' for production servers.
  417. ; Default Value: Off
  418. ; Development Value: On
  419. ; Production Value: Off
  420. ; http://php.net/display-startup-errors
  421. display_startup_errors = Off

  422. ; Besides displaying errors, PHP can also log errors to locations such as a
  423. ; server-specific log, STDERR, or a location specified by the error_log
  424. ; directive found below. While errors should not be displayed on productions
  425. ; servers they should still be monitored and logging is a great way to do that.
  426. ; Default Value: Off
  427. ; Development Value: On
  428. ; Production Value: On
  429. ; http://php.net/log-errors
  430. log_errors = On

  431. ; Set maximum length of log_errors. In error_log information about the source is
  432. ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
  433. ; http://php.net/log-errors-max-len
  434. log_errors_max_len = 1024

  435. ; Do not log repeated messages. Repeated errors must occur in same file on same
  436. ; line unless ignore_repeated_source is set true.
  437. ; http://php.net/ignore-repeated-errors
  438. ignore_repeated_errors = Off

  439. ; Ignore source of message when ignoring repeated messages. When this setting
  440. ; is On you will not log errors with repeated messages from different files or
  441. ; source lines.
  442. ; http://php.net/ignore-repeated-source
  443. ignore_repeated_source = Off

  444. ; If this parameter is set to Off, then memory leaks will not be shown (on
  445. ; stdout or in the log). This has only effect in a debug compile, and if
  446. ; error reporting includes E_WARNING in the allowed list
  447. ; http://php.net/report-memleaks
  448. report_memleaks = On

  449. ; This setting is on by default.
  450. ;report_zend_debug = 0

  451. ; Store the last error/warning message in $php_errormsg (boolean). Setting this value
  452. ; to On can assist in debugging and is appropriate for development servers. It should
  453. ; however be disabled on production servers.
  454. ; This directive is DEPRECATED.
  455. ; Default Value: Off
  456. ; Development Value: Off
  457. ; Production Value: Off
  458. ; http://php.net/track-errors
  459. ;track_errors = Off

  460. ; Turn off normal error reporting and emit XML-RPC error XML
  461. ; http://php.net/xmlrpc-errors
  462. ;xmlrpc_errors = 0

  463. ; An XML-RPC faultCode
  464. ;xmlrpc_error_number = 0

  465. ; When PHP displays or logs an error, it has the capability of formatting the
  466. ; error message as HTML for easier reading. This directive controls whether
  467. ; the error message is formatted as HTML or not.
  468. ; Note: This directive is hardcoded to Off for the CLI SAPI
  469. ; Default Value: On
  470. ; Development Value: On
  471. ; Production value: On
  472. ; http://php.net/html-errors
  473. html_errors = On

  474. ; If html_errors is set to On *and* docref_root is not empty, then PHP
  475. ; produces clickable error messages that direct to a page describing the error
  476. ; or function causing the error in detail.
  477. ; You can download a copy of the PHP manual from http://php.net/docs
  478. ; and change docref_root to the base URL of your local copy including the
  479. ; leading '/'. You must also specify the file extension being used including
  480. ; the dot. PHP's default behavior is to leave these settings empty, in which
  481. ; case no links to documentation are generated.
  482. ; Note: Never use this feature for production boxes.
  483. ; http://php.net/docref-root
  484. ; Examples
  485. ;docref_root = "/phpmanual/"

  486. ; http://php.net/docref-ext
  487. ;docref_ext = .html

  488. ; String to output before an error message. PHP's default behavior is to leave
  489. ; this setting blank.
  490. ; http://php.net/error-prepend-string
  491. ; Example:
  492. ;error_prepend_string = "<span style='color: #ff0000'>"

  493. ; String to output after an error message. PHP's default behavior is to leave
  494. ; this setting blank.
  495. ; http://php.net/error-append-string
  496. ; Example:
  497. ;error_append_string = "</span>"

  498. ; Log errors to specified file. PHP's default behavior is to leave this value
  499. ; empty.
  500. ; http://php.net/error-log
  501. ; Example:
  502. ;error_log = php_errors.log
  503. ; Log errors to syslog (Event Log on Windows).
  504. ;error_log = syslog

  505. ;windows.show_crt_warning
  506. ; Default value: 0
  507. ; Development value: 0
  508. ; Production value: 0

  509. ;;;;;;;;;;;;;;;;;
  510. ; Data Handling ;
  511. ;;;;;;;;;;;;;;;;;

  512. ; The separator used in PHP generated URLs to separate arguments.
  513. ; PHP's default setting is "&".
  514. ; http://php.net/arg-separator.output
  515. ; Example:
  516. ;arg_separator.output = "&"

  517. ; List of separator(s) used by PHP to parse input URLs into variables.
  518. ; PHP's default setting is "&".
  519. ; NOTE: Every character in this directive is considered as separator!
  520. ; http://php.net/arg-separator.input
  521. ; Example:
  522. ;arg_separator.input = ";&"

  523. ; This directive determines which super global arrays are registered when PHP
  524. ; starts up. G,P,C,E & S are abbreviations for the following respective super
  525. ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
  526. ; paid for the registration of these arrays and because ENV is not as commonly
  527. ; used as the others, ENV is not recommended on productions servers. You
  528. ; can still get access to the environment variables through getenv() should you
  529. ; need to.
  530. ; Default Value: "EGPCS"
  531. ; Development Value: "GPCS"
  532. ; Production Value: "GPCS";
  533. ; http://php.net/variables-order
  534. variables_order = "GPCS"

  535. ; This directive determines which super global data (G,P & C) should be
  536. ; registered into the super global array REQUEST. If so, it also determines
  537. ; the order in which that data is registered. The values for this directive
  538. ; are specified in the same manner as the variables_order directive,
  539. ; EXCEPT one. Leaving this value empty will cause PHP to use the value set
  540. ; in the variables_order directive. It does not mean it will leave the super
  541. ; globals array REQUEST empty.
  542. ; Default Value: None
  543. ; Development Value: "GP"
  544. ; Production Value: "GP"
  545. ; http://php.net/request-order
  546. request_order = "GP"

  547. ; This directive determines whether PHP registers $argv & $argc each time it
  548. ; runs. $argv contains an array of all the arguments passed to PHP when a script
  549. ; is invoked. $argc contains an integer representing the number of arguments
  550. ; that were passed when the script was invoked. These arrays are extremely
  551. ; useful when running scripts from the command line. When this directive is
  552. ; enabled, registering these variables consumes CPU cycles and memory each time
  553. ; a script is executed. For performance reasons, this feature should be disabled
  554. ; on production servers.
  555. ; Note: This directive is hardcoded to On for the CLI SAPI
  556. ; Default Value: On
  557. ; Development Value: Off
  558. ; Production Value: Off
  559. ; http://php.net/register-argc-argv
  560. register_argc_argv = Off

  561. ; When enabled, the ENV, REQUEST and SERVER variables are created when they're
  562. ; first used (Just In Time) instead of when the script starts. If these
  563. ; variables are not used within a script, having this directive on will result
  564. ; in a performance gain. The PHP directive register_argc_argv must be disabled
  565. ; for this directive to have any affect.
  566. ; http://php.net/auto-globals-jit
  567. auto_globals_jit = On

  568. ; Whether PHP will read the POST data.
  569. ; This option is enabled by default.
  570. ; Most likely, you won't want to disable this option globally. It causes $_POST
  571. ; and $_FILES to always be empty; the only way you will be able to read the
  572. ; POST data will be through the php://input stream wrapper. This can be useful
  573. ; to proxy requests or to process the POST data in a memory efficient fashion.
  574. ; http://php.net/enable-post-data-reading
  575. ;enable_post_data_reading = Off

  576. ; Maximum size of POST data that PHP will accept.
  577. ; Its value may be 0 to disable the limit. It is ignored if POST data reading
  578. ; is disabled through enable_post_data_reading.
  579. ; http://php.net/post-max-size
  580. post_max_size = 8M

  581. ; Automatically add files before PHP document.
  582. ; http://php.net/auto-prepend-file
  583. auto_prepend_file =

  584. ; Automatically add files after PHP document.
  585. ; http://php.net/auto-append-file
  586. auto_append_file =

  587. ; By default, PHP will output a media type using the Content-Type header. To
  588. ; disable this, simply set it to be empty.
  589. ;
  590. ; PHP's built-in default media type is set to text/html.
  591. ; http://php.net/default-mimetype
  592. default_mimetype = "text/html"

  593. ; PHP's default character set is set to UTF-8.
  594. ; http://php.net/default-charset
  595. default_charset = "UTF-8"

  596. ; PHP internal character encoding is set to empty.
  597. ; If empty, default_charset is used.
  598. ; http://php.net/internal-encoding
  599. ;internal_encoding =

  600. ; PHP input character encoding is set to empty.
  601. ; If empty, default_charset is used.
  602. ; http://php.net/input-encoding
  603. ;input_encoding =

  604. ; PHP output character encoding is set to empty.
  605. ; If empty, default_charset is used.
  606. ; See also output_buffer.
  607. ; http://php.net/output-encoding
  608. ;output_encoding =

  609. ;;;;;;;;;;;;;;;;;;;;;;;;;
  610. ; Paths and Directories ;
  611. ;;;;;;;;;;;;;;;;;;;;;;;;;

  612. ; UNIX: "/path1:/path2"
  613. ;include_path = ".:/php/includes"
  614. ;
  615. ; Windows: "\path1;\path2"
  616. ;include_path = ".;c:\php\includes"
  617. ;
  618. ; PHP's default setting for include_path is ".;/path/to/php/pear"
  619. ; http://php.net/include-path

  620. ; The root of the PHP pages, used only if nonempty.
  621. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
  622. ; if you are running php as a CGI under any web server (other than IIS)
  623. ; see documentation for security issues.  The alternate is to use the
  624. ; cgi.force_redirect configuration below
  625. ; http://php.net/doc-root
  626. doc_root =

  627. ; The directory under which PHP opens the script using /~username used only
  628. ; if nonempty.
  629. ; http://php.net/user-dir
  630. user_dir =

  631. ; Directory in which the loadable extensions (modules) reside.
  632. ; http://php.net/extension-dir
  633. ; extension_dir = "./"
  634. ; On windows:
  635. ; extension_dir = "ext"

  636. ; Directory where the temporary files should be placed.
  637. ; Defaults to the system default (see sys_get_temp_dir)
  638. ; sys_temp_dir = "/tmp"

  639. ; Whether or not to enable the dl() function.  The dl() function does NOT work
  640. ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
  641. ; disabled on them.
  642. ; http://php.net/enable-dl
  643. enable_dl = Off

  644. ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
  645. ; most web servers.  Left undefined, PHP turns this on by default.  You can
  646. ; turn it off here AT YOUR OWN RISK
  647. ; **You CAN safely turn this off for IIS, in fact, you MUST.**
  648. ; http://php.net/cgi.force-redirect
  649. ;cgi.force_redirect = 1

  650. ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
  651. ; every request. PHP's default behavior is to disable this feature.
  652. ;cgi.nph = 1

  653. ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
  654. ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
  655. ; will look for to know it is OK to continue execution.  Setting this variable MAY
  656. ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
  657. ; http://php.net/cgi.redirect-status-env
  658. ;cgi.redirect_status_env =

  659. ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
  660. ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
  661. ; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
  662. ; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
  663. ; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
  664. ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
  665. ; http://php.net/cgi.fix-pathinfo
  666. ;cgi.fix_pathinfo=1

  667. ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
  668. ; of the web tree and people will not be able to circumvent .htaccess security.
  669. ; http://php.net/cgi.dicard-path
  670. ;cgi.discard_path=1

  671. ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
  672. ; security tokens of the calling client.  This allows IIS to define the
  673. ; security context that the request runs under.  mod_fastcgi under Apache
  674. ; does not currently support this feature (03/17/2002)
  675. ; Set to 1 if running under IIS.  Default is zero.
  676. ; http://php.net/fastcgi.impersonate
  677. ;fastcgi.impersonate = 1

  678. ; Disable logging through FastCGI connection. PHP's default behavior is to enable
  679. ; this feature.
  680. ;fastcgi.logging = 0

  681. ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
  682. ; use when sending HTTP response code. If set to 0, PHP sends Status: header that
  683. ; is supported by Apache. When this option is set to 1, PHP will send
  684. ; RFC2616 compliant header.
  685. ; Default is zero.
  686. ; http://php.net/cgi.rfc2616-headers
  687. ;cgi.rfc2616_headers = 0

  688. ; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #!
  689. ; (shebang) at the top of the running script. This line might be needed if the
  690. ; script support running both as stand-alone script and via PHP CGI<. PHP in CGI
  691. ; mode skips this line and ignores its content if this directive is turned on.
  692. ; http://php.net/cgi.check-shebang-line
  693. ;cgi.check_shebang_line=1

  694. ;;;;;;;;;;;;;;;;
  695. ; File Uploads ;
  696. ;;;;;;;;;;;;;;;;

  697. ; Whether to allow HTTP file uploads.
  698. ; http://php.net/file-uploads
  699. file_uploads = On

  700. ; Temporary directory for HTTP uploaded files (will use system default if not
  701. ; specified).
  702. ; http://php.net/upload-tmp-dir
  703. ;upload_tmp_dir =

  704. ; Maximum allowed size for uploaded files.
  705. ; http://php.net/upload-max-filesize
  706. upload_max_filesize = 2M

  707. ; Maximum number of files that can be uploaded via a single request
  708. max_file_uploads = 20

  709. ;;;;;;;;;;;;;;;;;;
  710. ; Fopen wrappers ;
  711. ;;;;;;;;;;;;;;;;;;

  712. ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
  713. ; http://php.net/allow-url-fopen
  714. allow_url_fopen = On

  715. ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
  716. ; http://php.net/allow-url-include
  717. allow_url_include = Off

  718. ; Define the anonymous ftp password (your email address). PHP's default setting
  719. ; for this is empty.
  720. ; http://php.net/from
  721. ;from="john@doe.com"

  722. ; Define the User-Agent string. PHP's default setting for this is empty.
  723. ; http://php.net/user-agent
  724. ;user_agent="PHP"

  725. ; Default timeout for socket based streams (seconds)
  726. ; http://php.net/default-socket-timeout
  727. default_socket_timeout = 60

  728. ; If your scripts have to deal with files from Macintosh systems,
  729. ; or you are running on a Mac and need to deal with files from
  730. ; unix or win32 systems, setting this flag will cause PHP to
  731. ; automatically detect the EOL character in those files so that
  732. ; fgets() and file() will work regardless of the source of the file.
  733. ; http://php.net/auto-detect-line-endings
  734. ;auto_detect_line_endings = Off

  735. ;;;;;;;;;;;;;;;;;;;;;;
  736. ; Dynamic Extensions ;
  737. ;;;;;;;;;;;;;;;;;;;;;;

  738. ; If you wish to have an extension loaded automatically, use the following
  739. ; syntax:
  740. ;
  741. ;   extension=modulename
  742. ;
  743. ; For example:
  744. ;
  745. ;   extension=mysqli
  746. ;
  747. ; When the extension library to load is not located in the default extension
  748. ; directory, You may specify an absolute path to the library file:
  749. ;
  750. ;   extension=/path/to/extension/mysqli.so
  751. ;
  752. ; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and
  753. ; 'extension='php_<ext>.dll') is supported for legacy reasons and may be
  754. ; deprecated in a future PHP major version. So, when it is possible, please
  755. ; move to the new ('extension=<ext>) syntax.

  756. ;;;;
  757. ; Note: packaged extension modules are now loaded via the .ini files
  758. ; found in the directory /etc/php.d; these are loaded by default.
  759. ;;;;

  760. ;;;;;;;;;;;;;;;;;;;
  761. ; Module Settings ;
  762. ;;;;;;;;;;;;;;;;;;;

  763. [CLI Server]
  764. ; Whether the CLI web server uses ANSI color coding in its terminal output.
  765. cli_server.color = On

  766. [Date]
  767. ; Defines the default timezone used by the date functions
  768. ; http://php.net/date.timezone
  769. ;date.timezone =

  770. ; http://php.net/date.default-latitude
  771. ;date.default_latitude = 31.7667

  772. ; http://php.net/date.default-longitude
  773. ;date.default_longitude = 35.2333

  774. ; http://php.net/date.sunrise-zenith
  775. ;date.sunrise_zenith = 90.583333

  776. ; http://php.net/date.sunset-zenith
  777. ;date.sunset_zenith = 90.583333

  778. [filter]
  779. ; http://php.net/filter.default
  780. ;filter.default = unsafe_raw

  781. ; http://php.net/filter.default-flags
  782. ;filter.default_flags =

  783. [iconv]
  784. ; Use of this INI entry is deprecated, use global input_encoding instead.
  785. ; If empty, default_charset or input_encoding or iconv.input_encoding is used.
  786. ; The precedence is: default_charset < intput_encoding < iconv.input_encoding
  787. ;iconv.input_encoding =

  788. ; Use of this INI entry is deprecated, use global internal_encoding instead.
  789. ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
  790. ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
  791. ;iconv.internal_encoding =

  792. ; Use of this INI entry is deprecated, use global output_encoding instead.
  793. ; If empty, default_charset or output_encoding or iconv.output_encoding is used.
  794. ; The precedence is: default_charset < output_encoding < iconv.output_encoding
  795. ; To use an output encoding conversion, iconv's output handler must be set
  796. ; otherwise output encoding conversion cannot be performed.
  797. ;iconv.output_encoding =

  798. [imap]
  799. ; rsh/ssh logins are disabled by default. Use this INI entry if you want to
  800. ; enable them. Note that the IMAP library does not filter mailbox names before
  801. ; passing them to rsh/ssh command, thus passing untrusted data to this function
  802. ; with rsh/ssh enabled is insecure.
  803. ;imap.enable_insecure_rsh=0

  804. [intl]
  805. ;intl.default_locale =
  806. ; This directive allows you to produce PHP errors when some error
  807. ; happens within intl functions. The value is the level of the error produced.
  808. ; Default is 0, which does not produce any errors.
  809. ;intl.error_level = E_WARNING
  810. ;intl.use_exceptions = 0

  811. [sqlite3]
  812. ; Directory pointing to SQLite3 extensions
  813. ; http://php.net/sqlite3.extension-dir
  814. ;sqlite3.extension_dir =

  815. ; SQLite defensive mode flag (only available from SQLite 3.26+)
  816. ; When the defensive flag is enabled, language features that allow ordinary
  817. ; SQL to deliberately corrupt the database file are disabled. This forbids
  818. ; writing directly to the schema, shadow tables (eg. FTS data tables), or
  819. ; the sqlite_dbpage virtual table.
  820. ; https://www.sqlite.org/c3ref/c_dbconfig_defensive.html
  821. ; (for older SQLite versions, this flag has no use)
  822. ;sqlite3.defensive = 1

  823. [Pcre]
  824. ;PCRE library backtracking limit.
  825. ; http://php.net/pcre.backtrack-limit
  826. ;pcre.backtrack_limit=100000

  827. ;PCRE library recursion limit.
  828. ;Please note that if you set this value to a high number you may consume all
  829. ;the available process stack and eventually crash PHP (due to reaching the
  830. ;stack size limit imposed by the Operating System).
  831. ; http://php.net/pcre.recursion-limit
  832. ;pcre.recursion_limit=100000

  833. ;Enables or disables JIT compilation of patterns. This requires the PCRE
  834. ;library to be compiled with JIT support.
  835. pcre.jit=0

  836. [Pdo]
  837. ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
  838. ; http://php.net/pdo-odbc.connection-pooling
  839. ;pdo_odbc.connection_pooling=strict

  840. ;pdo_odbc.db2_instance_name

  841. [Pdo_mysql]
  842. ; If mysqlnd is used: Number of cache slots for the internal result set cache
  843. ; http://php.net/pdo_mysql.cache_size
  844. pdo_mysql.cache_size = 2000

  845. ; Default socket name for local MySQL connects.  If empty, uses the built-in
  846. ; MySQL defaults.
  847. ; http://php.net/pdo_mysql.default-socket
  848. pdo_mysql.default_socket=

  849. [Phar]
  850. ; http://php.net/phar.readonly
  851. ;phar.readonly = On

  852. ; http://php.net/phar.require-hash
  853. ;phar.require_hash = On

  854. ;phar.cache_list =

  855. [mail function]
  856. ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  857. ; http://php.net/sendmail-path
  858. sendmail_path = /usr/sbin/sendmail -t -i

  859. ; Force the addition of the specified parameters to be passed as extra parameters
  860. ; to the sendmail binary. These parameters will always replace the value of
  861. ; the 5th parameter to mail().
  862. ;mail.force_extra_parameters =

  863. ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
  864. mail.add_x_header = Off

  865. ; The path to a log file that will log all mail() calls. Log entries include
  866. ; the full path of the script, line number, To address and headers.
  867. ;mail.log =
  868. ; Log mail to syslog (Event Log on Windows).
  869. ;mail.log = syslog

  870. [ODBC]
  871. ; http://php.net/odbc.default-db
  872. ;odbc.default_db    =  Not yet implemented

  873. ; http://php.net/odbc.default-user
  874. ;odbc.default_user  =  Not yet implemented

  875. ; http://php.net/odbc.default-pw
  876. ;odbc.default_pw    =  Not yet implemented

  877. ; Controls the ODBC cursor model.
  878. ; Default: SQL_CURSOR_STATIC (default).
  879. ;odbc.default_cursortype

  880. ; Allow or prevent persistent links.
  881. ; http://php.net/odbc.allow-persistent
  882. odbc.allow_persistent = On

  883. ; Check that a connection is still valid before reuse.
  884. ; http://php.net/odbc.check-persistent
  885. odbc.check_persistent = On

  886. ; Maximum number of persistent links.  -1 means no limit.
  887. ; http://php.net/odbc.max-persistent
  888. odbc.max_persistent = -1

  889. ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
  890. ; http://php.net/odbc.max-links
  891. odbc.max_links = -1

  892. ; Handling of LONG fields.  Returns number of bytes to variables.  0 means
  893. ; passthru.
  894. ; http://php.net/odbc.defaultlrl
  895. odbc.defaultlrl = 4096

  896. ; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
  897. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
  898. ; of odbc.defaultlrl and odbc.defaultbinmode
  899. ; http://php.net/odbc.defaultbinmode
  900. odbc.defaultbinmode = 1

  901. ;birdstep.max_links = -1

  902. [Interbase]
  903. ; Allow or prevent persistent links.
  904. ibase.allow_persistent = 1

  905. ; Maximum number of persistent links.  -1 means no limit.
  906. ibase.max_persistent = -1

  907. ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
  908. ibase.max_links = -1

  909. ; Default database name for ibase_connect().
  910. ;ibase.default_db =

  911. ; Default username for ibase_connect().
  912. ;ibase.default_user =

  913. ; Default password for ibase_connect().
  914. ;ibase.default_password =

  915. ; Default charset for ibase_connect().
  916. ;ibase.default_charset =

  917. ; Default timestamp format.
  918. ibase.timestampformat = "%Y-%m-%d %H:%M:%S"

  919. ; Default date format.
  920. ibase.dateformat = "%Y-%m-%d"

  921. ; Default time format.
  922. ibase.timeformat = "%H:%M:%S"

  923. [MySQLi]

  924. ; Maximum number of persistent links.  -1 means no limit.
  925. ; http://php.net/mysqli.max-persistent
  926. mysqli.max_persistent = -1

  927. ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
  928. ; http://php.net/mysqli.allow_local_infile
  929. ;mysqli.allow_local_infile = On

  930. ; Allow or prevent persistent links.
  931. ; http://php.net/mysqli.allow-persistent
  932. mysqli.allow_persistent = On

  933. ; Maximum number of links.  -1 means no limit.
  934. ; http://php.net/mysqli.max-links
  935. mysqli.max_links = -1

  936. ; If mysqlnd is used: Number of cache slots for the internal result set cache
  937. ; http://php.net/mysqli.cache_size
  938. mysqli.cache_size = 2000

  939. ; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
  940. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
  941. ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
  942. ; at MYSQL_PORT.
  943. ; http://php.net/mysqli.default-port
  944. mysqli.default_port = 3306

  945. ; Default socket name for local MySQL connects.  If empty, uses the built-in
  946. ; MySQL defaults.
  947. ; http://php.net/mysqli.default-socket
  948. mysqli.default_socket =

  949. ; Default host for mysql_connect() (doesn't apply in safe mode).
  950. ; http://php.net/mysqli.default-host
  951. mysqli.default_host =

  952. ; Default user for mysql_connect() (doesn't apply in safe mode).
  953. ; http://php.net/mysqli.default-user
  954. mysqli.default_user =

  955. ; Default password for mysqli_connect() (doesn't apply in safe mode).
  956. ; Note that this is generally a *bad* idea to store passwords in this file.
  957. ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
  958. ; and reveal this password!  And of course, any users with read access to this
  959. ; file will be able to reveal the password as well.
  960. ; http://php.net/mysqli.default-pw
  961. mysqli.default_pw =

  962. ; Allow or prevent reconnect
  963. mysqli.reconnect = Off

  964. [mysqlnd]
  965. ; Enable / Disable collection of general statistics by mysqlnd which can be
  966. ; used to tune and monitor MySQL operations.
  967. ; http://php.net/mysqlnd.collect_statistics
  968. mysqlnd.collect_statistics = On

  969. ; Enable / Disable collection of memory usage statistics by mysqlnd which can be
  970. ; used to tune and monitor MySQL operations.
  971. ; http://php.net/mysqlnd.collect_memory_statistics
  972. mysqlnd.collect_memory_statistics = Off

  973. ; Records communication from all extensions using mysqlnd to the specified log
  974. ; file.
  975. ; http://php.net/mysqlnd.debug
  976. ;mysqlnd.debug =

  977. ; Defines which queries will be logged.
  978. ; http://php.net/mysqlnd.log_mask
  979. ;mysqlnd.log_mask = 0

  980. ; Default size of the mysqlnd memory pool, which is used by result sets.
  981. ; http://php.net/mysqlnd.mempool_default_size
  982. ;mysqlnd.mempool_default_size = 16000

  983. ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
  984. ; http://php.net/mysqlnd.net_cmd_buffer_size
  985. ;mysqlnd.net_cmd_buffer_size = 2048

  986. ; Size of a pre-allocated buffer used for reading data sent by the server in
  987. ; bytes.
  988. ; http://php.net/mysqlnd.net_read_buffer_size
  989. ;mysqlnd.net_read_buffer_size = 32768

  990. ; Timeout for network requests in seconds.
  991. ; http://php.net/mysqlnd.net_read_timeout
  992. ;mysqlnd.net_read_timeout = 31536000

  993. ; SHA-256 Authentication Plugin related. File with the MySQL server public RSA
  994. ; key.
  995. ; http://php.net/mysqlnd.sha256_server_public_key
  996. ;mysqlnd.sha256_server_public_key =

  997. [PostgreSQL]
  998. ; Allow or prevent persistent links.
  999. ; http://php.net/pgsql.allow-persistent
  1000. pgsql.allow_persistent = On

  1001. ; Detect broken persistent links always with pg_pconnect().
  1002. ; Auto reset feature requires a little overheads.
  1003. ; http://php.net/pgsql.auto-reset-persistent
  1004. pgsql.auto_reset_persistent = Off

  1005. ; Maximum number of persistent links.  -1 means no limit.
  1006. ; http://php.net/pgsql.max-persistent
  1007. pgsql.max_persistent = -1

  1008. ; Maximum number of links (persistent+non persistent).  -1 means no limit.
  1009. ; http://php.net/pgsql.max-links
  1010. pgsql.max_links = -1

  1011. ; Ignore PostgreSQL backends Notice message or not.
  1012. ; Notice message logging require a little overheads.
  1013. ; http://php.net/pgsql.ignore-notice
  1014. pgsql.ignore_notice = 0

  1015. ; Log PostgreSQL backends Notice message or not.
  1016. ; Unless pgsql.ignore_notice=0, module cannot log notice message.
  1017. ; http://php.net/pgsql.log-notice
  1018. pgsql.log_notice = 0

  1019. [bcmath]
  1020. ; Number of decimal digits for all bcmath functions.
  1021. ; http://php.net/bcmath.scale
  1022. bcmath.scale = 0

  1023. [browscap]
  1024. ; http://php.net/browscap
  1025. ;browscap = extra/browscap.ini

  1026. [Session]
  1027. ; Handler used to store/retrieve data.
  1028. ; http://php.net/session.save-handler
  1029. session.save_handler = files

  1030. ; Argument passed to save_handler.  In the case of files, this is the path
  1031. ; where data files are stored. Note: Windows users have to change this
  1032. ; variable in order to use PHP's session functions.
  1033. ;
  1034. ; The path can be defined as:
  1035. ;
  1036. ;     session.save_path = "N;/path"
  1037. ;
  1038. ; where N is an integer.  Instead of storing all the session files in
  1039. ; /path, what this will do is use subdirectories N-levels deep, and
  1040. ; store the session data in those directories.  This is useful if
  1041. ; your OS has problems with many files in one directory, and is
  1042. ; a more efficient layout for servers that handle many sessions.
  1043. ;
  1044. ; NOTE 1: PHP will not create this directory structure automatically.
  1045. ;         You can use the script in the ext/session dir for that purpose.
  1046. ; NOTE 2: See the section on garbage collection below if you choose to
  1047. ;         use subdirectories for session storage
  1048. ;
  1049. ; The file storage module creates files using mode 600 by default.
  1050. ; You can change that by using
  1051. ;
  1052. ;     session.save_path = "N;MODE;/path"
  1053. ;
  1054. ; where MODE is the octal representation of the mode. Note that this
  1055. ; does not overwrite the process's umask.
  1056. ; http://php.net/session.save-path

  1057. ; RPM note : session directory must be owned by process owner
  1058. ; for mod_php, see /etc/httpd/conf.d/php.conf
  1059. ; for php-fpm, see /etc/php-fpm.d/*conf
  1060. ;session.save_path = "/tmp"

  1061. ; Whether to use strict session mode.
  1062. ; Strict session mode does not accept uninitialized session ID and regenerate
  1063. ; session ID if browser sends uninitialized session ID. Strict mode protects
  1064. ; applications from session fixation via session adoption vulnerability. It is
  1065. ; disabled by default for maximum compatibility, but enabling it is encouraged.
  1066. ; https://wiki.php.net/rfc/strict_sessions
  1067. session.use_strict_mode = 0

  1068. ; Whether to use cookies.
  1069. ; http://php.net/session.use-cookies
  1070. session.use_cookies = 1

  1071. ; http://php.net/session.cookie-secure
  1072. ;session.cookie_secure =

  1073. ; This option forces PHP to fetch and use a cookie for storing and maintaining
  1074. ; the session id. We encourage this operation as it's very helpful in combating
  1075. ; session hijacking when not specifying and managing your own session id. It is
  1076. ; not the be-all and end-all of session hijacking defense, but it's a good start.
  1077. ; http://php.net/session.use-only-cookies
  1078. session.use_only_cookies = 1

  1079. ; Name of the session (used as cookie name).
  1080. ; http://php.net/session.name
  1081. session.name = PHPSESSID

  1082. ; Initialize session on request startup.
  1083. ; http://php.net/session.auto-start
  1084. session.auto_start = 0

  1085. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  1086. ; http://php.net/session.cookie-lifetime
  1087. session.cookie_lifetime = 0

  1088. ; The path for which the cookie is valid.
  1089. ; http://php.net/session.cookie-path
  1090. session.cookie_path = /

  1091. ; The domain for which the cookie is valid.
  1092. ; http://php.net/session.cookie-domain
  1093. session.cookie_domain =

  1094. ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
  1095. ; http://php.net/session.cookie-httponly
  1096. session.cookie_httponly =

  1097. ; Handler used to serialize data.  php is the standard serializer of PHP.
  1098. ; http://php.net/session.serialize-handler
  1099. session.serialize_handler = php

  1100. ; Defines the probability that the 'garbage collection' process is started
  1101. ; on every session initialization. The probability is calculated by using
  1102. ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
  1103. ; and gc_divisor is the denominator in the equation. Setting this value to 1
  1104. ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
  1105. ; the gc will run on any give request.
  1106. ; Default Value: 1
  1107. ; Development Value: 1
  1108. ; Production Value: 1
  1109. ; http://php.net/session.gc-probability
  1110. session.gc_probability = 1

  1111. ; Defines the probability that the 'garbage collection' process is started on every
  1112. ; session initialization. The probability is calculated by using the following equation:
  1113. ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
  1114. ; session.gc_divisor is the denominator in the equation. Setting this value to 1
  1115. ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
  1116. ; the gc will run on any give request. Increasing this value to 1000 will give you
  1117. ; a 0.1% chance the gc will run on any give request. For high volume production servers,
  1118. ; this is a more efficient approach.
  1119. ; Default Value: 100
  1120. ; Development Value: 1000
  1121. ; Production Value: 1000
  1122. ; http://php.net/session.gc-divisor
  1123. session.gc_divisor = 1000

  1124. ; After this number of seconds, stored data will be seen as 'garbage' and
  1125. ; cleaned up by the garbage collection process.
  1126. ; http://php.net/session.gc-maxlifetime
  1127. session.gc_maxlifetime = 1440

  1128. ; NOTE: If you are using the subdirectory option for storing session files
  1129. ;       (see session.save_path above), then garbage collection does *not*
  1130. ;       happen automatically.  You will need to do your own garbage
  1131. ;       collection through a shell script, cron entry, or some other method.
  1132. ;       For example, the following script would is the equivalent of
  1133. ;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
  1134. ;          find /path/to/sessions -cmin +24 -type f | xargs rm

  1135. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  1136. ; HTTP_REFERER has to contain this substring for the session to be
  1137. ; considered as valid.
  1138. ; http://php.net/session.referer-check
  1139. session.referer_check =

  1140. ; Set to {nocache,private,public,} to determine HTTP caching aspects
  1141. ; or leave this empty to avoid sending anti-caching headers.
  1142. ; http://php.net/session.cache-limiter
  1143. session.cache_limiter = nocache

  1144. ; Document expires after n minutes.
  1145. ; http://php.net/session.cache-expire
  1146. session.cache_expire = 180

  1147. ; trans sid support is disabled by default.
  1148. ; Use of trans sid may risk your users' security.
  1149. ; Use this option with caution.
  1150. ; - User may send URL contains active session ID
  1151. ;   to other person via. email/irc/etc.
  1152. ; - URL that contains active session ID may be stored
  1153. ;   in publicly accessible computer.
  1154. ; - User may access your site with the same session ID
  1155. ;   always using URL stored in browser's history or bookmarks.
  1156. ; http://php.net/session.use-trans-sid
  1157. session.use_trans_sid = 0

  1158. ; Set session ID character length. This value could be between 22 to 256.
  1159. ; Shorter length than default is supported only for compatibility reason.
  1160. ; Users should use 32 or more chars.
  1161. ; http://php.net/session.sid-length
  1162. ; Default Value: 32
  1163. ; Development Value: 26
  1164. ; Production Value: 26
  1165. session.sid_length = 26

  1166. ; The URL rewriter will look for URLs in a defined set of HTML tags.
  1167. ; <form> is special; if you include them here, the rewriter will
  1168. ; add a hidden <input> field with the info which is otherwise appended
  1169. ; to URLs. <form> tag's action attribute URL will not be modified
  1170. ; unless it is specified.
  1171. ; Note that all valid entries require a "=", even if no value follows.
  1172. ; Default Value: "a=href,area=href,frame=src,form="
  1173. ; Development Value: "a=href,area=href,frame=src,form="
  1174. ; Production Value: "a=href,area=href,frame=src,form="
  1175. ; http://php.net/url-rewriter.tags
  1176. session.trans_sid_tags = "a=href,area=href,frame=src,form="

  1177. ; URL rewriter does not rewrite absolute URLs by default.
  1178. ; To enable rewrites for absolute pathes, target hosts must be specified
  1179. ; at RUNTIME. i.e. use ini_set()
  1180. ; <form> tags is special. PHP will check action attribute's URL regardless
  1181. ; of session.trans_sid_tags setting.
  1182. ; If no host is defined, HTTP_HOST will be used for allowed host.
  1183. ; Example value: php.net,www.php.net,wiki.php.net
  1184. ; Use "," for multiple hosts. No spaces are allowed.
  1185. ; Default Value: ""
  1186. ; Development Value: ""
  1187. ; Production Value: ""
  1188. ;session.trans_sid_hosts=""

  1189. ; Define how many bits are stored in each character when converting
  1190. ; the binary hash data to something readable.
  1191. ; Possible values:
  1192. ;   4  (4 bits: 0-9, a-f)
  1193. ;   5  (5 bits: 0-9, a-v)
  1194. ;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
  1195. ; Default Value: 4
  1196. ; Development Value: 5
  1197. ; Production Value: 5
  1198. ; http://php.net/session.hash-bits-per-character
  1199. session.sid_bits_per_character = 5

  1200. ; Enable upload progress tracking in $_SESSION
  1201. ; Default Value: On
  1202. ; Development Value: On
  1203. ; Production Value: On
  1204. ; http://php.net/session.upload-progress.enabled
  1205. ;session.upload_progress.enabled = On

  1206. ; Cleanup the progress information as soon as all POST data has been read
  1207. ; (i.e. upload completed).
  1208. ; Default Value: On
  1209. ; Development Value: On
  1210. ; Production Value: On
  1211. ; http://php.net/session.upload-progress.cleanup
  1212. ;session.upload_progress.cleanup = On

  1213. ; A prefix used for the upload progress key in $_SESSION
  1214. ; Default Value: "upload_progress_"
  1215. ; Development Value: "upload_progress_"
  1216. ; Production Value: "upload_progress_"
  1217. ; http://php.net/session.upload-progress.prefix
  1218. ;session.upload_progress.prefix = "upload_progress_"

  1219. ; The index name (concatenated with the prefix) in $_SESSION
  1220. ; containing the upload progress information
  1221. ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
  1222. ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
  1223. ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
  1224. ; http://php.net/session.upload-progress.name
  1225. ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"

  1226. ; How frequently the upload progress should be updated.
  1227. ; Given either in percentages (per-file), or in bytes
  1228. ; Default Value: "1%"
  1229. ; Development Value: "1%"
  1230. ; Production Value: "1%"
  1231. ; http://php.net/session.upload-progress.freq
  1232. ;session.upload_progress.freq =  "1%"

  1233. ; The minimum delay between updates, in seconds
  1234. ; Default Value: 1
  1235. ; Development Value: 1
  1236. ; Production Value: 1
  1237. ; http://php.net/session.upload-progress.min-freq
  1238. ;session.upload_progress.min_freq = "1"

  1239. ; Only write session data when session data is changed. Enabled by default.
  1240. ; http://php.net/session.lazy-write
  1241. ;session.lazy_write = On

  1242. [Assertion]
  1243. ; Switch whether to compile assertions at all (to have no overhead at run-time)
  1244. ; -1: Do not compile at all
  1245. ;  0: Jump over assertion at run-time
  1246. ;  1: Execute assertions
  1247. ; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1)
  1248. ; Default Value: 1
  1249. ; Development Value: 1
  1250. ; Production Value: -1
  1251. ; http://php.net/zend.assertions
  1252. zend.assertions = -1

  1253. ; Assert(expr); active by default.
  1254. ; http://php.net/assert.active
  1255. ;assert.active = On

  1256. ; Throw an AssertationException on failed assertions
  1257. ; http://php.net/assert.exception
  1258. ;assert.exception = On

  1259. ; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active)
  1260. ; http://php.net/assert.warning
  1261. ;assert.warning = On

  1262. ; Don't bail out by default.
  1263. ; http://php.net/assert.bail
  1264. ;assert.bail = Off

  1265. ; User-function to be called if an assertion fails.
  1266. ; http://php.net/assert.callback
  1267. ;assert.callback = 0

  1268. ; Eval the expression with current error_reporting().  Set to true if you want
  1269. ; error_reporting(0) around the eval().
  1270. ; http://php.net/assert.quiet-eval
  1271. ;assert.quiet_eval = 0

  1272. [mbstring]
  1273. ; language for internal character representation.
  1274. ; This affects mb_send_mail() and mbstring.detect_order.
  1275. ; http://php.net/mbstring.language
  1276. ;mbstring.language = Japanese

  1277. ; Use of this INI entry is deprecated, use global internal_encoding instead.
  1278. ; internal/script encoding.
  1279. ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
  1280. ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
  1281. ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
  1282. ;mbstring.internal_encoding =

  1283. ; Use of this INI entry is deprecated, use global input_encoding instead.
  1284. ; http input encoding.
  1285. ; mbstring.encoding_traslation = On is needed to use this setting.
  1286. ; If empty, default_charset or input_encoding or mbstring.input is used.
  1287. ; The precedence is: default_charset < intput_encoding < mbsting.http_input
  1288. ; http://php.net/mbstring.http-input
  1289. ;mbstring.http_input =

  1290. ; Use of this INI entry is deprecated, use global output_encoding instead.
  1291. ; http output encoding.
  1292. ; mb_output_handler must be registered as output buffer to function.
  1293. ; If empty, default_charset or output_encoding or mbstring.http_output is used.
  1294. ; The precedence is: default_charset < output_encoding < mbstring.http_output
  1295. ; To use an output encoding conversion, mbstring's output handler must be set
  1296. ; otherwise output encoding conversion cannot be performed.
  1297. ; http://php.net/mbstring.http-output
  1298. ;mbstring.http_output =

  1299. ; enable automatic encoding translation according to
  1300. ; mbstring.internal_encoding setting. Input chars are
  1301. ; converted to internal encoding by setting this to On.
  1302. ; Note: Do _not_ use automatic encoding translation for
  1303. ;       portable libs/applications.
  1304. ; http://php.net/mbstring.encoding-translation
  1305. ;mbstring.encoding_translation = Off

  1306. ; automatic encoding detection order.
  1307. ; "auto" detect order is changed according to mbstring.language
  1308. ; http://php.net/mbstring.detect-order
  1309. ;mbstring.detect_order = auto

  1310. ; substitute_character used when character cannot be converted
  1311. ; one from another
  1312. ; http://php.net/mbstring.substitute-character
  1313. ;mbstring.substitute_character = none

  1314. ; overload(replace) single byte functions by mbstring functions.
  1315. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
  1316. ; etc. Possible values are 0,1,2,4 or combination of them.
  1317. ; For example, 7 for overload everything.
  1318. ; 0: No overload
  1319. ; 1: Overload mail() function
  1320. ; 2: Overload str*() functions
  1321. ; 4: Overload ereg*() functions
  1322. ; http://php.net/mbstring.func-overload
  1323. ;mbstring.func_overload = 0

  1324. ; enable strict encoding detection.
  1325. ; Default: Off
  1326. ;mbstring.strict_detection = On

  1327. ; This directive specifies the regex pattern of content types for which mb_output_handler()
  1328. ; is activated.
  1329. ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
  1330. ;mbstring.http_output_conv_mimetype=

  1331. [gd]
  1332. ; Tell the jpeg decode to ignore warnings and try to create
  1333. ; a gd image. The warning will then be displayed as notices
  1334. ; disabled by default
  1335. ; http://php.net/gd.jpeg-ignore-warning
  1336. ;gd.jpeg_ignore_warning = 1

  1337. [exif]
  1338. ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
  1339. ; With mbstring support this will automatically be converted into the encoding
  1340. ; given by corresponding encode setting. When empty mbstring.internal_encoding
  1341. ; is used. For the decode settings you can distinguish between motorola and
  1342. ; intel byte order. A decode setting cannot be empty.
  1343. ; http://php.net/exif.encode-unicode
  1344. ;exif.encode_unicode = ISO-8859-15

  1345. ; http://php.net/exif.decode-unicode-motorola
  1346. ;exif.decode_unicode_motorola = UCS-2BE

  1347. ; http://php.net/exif.decode-unicode-intel
  1348. ;exif.decode_unicode_intel    = UCS-2LE

  1349. ; http://php.net/exif.encode-jis
  1350. ;exif.encode_jis =

  1351. ; http://php.net/exif.decode-jis-motorola
  1352. ;exif.decode_jis_motorola = JIS

  1353. ; http://php.net/exif.decode-jis-intel
  1354. ;exif.decode_jis_intel    = JIS

  1355. [Tidy]
  1356. ; The path to a default tidy configuration file to use when using tidy
  1357. ; http://php.net/tidy.default-config
  1358. ;tidy.default_config = /usr/local/lib/php/default.tcfg

  1359. ; Should tidy clean and repair output automatically?
  1360. ; WARNING: Do not use this option if you are generating non-html content
  1361. ; such as dynamic images
  1362. ; http://php.net/tidy.clean-output
  1363. tidy.clean_output = Off

  1364. [soap]
  1365. ; Enables or disables WSDL caching feature.
  1366. ; http://php.net/soap.wsdl-cache-enabled
  1367. soap.wsdl_cache_enabled=1

  1368. ; Sets the directory name where SOAP extension will put cache files.
  1369. ; http://php.net/soap.wsdl-cache-dir

  1370. ; RPM note : cache directory must be owned by process owner
  1371. ; for mod_php, see /etc/httpd/conf.d/php.conf
  1372. ; for php-fpm, see /etc/php-fpm.d/*conf
  1373. soap.wsdl_cache_dir="/tmp"

  1374. ; (time to live) Sets the number of second while cached file will be used
  1375. ; instead of original one.
  1376. ; http://php.net/soap.wsdl-cache-ttl
  1377. soap.wsdl_cache_ttl=86400

  1378. ; Sets the size of the cache limit. (Max. number of WSDL files to cache)
  1379. soap.wsdl_cache_limit = 5

  1380. [sysvshm]
  1381. ; A default size of the shared memory segment
  1382. ;sysvshm.init_mem = 10000

  1383. [ldap]
  1384. ; Sets the maximum number of open links or -1 for unlimited.
  1385. ldap.max_links = -1

  1386. [dba]
  1387. ;dba.default_handler=

  1388. [curl]
  1389. ; A default value for the CURLOPT_CAINFO option. This is required to be an
  1390. ; absolute path.
  1391. ;curl.cainfo =

  1392. [openssl]
  1393. ; The location of a Certificate Authority (CA) file on the local filesystem
  1394. ; to use when verifying the identity of SSL/TLS peers. Most users should
  1395. ; not specify a value for this directive as PHP will attempt to use the
  1396. ; OS-managed cert stores in its absence. If specified, this value may still
  1397. ; be overridden on a per-stream basis via the "cafile" SSL stream context
  1398. ; option.
  1399. ;openssl.cafile=

  1400. ; If openssl.cafile is not specified or if the CA file is not found, the
  1401. ; directory pointed to by openssl.capath is searched for a suitable
  1402. ; certificate. This value must be a correctly hashed certificate directory.
  1403. ; Most users should not specify a value for this directive as PHP will
  1404. ; attempt to use the OS-managed cert stores in its absence. If specified,
  1405. ; this value may still be overridden on a per-stream basis via the "capath"
  1406. ; SSL stream context option.
  1407. ;openssl.capath=

  1408. ; Local Variables:
  1409. ; tab-width: 4
  1410. ; End:
复制代码
/etc/opt/remi/php72/php-fpm.conf
  1. ;;;;;;;;;;;;;;;;;;;;;
  2. ; FPM Configuration ;
  3. ;;;;;;;;;;;;;;;;;;;;;

  4. ; All relative paths in this configuration file are relative to PHP's install
  5. ; prefix.

  6. ; Include one or more files. If glob(3) exists, it is used to include a bunch of
  7. ; files from a glob(3) pattern. This directive can be used everywhere in the
  8. ; file.
  9. include=/etc/opt/remi/php72/php-fpm.d/*.conf

  10. ;;;;;;;;;;;;;;;;;;
  11. ; Global Options ;
  12. ;;;;;;;;;;;;;;;;;;

  13. [global]
  14. ; Pid file
  15. ; Default Value: none
  16. pid = /var/opt/remi/php72/run/php-fpm/php-fpm.pid

  17. ; Error log file
  18. ; If it's set to "syslog", log is sent to syslogd instead of being written
  19. ; in a local file.
  20. ; Default Value: /var/opt/remi/php72/log/php-fpm.log
  21. error_log = /var/opt/remi/php72/log/php-fpm/error.log

  22. ; syslog_facility is used to specify what type of program is logging the
  23. ; message. This lets syslogd specify that messages from different facilities
  24. ; will be handled differently.
  25. ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
  26. ; Default Value: daemon
  27. ;syslog.facility = daemon

  28. ; syslog_ident is prepended to every message. If you have multiple FPM
  29. ; instances running on the same server, you can change the default value
  30. ; which must suit common needs.
  31. ; Default Value: php-fpm
  32. ;syslog.ident = php-fpm

  33. ; Log level
  34. ; Possible Values: alert, error, warning, notice, debug
  35. ; Default Value: notice
  36. ;log_level = notice

  37. ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
  38. ; interval set by emergency_restart_interval then FPM will restart. A value
  39. ; of '0' means 'Off'.
  40. ; Default Value: 0
  41. ;emergency_restart_threshold = 0

  42. ; Interval of time used by emergency_restart_interval to determine when
  43. ; a graceful restart will be initiated.  This can be useful to work around
  44. ; accidental corruptions in an accelerator's shared memory.
  45. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  46. ; Default Unit: seconds
  47. ; Default Value: 0
  48. ;emergency_restart_interval = 0

  49. ; Time limit for child processes to wait for a reaction on signals from master.
  50. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  51. ; Default Unit: seconds
  52. ; Default Value: 0
  53. ;process_control_timeout = 0

  54. ; The maximum number of processes FPM will fork. This has been designed to control
  55. ; the global number of processes when using dynamic PM within a lot of pools.
  56. ; Use it with caution.
  57. ; Note: A value of 0 indicates no limit
  58. ; Default Value: 0
  59. ;process.max = 128

  60. ; Specify the nice(2) priority to apply to the master process (only if set)
  61. ; The value can vary from -19 (highest priority) to 20 (lowest priority)
  62. ; Note: - It will only work if the FPM master process is launched as root
  63. ;       - The pool process will inherit the master process priority
  64. ;         unless specified otherwise
  65. ; Default Value: no set
  66. ;process.priority = -19

  67. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  68. ; Default Value: yes
  69. daemonize = yes

  70. ; Set open file descriptor rlimit for the master process.
  71. ; Default Value: system defined value
  72. ;rlimit_files = 1024

  73. ; Set max core size rlimit for the master process.
  74. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  75. ; Default Value: system defined value
  76. ;rlimit_core = 0

  77. ; Specify the event mechanism FPM will use. The following is available:
  78. ; - select     (any POSIX os)
  79. ; - poll       (any POSIX os)
  80. ; - epoll      (linux >= 2.5.44)
  81. ; Default Value: not set (auto detection)
  82. ;events.mechanism = epoll

  83. ; When FPM is built with systemd integration, specify the interval,
  84. ; in seconds, between health report notification to systemd.
  85. ; Set to 0 to disable.
  86. ; Available Units: s(econds), m(inutes), h(ours)
  87. ; Default Unit: seconds
  88. ; Default value: 10
  89. ;systemd_interval = 10

  90. ;;;;;;;;;;;;;;;;;;;;
  91. ; Pool Definitions ;
  92. ;;;;;;;;;;;;;;;;;;;;

  93. ; Multiple pools of child processes may be started with different listening
  94. ; ports and different management options.  The name of the pool will be
  95. ; used in logs and stats. There is no limitation on the number of pools which
  96. ; FPM can handle. Your system will tell you anyway :)

  97. ; See /etc/opt/remi/php72/php-fpm.d/*.conf

复制代码

/etc/opt/remi/php72/php-fpm.d/www.conf

  1. ; Start a new pool named 'www'.
  2. ; the variable $pool can we 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 @php_fpm_prefix@) 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. ; RPM: apache user chosen to provide access to the same directories as httpd
  22. user = nginx
  23. ; RPM: Keep a group allowed to write in log dir.
  24. group = nginx

  25. ; The address on which to accept FastCGI requests.
  26. ; Valid syntaxes are:
  27. ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
  28. ;                            a specific port;
  29. ;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
  30. ;                            a specific port;
  31. ;   'port'                 - to listen on a TCP socket to all addresses
  32. ;                            (IPv6 and IPv4-mapped) on a specific port;
  33. ;   '/path/to/unix/socket' - to listen on a unix socket.
  34. ; Note: This value is mandatory.
  35. listen = 127.0.0.1:9000

  36. ; Set listen(2) backlog.
  37. ; Default Value: 511
  38. ;listen.backlog = 511

  39. ; Set permissions for unix socket, if one is used. In Linux, read/write
  40. ; permissions must be set in order to allow connections from a web server.
  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 = apache
  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 differrent 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. ;  ondemand - no children are created at startup. Children will be forked when
  88. ;             new requests will connect. The following parameter are used:
  89. ;             pm.max_children           - the maximum number of children that
  90. ;                                         can be alive at the same time.
  91. ;             pm.process_idle_timeout   - The number of seconds after which
  92. ;                                         an idle process will be killed.
  93. ; Note: This value is mandatory.
  94. pm = dynamic

  95. ; The number of child processes to be created when pm is set to 'static' and the
  96. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  97. ; This value sets the limit on the number of simultaneous requests that will be
  98. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  99. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  100. ; CGI. The below defaults are based on a server without much resources. Don't
  101. ; forget to tweak pm.* to fit your needs.
  102. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  103. ; Note: This value is mandatory.
  104. pm.max_children = 50

  105. ; The number of child processes created on startup.
  106. ; Note: Used only when pm is set to 'dynamic'
  107. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  108. pm.start_servers = 5

  109. ; The desired minimum number of idle server processes.
  110. ; Note: Used only when pm is set to 'dynamic'
  111. ; Note: Mandatory when pm is set to 'dynamic'
  112. pm.min_spare_servers = 5

  113. ; The desired maximum number of idle server processes.
  114. ; Note: Used only when pm is set to 'dynamic'
  115. ; Note: Mandatory when pm is set to 'dynamic'
  116. pm.max_spare_servers = 35

  117. ; The number of seconds after which an idle process will be killed.
  118. ; Note: Used only when pm is set to 'ondemand'
  119. ; Default Value: 10s
  120. ;pm.process_idle_timeout = 10s;

  121. ; The number of requests each child process should execute before respawning.
  122. ; This can be useful to work around memory leaks in 3rd party libraries. For
  123. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  124. ; Default Value: 0
  125. ;pm.max_requests = 500

  126. ; The URI to view the FPM status page. If this value is not set, no URI will be
  127. ; recognized as a status page. It shows the following informations:
  128. ;   pool                 - the name of the pool;
  129. ;   process manager      - static, dynamic or ondemand;
  130. ;   start time           - the date and time FPM has started;
  131. ;   start since          - number of seconds since FPM has started;
  132. ;   accepted conn        - the number of request accepted by the pool;
  133. ;   listen queue         - the number of request in the queue of pending
  134. ;                          connections (see backlog in listen(2));
  135. ;   max listen queue     - the maximum number of requests in the queue
  136. ;                          of pending connections since FPM has started;
  137. ;   listen queue len     - the size of the socket queue of pending connections;
  138. ;   idle processes       - the number of idle processes;
  139. ;   active processes     - the number of active processes;
  140. ;   total processes      - the number of idle + active processes;
  141. ;   max active processes - the maximum number of active processes since FPM
  142. ;                          has started;
  143. ;   max children reached - number of times, the process limit has been reached,
  144. ;                          when pm tries to start more children (works only for
  145. ;                          pm 'dynamic' and 'ondemand');
  146. ; Value are updated in real time.
  147. ; Example output:
  148. ;   pool:                 www
  149. ;   process manager:      static
  150. ;   start time:           01/Jul/2011:17:53:49 +0200
  151. ;   start since:          62636
  152. ;   accepted conn:        190460
  153. ;   listen queue:         0
  154. ;   max listen queue:     1
  155. ;   listen queue len:     42
  156. ;   idle processes:       4
  157. ;   active processes:     11
  158. ;   total processes:      15
  159. ;   max active processes: 12
  160. ;   max children reached: 0
  161. ;
  162. ; By default the status page output is formatted as text/plain. Passing either
  163. ; 'html', 'xml' or 'json' in the query string will return the corresponding
  164. ; output syntax. Example:
  165. ;   http://www.foo.bar/status
  166. ;   http://www.foo.bar/status?json
  167. ;   http://www.foo.bar/status?html
  168. ;   http://www.foo.bar/status?xml
  169. ;
  170. ; By default the status page only outputs short status. Passing 'full' in the
  171. ; query string will also return status for each pool process.
  172. ; Example:
  173. ;   http://www.foo.bar/status?full
  174. ;   http://www.foo.bar/status?json&full
  175. ;   http://www.foo.bar/status?html&full
  176. ;   http://www.foo.bar/status?xml&full
  177. ; The Full status returns for each process:
  178. ;   pid                  - the PID of the process;
  179. ;   state                - the state of the process (Idle, Running, ...);
  180. ;   start time           - the date and time the process has started;
  181. ;   start since          - the number of seconds since the process has started;
  182. ;   requests             - the number of requests the process has served;
  183. ;   request duration     - the duration in 碌s of the requests;
  184. ;   request method       - the request method (GET, POST, ...);
  185. ;   request URI          - the request URI with the query string;
  186. ;   content length       - the content length of the request (only with POST);
  187. ;   user                 - the user (PHP_AUTH_USER) (or '-' if not set);
  188. ;   script               - the main script called (or '-' if not set);
  189. ;   last request cpu     - the %cpu the last request consumed
  190. ;                          it's always 0 if the process is not in Idle state
  191. ;                          because CPU calculation is done when the request
  192. ;                          processing has terminated;
  193. ;   last request memory  - the max amount of memory the last request consumed
  194. ;                          it's always 0 if the process is not in Idle state
  195. ;                          because memory calculation is done when the request
  196. ;                          processing has terminated;
  197. ; If the process is in Idle state, then informations are related to the
  198. ; last request the process has served. Otherwise informations are related to
  199. ; the current request being served.
  200. ; Example output:
  201. ;   ************************
  202. ;   pid:                  31330
  203. ;   state:                Running
  204. ;   start time:           01/Jul/2011:17:53:49 +0200
  205. ;   start since:          63087
  206. ;   requests:             12808
  207. ;   request duration:     1250261
  208. ;   request method:       GET
  209. ;   request URI:          /test_mem.php?N=10000
  210. ;   content length:       0
  211. ;   user:                 -
  212. ;   script:               /home/fat/web/docs/php/test_mem.php
  213. ;   last request cpu:     0.00
  214. ;   last request memory:  0
  215. ;
  216. ; Note: There is a real-time FPM status monitoring sample web page available
  217. ;       It's available in: @EXPANDED_DATADIR@/fpm/status.html
  218. ;
  219. ; Note: The value must start with a leading slash (/). The value can be
  220. ;       anything, but it may not be a good idea to use the .php extension or it
  221. ;       may conflict with a real PHP file.
  222. ; Default Value: not set
  223. ;pm.status_path = /status

  224. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  225. ; URI will be recognized as a ping page. This could be used to test from outside
  226. ; that FPM is alive and responding, or to
  227. ; - create a graph of FPM availability (rrd or such);
  228. ; - remove a server from a group if it is not responding (load balancing);
  229. ; - trigger alerts for the operating team (24/7).
  230. ; Note: The value must start with a leading slash (/). The value can be
  231. ;       anything, but it may not be a good idea to use the .php extension or it
  232. ;       may conflict with a real PHP file.
  233. ; Default Value: not set
  234. ;ping.path = /ping

  235. ; This directive may be used to customize the response of a ping request. The
  236. ; response is formatted as text/plain with a 200 response code.
  237. ; Default Value: pong
  238. ;ping.response = pong

  239. ; The access log file
  240. ; Default: not set
  241. ;access.log = log/$pool.access.log

  242. ; The access log format.
  243. ; The following syntax is allowed
  244. ;  %%: the '%' character
  245. ;  %C: %CPU used by the request
  246. ;      it can accept the following format:
  247. ;      - %{user}C for user CPU only
  248. ;      - %{system}C for system CPU only
  249. ;      - %{total}C  for user + system CPU (default)
  250. ;  %d: time taken to serve the request
  251. ;      it can accept the following format:
  252. ;      - %{seconds}d (default)
  253. ;      - %{miliseconds}d
  254. ;      - %{mili}d
  255. ;      - %{microseconds}d
  256. ;      - %{micro}d
  257. ;  %e: an environment variable (same as $_ENV or $_SERVER)
  258. ;      it must be associated with embraces to specify the name of the env
  259. ;      variable. Some exemples:
  260. ;      - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
  261. ;      - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
  262. ;  %f: script filename
  263. ;  %l: content-length of the request (for POST request only)
  264. ;  %m: request method
  265. ;  %M: peak of memory allocated by PHP
  266. ;      it can accept the following format:
  267. ;      - %{bytes}M (default)
  268. ;      - %{kilobytes}M
  269. ;      - %{kilo}M
  270. ;      - %{megabytes}M
  271. ;      - %{mega}M
  272. ;  %n: pool name
  273. ;  %o: output header
  274. ;      it must be associated with embraces to specify the name of the header:
  275. ;      - %{Content-Type}o
  276. ;      - %{X-Powered-By}o
  277. ;      - %{Transfert-Encoding}o
  278. ;      - ....
  279. ;  %p: PID of the child that serviced the request
  280. ;  %P: PID of the parent of the child that serviced the request
  281. ;  %q: the query string
  282. ;  %Q: the '?' character if query string exists
  283. ;  %r: the request URI (without the query string, see %q and %Q)
  284. ;  %R: remote IP address
  285. ;  %s: status (response code)
  286. ;  %t: server time the request was received
  287. ;      it can accept a strftime(3) format:
  288. ;      %d/%b/%Y:%H:%M:%S %z (default)
  289. ;      The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
  290. ;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
  291. ;  %T: time the log has been written (the request has finished)
  292. ;      it can accept a strftime(3) format:
  293. ;      %d/%b/%Y:%H:%M:%S %z (default)
  294. ;      The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
  295. ;      e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
  296. ;  %u: remote user
  297. ;
  298. ; Default: "%R - %u %t \"%m %r\" %s"
  299. ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"

  300. ; The log file for slow requests
  301. ; Default Value: not set
  302. ; Note: slowlog is mandatory if request_slowlog_timeout is set
  303. slowlog = /var/opt/remi/php72/log/php-fpm/www-slow.log

  304. ; The timeout for serving a single request after which a PHP backtrace will be
  305. ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
  306. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  307. ; Default Value: 0
  308. ;request_slowlog_timeout = 0

  309. ; The timeout for serving a single request after which the worker process will
  310. ; be killed. This option should be used when the 'max_execution_time' ini option
  311. ; does not stop script execution for some reason. A value of '0' means 'off'.
  312. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  313. ; Default Value: 0
  314. ;request_terminate_timeout = 0

  315. ; Set open file descriptor rlimit.
  316. ; Default Value: system defined value
  317. ;rlimit_files = 1024

  318. ; Set max core size rlimit.
  319. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  320. ; Default Value: system defined value
  321. ;rlimit_core = 0

  322. ; Chroot to this directory at the start. This value must be defined as an
  323. ; absolute path. When this value is not set, chroot is not used.
  324. ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
  325. ; of its subdirectories. If the pool prefix is not set, the global prefix
  326. ; will be used instead.
  327. ; Note: chrooting is a great security feature and should be used whenever
  328. ;       possible. However, all PHP paths will be relative to the chroot
  329. ;       (error_log, sessions.save_path, ...).
  330. ; Default Value: not set
  331. ;chroot =

  332. ; Chdir to this directory at the start.
  333. ; Note: relative path can be used.
  334. ; Default Value: current directory or / when chroot
  335. ;chdir = /var/www

  336. ; Redirect worker stdout and stderr into main error log. If not set, stdout and
  337. ; stderr will be redirected to /dev/null according to FastCGI specs.
  338. ; Note: on highloaded environement, this can cause some delay in the page
  339. ; process time (several ms).
  340. ; Default Value: no
  341. ;catch_workers_output = yes

  342. ; Clear environment in FPM workers
  343. ; Prevents arbitrary environment variables from reaching FPM worker processes
  344. ; by clearing the environment in workers before env vars specified in this
  345. ; pool configuration are added.
  346. ; Setting to "no" will make all environment variables available to PHP code
  347. ; via getenv(), $_ENV and $_SERVER.
  348. ; Default Value: yes
  349. ;clear_env = no

  350. ; Limits the extensions of the main script FPM will allow to parse. This can
  351. ; prevent configuration mistakes on the web server side. You should only limit
  352. ; FPM to .php extensions to prevent malicious users to use other extensions to
  353. ; exectute php code.
  354. ; Note: set an empty value to allow all extensions.
  355. ; Default Value: .php
  356. ;security.limit_extensions = .php .php3 .php4 .php5 .php7

  357. ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
  358. ; the current environment.
  359. ; Default Value: clean env
  360. ;env[HOSTNAME] = $HOSTNAME
  361. ;env[PATH] = /usr/local/bin:/usr/bin:/bin
  362. ;env[TMP] = /tmp
  363. ;env[TMPDIR] = /tmp
  364. ;env[TEMP] = /tmp

  365. ; Additional php.ini defines, specific to this pool of workers. These settings
  366. ; overwrite the values previously defined in the php.ini. The directives are the
  367. ; same as the PHP SAPI:
  368. ;   php_value/php_flag             - you can set classic ini defines which can
  369. ;                                    be overwritten from PHP call 'ini_set'.
  370. ;   php_admin_value/php_admin_flag - these directives won't be overwritten by
  371. ;                                     PHP call 'ini_set'
  372. ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.

  373. ; Defining 'extension' will load the corresponding shared extension from
  374. ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
  375. ; overwrite previously defined php.ini values, but will append the new value
  376. ; instead.

  377. ; Note: path INI options can be relative and will be expanded with the prefix
  378. ; (pool, global or @prefix@)

  379. ; Default Value: nothing is defined by default except the values in php.ini and
  380. ;                specified at startup with the -d argument
  381. ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
  382. ;php_flag[display_errors] = off
  383. php_admin_value[error_log] = /var/opt/remi/php72/log/php-fpm/www-error.log
  384. php_admin_flag[log_errors] = on
  385. ;php_admin_value[memory_limit] = 128M

  386. ; Set the following data paths to directories owned by the FPM process user.
  387. ;
  388. ; Do not change the ownership of existing system directories, if the process
  389. ; user does not have write permission, create dedicated directories for this
  390. ; purpose.
  391. ;
  392. ; See warning about choosing the location of these directories on your system
  393. ; at http://php.net/session.save-path
  394. php_value[session.save_handler] = files
  395. php_value[session.save_path]    = /var/opt/remi/php72/lib/php/session
  396. php_value[soap.wsdl_cache_dir]  = /var/opt/remi/php72/lib/php/wsdlcache
  397. ;php_value[opcache.file_cache]  = /var/opt/remi/php72/lib/php/opcache
复制代码





欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3