资讯专栏INFORMATION COLUMN

PHP|标准配置之php.ini (2)

tianren124 / 2110人阅读

摘要:

</>复制代码

  1. ;;;;;;;;;;;;;;;;;;;
  2. ; Module Settings ;
  3. ;;;;;;;;;;;;;;;;;;;
  4. [CLI Server]
  5. ; Whether the CLI web server uses ANSI color coding in its terminal output.
  6. cli_server.color = On
  7. [Date]
  8. ; Defines the default timezone used by the date functions
  9. ; http://php.net/date.timezone
  10. date.timezone = Asia/Shanghai
  11. ; http://php.net/date.default-latitude
  12. ;date.default_latitude = 31.7667
  13. ; http://php.net/date.default-longitude
  14. ;date.default_longitude = 35.2333
  15. ; http://php.net/date.sunrise-zenith
  16. ;date.sunrise_zenith = 90.583333
  17. ; http://php.net/date.sunset-zenith
  18. ;date.sunset_zenith = 90.583333
  19. [filter]
  20. ; http://php.net/filter.default
  21. ;filter.default = unsafe_raw
  22. ; http://php.net/filter.default-flags
  23. ;filter.default_flags =
  24. [iconv]
  25. ; Use of this INI entry is deprecated, use global input_encoding instead.
  26. ; If empty, default_charset or input_encoding or iconv.input_encoding is used.
  27. ; The precedence is: default_charset < intput_encoding < iconv.input_encoding
  28. ;iconv.input_encoding =
  29. ; Use of this INI entry is deprecated, use global internal_encoding instead.
  30. ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
  31. ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
  32. ;iconv.internal_encoding =
  33. ; Use of this INI entry is deprecated, use global output_encoding instead.
  34. ; If empty, default_charset or output_encoding or iconv.output_encoding is used.
  35. ; The precedence is: default_charset < output_encoding < iconv.output_encoding
  36. ; To use an output encoding conversion, iconv"s output handler must be set
  37. ; otherwise output encoding conversion cannot be performed.
  38. ;iconv.output_encoding =
  39. [intl]
  40. ;intl.default_locale =
  41. ; This directive allows you to produce PHP errors when some error
  42. ; happens within intl functions. The value is the level of the error produced.
  43. ; Default is 0, which does not produce any errors.
  44. ;intl.error_level = E_WARNING
  45. [sqlite]
  46. ; http://php.net/sqlite.assoc-case
  47. ;sqlite.assoc_case = 0
  48. [sqlite3]
  49. ;sqlite3.extension_dir =
  50. [Pcre]
  51. ;PCRE library backtracking limit.
  52. ; http://php.net/pcre.backtrack-limit
  53. ;pcre.backtrack_limit=100000
  54. ;PCRE library recursion limit.
  55. ;Please note that if you set this value to a high number you may consume all
  56. ;the available process stack and eventually crash PHP (due to reaching the
  57. ;stack size limit imposed by the Operating System).
  58. ; http://php.net/pcre.recursion-limit
  59. ;pcre.recursion_limit=100000
  60. [Pdo]
  61. ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
  62. ; http://php.net/pdo-odbc.connection-pooling
  63. ;pdo_odbc.connection_pooling=strict
  64. ;pdo_odbc.db2_instance_name
  65. [Pdo_mysql]
  66. ; If mysqlnd is used: Number of cache slots for the internal result set cache
  67. ; http://php.net/pdo_mysql.cache_size
  68. pdo_mysql.cache_size = 2000
  69. ; Default socket name for local MySQL connects. If empty, uses the built-in
  70. ; MySQL defaults.
  71. ; http://php.net/pdo_mysql.default-socket
  72. pdo_mysql.default_socket=
  73. [Phar]
  74. ; http://php.net/phar.readonly
  75. ;phar.readonly = On
  76. ; http://php.net/phar.require-hash
  77. ;phar.require_hash = On
  78. ;phar.cache_list =
  79. [mail function]
  80. ; For Win32 only.
  81. ; http://php.net/smtp
  82. SMTP = localhost
  83. ; http://php.net/smtp-port
  84. smtp_port = 25
  85. ; For Win32 only.
  86. ; http://php.net/sendmail-from
  87. ;sendmail_from = me@example.com
  88. ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
  89. ; http://php.net/sendmail-path
  90. ;sendmail_path =
  91. ; Force the addition of the specified parameters to be passed as extra parameters
  92. ; to the sendmail binary. These parameters will always replace the value of
  93. ; the 5th parameter to mail(), even in safe mode.
  94. ;mail.force_extra_parameters =
  95. ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
  96. mail.add_x_header = On
  97. ; The path to a log file that will log all mail() calls. Log entries include
  98. ; the full path of the script, line number, To address and headers.
  99. ;mail.log =
  100. ; Log mail to syslog (Event Log on Windows).
  101. ;mail.log = syslog
  102. [SQL]
  103. ; http://php.net/sql.safe-mode
  104. sql.safe_mode = Off
  105. [ODBC]
  106. ; http://php.net/odbc.default-db
  107. ;odbc.default_db = Not yet implemented
  108. ; http://php.net/odbc.default-user
  109. ;odbc.default_user = Not yet implemented
  110. ; http://php.net/odbc.default-pw
  111. ;odbc.default_pw = Not yet implemented
  112. ; Controls the ODBC cursor model.
  113. ; Default: SQL_CURSOR_STATIC (default).
  114. ;odbc.default_cursortype
  115. ; Allow or prevent persistent links.
  116. ; http://php.net/odbc.allow-persistent
  117. odbc.allow_persistent = On
  118. ; Check that a connection is still valid before reuse.
  119. ; http://php.net/odbc.check-persistent
  120. odbc.check_persistent = On
  121. ; Maximum number of persistent links. -1 means no limit.
  122. ; http://php.net/odbc.max-persistent
  123. odbc.max_persistent = -1
  124. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  125. ; http://php.net/odbc.max-links
  126. odbc.max_links = -1
  127. ; Handling of LONG fields. Returns number of bytes to variables. 0 means
  128. ; passthru.
  129. ; http://php.net/odbc.defaultlrl
  130. odbc.defaultlrl = 4096
  131. ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
  132. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
  133. ; of odbc.defaultlrl and odbc.defaultbinmode
  134. ; http://php.net/odbc.defaultbinmode
  135. odbc.defaultbinmode = 1
  136. ;birdstep.max_links = -1
  137. [Interbase]
  138. ; Allow or prevent persistent links.
  139. ibase.allow_persistent = 1
  140. ; Maximum number of persistent links. -1 means no limit.
  141. ibase.max_persistent = -1
  142. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  143. ibase.max_links = -1
  144. ; Default database name for ibase_connect().
  145. ;ibase.default_db =
  146. ; Default username for ibase_connect().
  147. ;ibase.default_user =
  148. ; Default password for ibase_connect().
  149. ;ibase.default_password =
  150. ; Default charset for ibase_connect().
  151. ;ibase.default_charset =
  152. ; Default timestamp format.
  153. ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
  154. ; Default date format.
  155. ibase.dateformat = "%Y-%m-%d"
  156. ; Default time format.
  157. ibase.timeformat = "%H:%M:%S"
  158. [MySQL]
  159. ; Allow accessing, from PHP"s perspective, local files with LOAD DATA statements
  160. ; http://php.net/mysql.allow_local_infile
  161. mysql.allow_local_infile = On
  162. ; Allow or prevent persistent links.
  163. ; http://php.net/mysql.allow-persistent
  164. mysql.allow_persistent = On
  165. ; If mysqlnd is used: Number of cache slots for the internal result set cache
  166. ; http://php.net/mysql.cache_size
  167. mysql.cache_size = 2000
  168. ; Maximum number of persistent links. -1 means no limit.
  169. ; http://php.net/mysql.max-persistent
  170. mysql.max_persistent = -1
  171. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  172. ; http://php.net/mysql.max-links
  173. mysql.max_links = -1
  174. ; Default port number for mysql_connect(). If unset, mysql_connect() will use
  175. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
  176. ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
  177. ; at MYSQL_PORT.
  178. ; http://php.net/mysql.default-port
  179. mysql.default_port =
  180. ; Default socket name for local MySQL connects. If empty, uses the built-in
  181. ; MySQL defaults.
  182. ; http://php.net/mysql.default-socket
  183. mysql.default_socket =
  184. ; Default host for mysql_connect() (doesn"t apply in safe mode).
  185. ; http://php.net/mysql.default-host
  186. mysql.default_host =
  187. ; Default user for mysql_connect() (doesn"t apply in safe mode).
  188. ; http://php.net/mysql.default-user
  189. mysql.default_user =
  190. ; Default password for mysql_connect() (doesn"t apply in safe mode).
  191. ; Note that this is generally a *bad* idea to store passwords in this file.
  192. ; *Any* user with PHP access can run "echo get_cfg_var("mysql.default_password")
  193. ; and reveal this password! And of course, any users with read access to this
  194. ; file will be able to reveal the password as well.
  195. ; http://php.net/mysql.default-password
  196. mysql.default_password =
  197. ; Maximum time (in seconds) for connect timeout. -1 means no limit
  198. ; http://php.net/mysql.connect-timeout
  199. mysql.connect_timeout = 60
  200. ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
  201. ; SQL-Errors will be displayed.
  202. ; http://php.net/mysql.trace-mode
  203. mysql.trace_mode = Off
  204. [MySQLi]
  205. ; Maximum number of persistent links. -1 means no limit.
  206. ; http://php.net/mysqli.max-persistent
  207. mysqli.max_persistent = -1
  208. ; Allow accessing, from PHP"s perspective, local files with LOAD DATA statements
  209. ; http://php.net/mysqli.allow_local_infile
  210. ;mysqli.allow_local_infile = On
  211. ; Allow or prevent persistent links.
  212. ; http://php.net/mysqli.allow-persistent
  213. mysqli.allow_persistent = On
  214. ; Maximum number of links. -1 means no limit.
  215. ; http://php.net/mysqli.max-links
  216. mysqli.max_links = -1
  217. ; If mysqlnd is used: Number of cache slots for the internal result set cache
  218. ; http://php.net/mysqli.cache_size
  219. mysqli.cache_size = 2000
  220. ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
  221. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
  222. ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
  223. ; at MYSQL_PORT.
  224. ; http://php.net/mysqli.default-port
  225. mysqli.default_port = 3306
  226. ; Default socket name for local MySQL connects. If empty, uses the built-in
  227. ; MySQL defaults.
  228. ; http://php.net/mysqli.default-socket
  229. mysqli.default_socket =
  230. ; Default host for mysql_connect() (doesn"t apply in safe mode).
  231. ; http://php.net/mysqli.default-host
  232. mysqli.default_host =
  233. ; Default user for mysql_connect() (doesn"t apply in safe mode).
  234. ; http://php.net/mysqli.default-user
  235. mysqli.default_user =
  236. ; Default password for mysqli_connect() (doesn"t apply in safe mode).
  237. ; Note that this is generally a *bad* idea to store passwords in this file.
  238. ; *Any* user with PHP access can run "echo get_cfg_var("mysqli.default_pw")
  239. ; and reveal this password! And of course, any users with read access to this
  240. ; file will be able to reveal the password as well.
  241. ; http://php.net/mysqli.default-pw
  242. mysqli.default_pw =
  243. ; Allow or prevent reconnect
  244. mysqli.reconnect = Off
  245. [mysqlnd]
  246. ; Enable / Disable collection of general statistics by mysqlnd which can be
  247. ; used to tune and monitor MySQL operations.
  248. ; http://php.net/mysqlnd.collect_statistics
  249. mysqlnd.collect_statistics = On
  250. ; Enable / Disable collection of memory usage statistics by mysqlnd which can be
  251. ; used to tune and monitor MySQL operations.
  252. ; http://php.net/mysqlnd.collect_memory_statistics
  253. mysqlnd.collect_memory_statistics = Off
  254. ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
  255. ; http://php.net/mysqlnd.net_cmd_buffer_size
  256. ;mysqlnd.net_cmd_buffer_size = 2048
  257. ; Size of a pre-allocated buffer used for reading data sent by the server in
  258. ; bytes.
  259. ; http://php.net/mysqlnd.net_read_buffer_size
  260. ;mysqlnd.net_read_buffer_size = 32768
  261. [OCI8]
  262. ; Connection: Enables privileged connections using external
  263. ; credentials (OCI_SYSOPER, OCI_SYSDBA)
  264. ; http://php.net/oci8.privileged-connect
  265. ;oci8.privileged_connect = Off
  266. ; Connection: The maximum number of persistent OCI8 connections per
  267. ; process. Using -1 means no limit.
  268. ; http://php.net/oci8.max-persistent
  269. ;oci8.max_persistent = -1
  270. ; Connection: The maximum number of seconds a process is allowed to
  271. ; maintain an idle persistent connection. Using -1 means idle
  272. ; persistent connections will be maintained forever.
  273. ; http://php.net/oci8.persistent-timeout
  274. ;oci8.persistent_timeout = -1
  275. ; Connection: The number of seconds that must pass before issuing a
  276. ; ping during oci_pconnect() to check the connection validity. When
  277. ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
  278. ; pings completely.
  279. ; http://php.net/oci8.ping-interval
  280. ;oci8.ping_interval = 60
  281. ; Connection: Set this to a user chosen connection class to be used
  282. ; for all pooled server requests with Oracle 11g Database Resident
  283. ; Connection Pooling (DRCP). To use DRCP, this value should be set to
  284. ; the same string for all web servers running the same application,
  285. ; the database pool must be configured, and the connection string must
  286. ; specify to use a pooled server.
  287. ;oci8.connection_class =
  288. ; High Availability: Using On lets PHP receive Fast Application
  289. ; Notification (FAN) events generated when a database node fails. The
  290. ; database must also be configured to post FAN events.
  291. ;oci8.events = Off
  292. ; Tuning: This option enables statement caching, and specifies how
  293. ; many statements to cache. Using 0 disables statement caching.
  294. ; http://php.net/oci8.statement-cache-size
  295. ;oci8.statement_cache_size = 20
  296. ; Tuning: Enables statement prefetching and sets the default number of
  297. ; rows that will be fetched automatically after statement execution.
  298. ; http://php.net/oci8.default-prefetch
  299. ;oci8.default_prefetch = 100
  300. ; Compatibility. Using On means oci_close() will not close
  301. ; oci_connect() and oci_new_connect() connections.
  302. ; http://php.net/oci8.old-oci-close-semantics
  303. ;oci8.old_oci_close_semantics = Off
  304. [PostgreSQL]
  305. ; Allow or prevent persistent links.
  306. ; http://php.net/pgsql.allow-persistent
  307. pgsql.allow_persistent = On
  308. ; Detect broken persistent links always with pg_pconnect().
  309. ; Auto reset feature requires a little overheads.
  310. ; http://php.net/pgsql.auto-reset-persistent
  311. pgsql.auto_reset_persistent = Off
  312. ; Maximum number of persistent links. -1 means no limit.
  313. ; http://php.net/pgsql.max-persistent
  314. pgsql.max_persistent = -1
  315. ; Maximum number of links (persistent+non persistent). -1 means no limit.
  316. ; http://php.net/pgsql.max-links
  317. pgsql.max_links = -1
  318. ; Ignore PostgreSQL backends Notice message or not.
  319. ; Notice message logging require a little overheads.
  320. ; http://php.net/pgsql.ignore-notice
  321. pgsql.ignore_notice = 0
  322. ; Log PostgreSQL backends Notice message or not.
  323. ; Unless pgsql.ignore_notice=0, module cannot log notice message.
  324. ; http://php.net/pgsql.log-notice
  325. pgsql.log_notice = 0
  326. [Sybase-CT]
  327. ; Allow or prevent persistent links.
  328. ; http://php.net/sybct.allow-persistent
  329. sybct.allow_persistent = On
  330. ; Maximum number of persistent links. -1 means no limit.
  331. ; http://php.net/sybct.max-persistent
  332. sybct.max_persistent = -1
  333. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  334. ; http://php.net/sybct.max-links
  335. sybct.max_links = -1
  336. ; Minimum server message severity to display.
  337. ; http://php.net/sybct.min-server-severity
  338. sybct.min_server_severity = 10
  339. ; Minimum client message severity to display.
  340. ; http://php.net/sybct.min-client-severity
  341. sybct.min_client_severity = 10
  342. ; Set per-context timeout
  343. ; http://php.net/sybct.timeout
  344. ;sybct.timeout=
  345. ;sybct.packet_size
  346. ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
  347. ; Default: one minute
  348. ;sybct.login_timeout=
  349. ; The name of the host you claim to be connecting from, for display by sp_who.
  350. ; Default: none
  351. ;sybct.hostname=
  352. ; Allows you to define how often deadlocks are to be retried. -1 means "forever".
  353. ; Default: 0
  354. ;sybct.deadlock_retry_count=
  355. [bcmath]
  356. ; Number of decimal digits for all bcmath functions.
  357. ; http://php.net/bcmath.scale
  358. bcmath.scale = 0
  359. [browscap]
  360. ; http://php.net/browscap
  361. ;browscap = extra/browscap.ini
  362. [Session]
  363. ; Handler used to store/retrieve data.
  364. ; http://php.net/session.save-handler
  365. session.save_handler = files
  366. ; Argument passed to save_handler. In the case of files, this is the path
  367. ; where data files are stored. Note: Windows users have to change this
  368. ; variable in order to use PHP"s session functions.
  369. ;
  370. ; The path can be defined as:
  371. ;
  372. ; session.save_path = "N;/path"
  373. ;
  374. ; where N is an integer. Instead of storing all the session files in
  375. ; /path, what this will do is use subdirectories N-levels deep, and
  376. ; store the session data in those directories. This is useful if
  377. ; your OS has problems with many files in one directory, and is
  378. ; a more efficient layout for servers that handle many sessions.
  379. ;
  380. ; NOTE 1: PHP will not create this directory structure automatically.
  381. ; You can use the script in the ext/session dir for that purpose.
  382. ; NOTE 2: See the section on garbage collection below if you choose to
  383. ; use subdirectories for session storage
  384. ;
  385. ; The file storage module creates files using mode 600 by default.
  386. ; You can change that by using
  387. ;
  388. ; session.save_path = "N;MODE;/path"
  389. ;
  390. ; where MODE is the octal representation of the mode. Note that this
  391. ; does not overwrite the process"s umask.
  392. ; http://php.net/session.save-path
  393. ;session.save_path = "/tmp"
  394. ; Whether to use strict session mode.
  395. ; Strict session mode does not accept uninitialized session ID and regenerate
  396. ; session ID if browser sends uninitialized session ID. Strict mode protects
  397. ; applications from session fixation via session adoption vulnerability. It is
  398. ; disabled by default for maximum compatibility, but enabling it is encouraged.
  399. ; https://wiki.php.net/rfc/strict_sessions
  400. session.use_strict_mode = 0
  401. ; Whether to use cookies.
  402. ; http://php.net/session.use-cookies
  403. session.use_cookies = 1
  404. ; http://php.net/session.cookie-secure
  405. ;session.cookie_secure =
  406. ; This option forces PHP to fetch and use a cookie for storing and maintaining
  407. ; the session id. We encourage this operation as it"s very helpful in combating
  408. ; session hijacking when not specifying and managing your own session id. It is
  409. ; not the be-all and end-all of session hijacking defense, but it"s a good start.
  410. ; http://php.net/session.use-only-cookies
  411. session.use_only_cookies = 1
  412. ; Name of the session (used as cookie name).
  413. ; http://php.net/session.name
  414. session.name = PHPSESSID
  415. ; Initialize session on request startup.
  416. ; http://php.net/session.auto-start
  417. session.auto_start = 0
  418. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  419. ; http://php.net/session.cookie-lifetime
  420. session.cookie_lifetime = 0
  421. ; The path for which the cookie is valid.
  422. ; http://php.net/session.cookie-path
  423. session.cookie_path = /
  424. ; The domain for which the cookie is valid.
  425. ; http://php.net/session.cookie-domain
  426. session.cookie_domain =
  427. ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
  428. ; http://php.net/session.cookie-httponly
  429. session.cookie_httponly =
  430. ; Handler used to serialize data. php is the standard serializer of PHP.
  431. ; http://php.net/session.serialize-handler
  432. session.serialize_handler = php
  433. ; Defines the probability that the "garbage collection" process is started
  434. ; on every session initialization. The probability is calculated by using
  435. ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
  436. ; and gc_divisor is the denominator in the equation. Setting this value to 1
  437. ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
  438. ; the gc will run on any give request.
  439. ; Default Value: 1
  440. ; Development Value: 1
  441. ; Production Value: 1
  442. ; http://php.net/session.gc-probability
  443. session.gc_probability = 1
  444. ; Defines the probability that the "garbage collection" process is started on every
  445. ; session initialization. The probability is calculated by using the following equation:
  446. ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
  447. ; session.gc_divisor is the denominator in the equation. Setting this value to 1
  448. ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
  449. ; the gc will run on any give request. Increasing this value to 1000 will give you
  450. ; a 0.1% chance the gc will run on any give request. For high volume production servers,
  451. ; this is a more efficient approach.
  452. ; Default Value: 100
  453. ; Development Value: 1000
  454. ; Production Value: 1000
  455. ; http://php.net/session.gc-divisor
  456. session.gc_divisor = 1000
  457. ; After this number of seconds, stored data will be seen as "garbage" and
  458. ; cleaned up by the garbage collection process.
  459. ; http://php.net/session.gc-maxlifetime
  460. session.gc_maxlifetime = 1440
  461. ; NOTE: If you are using the subdirectory option for storing session files
  462. ; (see session.save_path above), then garbage collection does *not*
  463. ; happen automatically. You will need to do your own garbage
  464. ; collection through a shell script, cron entry, or some other method.
  465. ; For example, the following script would is the equivalent of
  466. ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
  467. ; find /path/to/sessions -cmin +24 -type f | xargs rm
  468. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  469. ; HTTP_REFERER has to contain this substring for the session to be
  470. ; considered as valid.
  471. ; http://php.net/session.referer-check
  472. session.referer_check =
  473. ; How many bytes to read from the file.
  474. ; http://php.net/session.entropy-length
  475. ;session.entropy_length = 32
  476. ; Specified here to create the session id.
  477. ; http://php.net/session.entropy-file
  478. ; Defaults to /dev/urandom
  479. ; On systems that don"t have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
  480. ; If neither are found at compile time, the default is no entropy file.
  481. ; On windows, setting the entropy_length setting will activate the
  482. ; Windows random source (using the CryptoAPI)
  483. ;session.entropy_file = /dev/urandom
  484. ; Set to {nocache,private,public,} to determine HTTP caching aspects
  485. ; or leave this empty to avoid sending anti-caching headers.
  486. ; http://php.net/session.cache-limiter
  487. session.cache_limiter = nocache
  488. ; Document expires after n minutes.
  489. ; http://php.net/session.cache-expire
  490. session.cache_expire = 180
  491. ; trans sid support is disabled by default.
  492. ; Use of trans sid may risk your users" security.
  493. ; Use this option with caution.
  494. ; - User may send URL contains active session ID
  495. ; to other person via. email/irc/etc.
  496. ; - URL that contains active session ID may be stored
  497. ; in publicly accessible computer.
  498. ; - User may access your site with the same session ID
  499. ; always using URL stored in browser"s history or bookmarks.
  500. ; http://php.net/session.use-trans-sid
  501. session.use_trans_sid = 0
  502. ; Select a hash function for use in generating session ids.
  503. ; Possible Values
  504. ; 0 (MD5 128 bits)
  505. ; 1 (SHA-1 160 bits)
  506. ; This option may also be set to the name of any hash function supported by
  507. ; the hash extension. A list of available hashes is returned by the hash_algos()
  508. ; function.
  509. ; http://php.net/session.hash-function
  510. session.hash_function = 0
  511. ; Define how many bits are stored in each character when converting
  512. ; the binary hash data to something readable.
  513. ; Possible values:
  514. ; 4 (4 bits: 0-9, a-f)
  515. ; 5 (5 bits: 0-9, a-v)
  516. ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",")
  517. ; Default Value: 4
  518. ; Development Value: 5
  519. ; Production Value: 5
  520. ; http://php.net/session.hash-bits-per-character
  521. session.hash_bits_per_character = 5
  522. ; The URL rewriter will look for URLs in a defined set of HTML tags.
  523. ; form/fieldset are special; if you include them here, the rewriter will
  524. ; add a hidden field with the info which is otherwise appended
  525. ; to URLs. If you want XHTML conformity, remove the form entry.
  526. ; Note that all valid entries require a "=", even if no value follows.
  527. ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
  528. ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
  529. ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
  530. ; http://php.net/url-rewriter.tags
  531. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
  532. ; Enable upload progress tracking in $_SESSION
  533. ; Default Value: On
  534. ; Development Value: On
  535. ; Production Value: On
  536. ; http://php.net/session.upload-progress.enabled
  537. ;session.upload_progress.enabled = On
  538. ; Cleanup the progress information as soon as all POST data has been read
  539. ; (i.e. upload completed).
  540. ; Default Value: On
  541. ; Development Value: On
  542. ; Production Value: On
  543. ; http://php.net/session.upload-progress.cleanup
  544. ;session.upload_progress.cleanup = On
  545. ; A prefix used for the upload progress key in $_SESSION
  546. ; Default Value: "upload_progress_"
  547. ; Development Value: "upload_progress_"
  548. ; Production Value: "upload_progress_"
  549. ; http://php.net/session.upload-progress.prefix
  550. ;session.upload_progress.prefix = "upload_progress_"
  551. ; The index name (concatenated with the prefix) in $_SESSION
  552. ; containing the upload progress information
  553. ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
  554. ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
  555. ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
  556. ; http://php.net/session.upload-progress.name
  557. ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"
  558. ; How frequently the upload progress should be updated.
  559. ; Given either in percentages (per-file), or in bytes
  560. ; Default Value: "1%"
  561. ; Development Value: "1%"
  562. ; Production Value: "1%"
  563. ; http://php.net/session.upload-progress.freq
  564. ;session.upload_progress.freq = "1%"
  565. ; The minimum delay between updates, in seconds
  566. ; Default Value: 1
  567. ; Development Value: 1
  568. ; Production Value: 1
  569. ; http://php.net/session.upload-progress.min-freq
  570. ;session.upload_progress.min_freq = "1"
  571. [MSSQL]
  572. ; Allow or prevent persistent links.
  573. mssql.allow_persistent = On
  574. ; Maximum number of persistent links. -1 means no limit.
  575. mssql.max_persistent = -1
  576. ; Maximum number of links (persistent+non persistent). -1 means no limit.
  577. mssql.max_links = -1
  578. ; Minimum error severity to display.
  579. mssql.min_error_severity = 10
  580. ; Minimum message severity to display.
  581. mssql.min_message_severity = 10
  582. ; Compatibility mode with old versions of PHP 3.0.
  583. mssql.compatibility_mode = Off
  584. ; Connect timeout
  585. ;mssql.connect_timeout = 5
  586. ; Query timeout
  587. ;mssql.timeout = 60
  588. ; Valid range 0 - 2147483647. Default = 4096.
  589. ;mssql.textlimit = 4096
  590. ; Valid range 0 - 2147483647. Default = 4096.
  591. ;mssql.textsize = 4096
  592. ; Limits the number of records in each batch. 0 = all records in one batch.
  593. ;mssql.batchsize = 0
  594. ; Specify how datetime and datetim4 columns are returned
  595. ; On => Returns data converted to SQL server settings
  596. ; Off => Returns values as YYYY-MM-DD hh:mm:ss
  597. ;mssql.datetimeconvert = On
  598. ; Use NT authentication when connecting to the server
  599. mssql.secure_connection = Off
  600. ; Specify max number of processes. -1 = library default
  601. ; msdlib defaults to 25
  602. ; FreeTDS defaults to 4096
  603. ;mssql.max_procs = -1
  604. ; Specify client character set.
  605. ; If empty or not set the client charset from freetds.conf is used
  606. ; This is only used when compiled with FreeTDS
  607. ;mssql.charset = "ISO-8859-1"
  608. [Assertion]
  609. ; Assert(expr); active by default.
  610. ; http://php.net/assert.active
  611. ;assert.active = On
  612. ; Issue a PHP warning for each failed assertion.
  613. ; http://php.net/assert.warning
  614. ;assert.warning = On
  615. ; Don"t bail out by default.
  616. ; http://php.net/assert.bail
  617. ;assert.bail = Off
  618. ; User-function to be called if an assertion fails.
  619. ; http://php.net/assert.callback
  620. ;assert.callback = 0
  621. ; Eval the expression with current error_reporting(). Set to true if you want
  622. ; error_reporting(0) around the eval().
  623. ; http://php.net/assert.quiet-eval
  624. ;assert.quiet_eval = 0
  625. [COM]
  626. ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
  627. ; http://php.net/com.typelib-file
  628. ;com.typelib_file =
  629. ; allow Distributed-COM calls
  630. ; http://php.net/com.allow-dcom
  631. ;com.allow_dcom = true
  632. ; autoregister constants of a components typlib on com_load()
  633. ; http://php.net/com.autoregister-typelib
  634. ;com.autoregister_typelib = true
  635. ; register constants casesensitive
  636. ; http://php.net/com.autoregister-casesensitive
  637. ;com.autoregister_casesensitive = false
  638. ; show warnings on duplicate constant registrations
  639. ; http://php.net/com.autoregister-verbose
  640. ;com.autoregister_verbose = true
  641. ; The default character set code-page to use when passing strings to and from COM objects.
  642. ; Default: system ANSI code page
  643. ;com.code_page=
  644. [mbstring]
  645. ; language for internal character representation.
  646. ; This affects mb_send_mail() and mbstrig.detect_order.
  647. ; http://php.net/mbstring.language
  648. ;mbstring.language = Japanese
  649. ; Use of this INI entry is deprecated, use global internal_encoding instead.
  650. ; internal/script encoding.
  651. ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
  652. ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
  653. ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
  654. ;mbstring.internal_encoding =
  655. ; Use of this INI entry is deprecated, use global input_encoding instead.
  656. ; http input encoding.
  657. ; mbstring.encoding_traslation = On is needed to use this setting.
  658. ; If empty, default_charset or input_encoding or mbstring.input is used.
  659. ; The precedence is: default_charset < intput_encoding < mbsting.http_input
  660. ; http://php.net/mbstring.http-input
  661. ;mbstring.http_input =
  662. ; Use of this INI entry is deprecated, use global output_encoding instead.
  663. ; http output encoding.
  664. ; mb_output_handler must be registered as output buffer to function.
  665. ; If empty, default_charset or output_encoding or mbstring.http_output is used.
  666. ; The precedence is: default_charset < output_encoding < mbstring.http_output
  667. ; To use an output encoding conversion, mbstring"s output handler must be set
  668. ; otherwise output encoding conversion cannot be performed.
  669. ; http://php.net/mbstring.http-output
  670. ;mbstring.http_output =
  671. ; enable automatic encoding translation according to
  672. ; mbstring.internal_encoding setting. Input chars are
  673. ; converted to internal encoding by setting this to On.
  674. ; Note: Do _not_ use automatic encoding translation for
  675. ; portable libs/applications.
  676. ; http://php.net/mbstring.encoding-translation
  677. ;mbstring.encoding_translation = Off
  678. ; automatic encoding detection order.
  679. ; "auto" detect order is changed accoding to mbstring.language
  680. ; http://php.net/mbstring.detect-order
  681. ;mbstring.detect_order = auto
  682. ; substitute_character used when character cannot be converted
  683. ; one from another
  684. ; http://php.net/mbstring.substitute-character
  685. ;mbstring.substitute_character = none
  686. ; overload(replace) single byte functions by mbstring functions.
  687. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
  688. ; etc. Possible values are 0,1,2,4 or combination of them.
  689. ; For example, 7 for overload everything.
  690. ; 0: No overload
  691. ; 1: Overload mail() function
  692. ; 2: Overload str*() functions
  693. ; 4: Overload ereg*() functions
  694. ; http://php.net/mbstring.func-overload
  695. ;mbstring.func_overload = 0
  696. ; enable strict encoding detection.
  697. ; Default: Off
  698. ;mbstring.strict_detection = On
  699. ; This directive specifies the regex pattern of content types for which mb_output_handler()
  700. ; is activated.
  701. ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml+xml)
  702. ;mbstring.http_output_conv_mimetype=
  703. [gd]
  704. ; Tell the jpeg decode to ignore warnings and try to create
  705. ; a gd image. The warning will then be displayed as notices
  706. ; disabled by default
  707. ; http://php.net/gd.jpeg-ignore-warning
  708. ;gd.jpeg_ignore_warning = 0
  709. [exif]
  710. ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
  711. ; With mbstring support this will automatically be converted into the encoding
  712. ; given by corresponding encode setting. When empty mbstring.internal_encoding
  713. ; is used. For the decode settings you can distinguish between motorola and
  714. ; intel byte order. A decode setting cannot be empty.
  715. ; http://php.net/exif.encode-unicode
  716. ;exif.encode_unicode = ISO-8859-15
  717. ; http://php.net/exif.decode-unicode-motorola
  718. ;exif.decode_unicode_motorola = UCS-2BE
  719. ; http://php.net/exif.decode-unicode-intel
  720. ;exif.decode_unicode_intel = UCS-2LE
  721. ; http://php.net/exif.encode-jis
  722. ;exif.encode_jis =
  723. ; http://php.net/exif.decode-jis-motorola
  724. ;exif.decode_jis_motorola = JIS
  725. ; http://php.net/exif.decode-jis-intel
  726. ;exif.decode_jis_intel = JIS
  727. [Tidy]
  728. ; The path to a default tidy configuration file to use when using tidy
  729. ; http://php.net/tidy.default-config
  730. ;tidy.default_config = /usr/local/lib/php/default.tcfg
  731. ; Should tidy clean and repair output automatically?
  732. ; WARNING: Do not use this option if you are generating non-html content
  733. ; such as dynamic images
  734. ; http://php.net/tidy.clean-output
  735. tidy.clean_output = Off
  736. [soap]
  737. ; Enables or disables WSDL caching feature.
  738. ; http://php.net/soap.wsdl-cache-enabled
  739. soap.wsdl_cache_enabled=1
  740. ; Sets the directory name where SOAP extension will put cache files.
  741. ; http://php.net/soap.wsdl-cache-dir
  742. soap.wsdl_cache_dir="/tmp"
  743. ; (time to live) Sets the number of second while cached file will be used
  744. ; instead of original one.
  745. ; http://php.net/soap.wsdl-cache-ttl
  746. soap.wsdl_cache_ttl=86400
  747. ; Sets the size of the cache limit. (Max. number of WSDL files to cache)
  748. soap.wsdl_cache_limit = 5
  749. [sysvshm]
  750. ; A default size of the shared memory segment
  751. ;sysvshm.init_mem = 10000
  752. [ldap]
  753. ; Sets the maximum number of open links or -1 for unlimited.
  754. ldap.max_links = -1
  755. [mcrypt]
  756. ; For more information about mcrypt settings see http://php.net/mcrypt-module-open
  757. ; Directory where to load mcrypt algorithms
  758. ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
  759. ;mcrypt.algorithms_dir=
  760. ; Directory where to load mcrypt modes
  761. ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
  762. ;mcrypt.modes_dir=
  763. [dba]
  764. ;dba.default_handler=
  765. [opcache]
  766. zend_extension=opcache.so
  767. opcache.enable=1
  768. opcache.enable_cli=1
  769. opcache.memory_consumption=128
  770. opcache.interned_strings_buffer=8
  771. opcache.max_accelerated_files=4000
  772. opcache.revalidate_freq=60
  773. opcache.fast_shutdown=1
  774. ; Determines if Zend OPCache is enabled
  775. ;opcache.enable=0
  776. ; Determines if Zend OPCache is enabled for the CLI version of PHP
  777. ;opcache.enable_cli=0
  778. ; The OPcache shared memory storage size.
  779. ;opcache.memory_consumption=64
  780. ; The amount of memory for interned strings in Mbytes.
  781. ;opcache.interned_strings_buffer=4
  782. ; The maximum number of keys (scripts) in the OPcache hash table.
  783. ; Only numbers between 200 and 100000 are allowed.
  784. ;opcache.max_accelerated_files=2000
  785. ; The maximum percentage of "wasted" memory until a restart is scheduled.
  786. ;opcache.max_wasted_percentage=5
  787. ; When this directive is enabled, the OPcache appends the current working
  788. ; directory to the script key, thus eliminating possible collisions between
  789. ; files with the same name (basename). Disabling the directive improves
  790. ; performance, but may break existing applications.
  791. ;opcache.use_cwd=1
  792. ; When disabled, you must reset the OPcache manually or restart the
  793. ; webserver for changes to the filesystem to take effect.
  794. ;opcache.validate_timestamps=1
  795. ; How often (in seconds) to check file timestamps for changes to the shared
  796. ; memory storage allocation. ("1" means validate once per second, but only
  797. ; once per request. "0" means always validate)
  798. ;opcache.revalidate_freq=2
  799. ; Enables or disables file search in include_path optimization
  800. ;opcache.revalidate_path=0
  801. ; If disabled, all PHPDoc comments are dropped from the code to reduce the
  802. ; size of the optimized code.
  803. ;opcache.save_comments=1
  804. ; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
  805. ; may be always stored (save_comments=1), but not loaded by applications
  806. ; that don"t need them anyway.
  807. ;opcache.load_comments=1
  808. ; If enabled, a fast shutdown sequence is used for the accelerated code
  809. ;opcache.fast_shutdown=0
  810. ; Allow file existence override (file_exists, etc.) performance feature.
  811. ;opcache.enable_file_override=0
  812. ; A bitmask, where each bit enables or disables the appropriate OPcache
  813. ; passes
  814. ;opcache.optimization_level=0xffffffff
  815. ;opcache.inherited_hack=1
  816. ;opcache.dups_fix=0
  817. ; The location of the OPcache blacklist file (wildcards allowed).
  818. ; Each OPcache blacklist file is a text file that holds the names of files
  819. ; that should not be accelerated. The file format is to add each filename
  820. ; to a new line. The filename may be a full path or just a file prefix
  821. ; (i.e., /var/www/x blacklists all the files and directories in /var/www
  822. ; that start with "x"). Line starting with a ; are ignored (comments).
  823. ;opcache.blacklist_filename=
  824. ; Allows exclusion of large files from being cached. By default all files
  825. ; are cached.
  826. ;opcache.max_file_size=0
  827. ; Check the cache checksum each N requests.
  828. ; The default value of "0" means that the checks are disabled.
  829. ;opcache.consistency_checks=0
  830. ; How long to wait (in seconds) for a scheduled restart to begin if the cache
  831. ; is not being accessed.
  832. ;opcache.force_restart_timeout=180
  833. ; OPcache error_log file name. Empty string assumes "stderr".
  834. ;opcache.error_log=
  835. ; All OPcache errors go to the Web server log.
  836. ; By default, only fatal errors (level 0) or errors (level 1) are logged.
  837. ; You can also enable warnings (level 2), info messages (level 3) or
  838. ; debug messages (level 4).
  839. ;opcache.log_verbosity_level=1
  840. ; Preferred Shared Memory back-end. Leave empty and let the system decide.
  841. ;opcache.preferred_memory_model=
  842. ; Protect the shared memory from unexpected writing during script execution.
  843. ; Useful for internal debugging only.
  844. ;opcache.protect_memory=0
  845. [curl]
  846. ; A default value for the CURLOPT_CAINFO option. This is required to be an
  847. ; absolute path.
  848. ;curl.cainfo =
  849. [openssl]
  850. ; The location of a Certificate Authority (CA) file on the local filesystem
  851. ; to use when verifying the identity of SSL/TLS peers. Most users should
  852. ; not specify a value for this directive as PHP will attempt to use the
  853. ; OS-managed cert stores in its absence. If specified, this value may still
  854. ; be overridden on a per-stream basis via the "cafile" SSL stream context
  855. ; option.
  856. ;openssl.cafile=
  857. ; If openssl.cafile is not specified or if the CA file is not found, the
  858. ; directory pointed to by openssl.capath is searched for a suitable
  859. ; certificate. This value must be a correctly hashed certificate directory.
  860. ; Most users should not specify a value for this directive as PHP will
  861. ; attempt to use the OS-managed cert stores in its absence. If specified,
  862. ; this value may still be overridden on a per-stream basis via the "capath"
  863. ; SSL stream context option.
  864. ;openssl.capath=
  865. ; Local Variables:
  866. ; tab-width: 4
  867. ; End:
  868. extension_dir="/data/php-fpm/lib/php/extensions/no-debug-non-zts-20131226/"
  869. extension=/data/php-fpm/lib/php/extensions/no-debug-non-zts-20131226/pdo_oci.so
  870. extension=oci8.so
  871. extension=zip.so

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/21683.html

相关文章

  • PHP标准配置php.ini (1)

    摘要: [PHP] ;;;;;;;;;;;;;;;;;;; ; About php.ini ; ;;;;;;;;;;;;;;;;;;; ; PHPs initialization file, generally called php.ini, is responsible for ; configuring many of the aspects of PHPs behavior. ...

    gclove 评论0 收藏0
  • php 学习笔记关于时区的那点事

    摘要:科普一下什么是时区众所周知地球绕着太阳转的同时也会自转因此同一时刻不同地区所接收到太阳照射的情况不同所以有的地区是日出有的地区是日落还有的地区可能是黑夜既然地球上的不同地区时间不同那总要有统一的时间刻度才能方便文化科技交流吧不然大家说的都是 科普一下什么是时区 众所周知,地球绕着太阳转的同时也会自转,因此同一时刻不同地区所接收到太阳照射的情况不同,所以有的地区是日出,有的地区是日落,还...

    xzavier 评论0 收藏0
  • PHP-CLI

    摘要:命令行参数详解查看的所有命令行参数,使用命令。在命令行参数中,提供了参数,使用该参数,可以列出当前的配置文件信息。 PHP作为一门web开发语言,通常情况下我们都是在Web Server中运行PHP,使用浏览器访问,因此很少关注其命令行操作以及相关参数的使用,但是,特别是在类Unix操作系统上,PHP可以作为一门脚本语言执行与shell类似的处理任务。php命令行(CLI)参数详解 查...

    yck 评论0 收藏0
  • PHP命令行下的世界

    摘要:命令行参数详解查看的所有命令行参数,使用命令。我们将会对大部分常用的命令行参数进行一一解释,以加深对能力的认识,更加快捷的在服务端命令行下使用或者调试各种因为对环境不熟悉而出现的问题。 PHP作为一门web开发语言,通常情况下我们都是在Web Server中运行PHP,使用浏览器访问,因此很少关注其命令行操作以及相关参数的使用,但是,特别是在类Unix操作系统上,PHP可以作为一门脚本...

    calx 评论0 收藏0
  • PHP标准配置php-fpm.conf

    摘要: ;;;;;;;;;;;;;;;;;;;;; ; FPM Configuration ; ;;;;;;;;;;;;;;;;;;;;; ; All relative paths in this configuration file are relative to PHPs install ; prefix (/usr/local/php). This prefix can be dyn...

    wfc_666 评论0 收藏0
  • PHP7 扩展自动化测试

    摘要:在安装及各种扩展的过程中,如果你是用源码安装,会注意到在成功之后总会有一句提示这个就是运行的自动化测试了。本文转自官方博客 在安装 PHP7 及各种扩展的过程中,如果你是用源码安装,会注意到在 make 成功之后总会有一句提示:Dont forget to run make test. 这个 make test 就是运行 PHP 的自动化测试了。 如果你刚刚安装完 PHP7,直接运行 ...

    graf 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<