php.ini 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. [PHP]
  2. cgi.fix_pathinfo=1
  3. zend.ze1_compatibility_mode = Off
  4. ;short_open_tag = Off
  5. asp_tags = Off
  6. precision = 12
  7. y2k_compliance = On
  8. output_buffering = Off
  9. zlib.output_compression = Off
  10. ;zlib.output_handler =
  11. implicit_flush = Off
  12. unserialize_callback_func=
  13. serialize_precision = 100
  14. allow_call_time_pass_reference = On
  15. safe_mode = Off
  16. safe_mode_gid = Off
  17. safe_mode_include_dir =
  18. safe_mode_exec_dir =
  19. safe_mode_allowed_env_vars = PHP_
  20. safe_mode_protected_env_vars = LD_LIBRARY_PATH
  21. ;open_basedir =
  22. disable_functions =
  23. disable_classes =
  24. ; Colors for Syntax Highlighting mode. Anything that's acceptable in
  25. ; <span style="color: ???????"> would work.
  26. ;highlight.string = #DD0000
  27. ;highlight.comment = #FF9900
  28. ;highlight.keyword = #007700
  29. ;highlight.bg = #FFFFFF
  30. ;highlight.default = #0000BB
  31. ;highlight.html = #000000
  32. expose_php = On
  33. ;;;;;;;;;;;;;;;;;;;
  34. ; Resource Limits ;
  35. ;;;;;;;;;;;;;;;;;;;
  36. max_execution_time = 30 ; Maximum execution time of each script, in seconds
  37. max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
  38. memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
  39. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  40. ; Error handling and logging ;
  41. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  42. ; error_reporting is a bit-field. Or each number up to get desired error
  43. ; reporting level
  44. ; E_ALL - All errors and warnings (doesn't include E_STRICT)
  45. ; E_ERROR - fatal run-time errors
  46. ; E_WARNING - run-time warnings (non-fatal errors)
  47. ; E_PARSE - compile-time parse errors
  48. ; E_NOTICE - run-time notices (these are warnings which often result
  49. ; from a bug in your code, but it's possible that it was
  50. ; intentional (e.g., using an uninitialized variable and
  51. ; relying on the fact it's automatically initialized to an
  52. ; empty string)
  53. ; E_STRICT - run-time notices, enable to have PHP suggest changes
  54. ; to your code which will ensure the best interoperability
  55. ; and forward compatibility of your code
  56. ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
  57. ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
  58. ; initial startup
  59. ; E_COMPILE_ERROR - fatal compile-time errors
  60. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  61. ; E_USER_ERROR - user-generated error message
  62. ; E_USER_WARNING - user-generated warning message
  63. ; E_USER_NOTICE - user-generated notice message
  64. ;
  65. ; Examples:
  66. ;
  67. ; - Show all errors, except for notices and coding standards warnings
  68. ;
  69. ;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
  70. ;
  71. ; - Show all errors, except for notices
  72. ;
  73. ;error_reporting = E_ALL & ~E_NOTICE
  74. ;
  75. ; - Show only errors
  76. ;
  77. ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
  78. ;
  79. ; - Show all errors except for notices and coding standards warnings
  80. ;
  81. error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
  82. ; Print out errors (as a part of the output). For production web sites,
  83. ; you're strongly encouraged to turn this feature off, and use error logging
  84. ; instead (see below). Keeping display_errors enabled on a production web site
  85. ; may reveal security information to end users, such as file paths on your Web
  86. ; server, your database schema or other information.
  87. display_errors = On
  88. ; Even when display_errors is on, errors that occur during PHP's startup
  89. ; sequence are not displayed. It's strongly recommended to keep
  90. ; display_startup_errors off, except for when debugging.
  91. display_startup_errors = Off
  92. ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  93. ; As stated above, you're strongly advised to use error logging in place of
  94. ; error displaying on production web sites.
  95. log_errors = Off
  96. ; Set maximum length of log_errors. In error_log information about the source is
  97. ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
  98. log_errors_max_len = 1024
  99. ; Do not log repeated messages. Repeated errors must occur in same file on same
  100. ; line until ignore_repeated_source is set true.
  101. ignore_repeated_errors = Off
  102. ; Ignore source of message when ignoring repeated messages. When this setting
  103. ; is On you will not log errors with repeated messages from different files or
  104. ; sourcelines.
  105. ignore_repeated_source = Off
  106. ; If this parameter is set to Off, then memory leaks will not be shown (on
  107. ; stdout or in the log). This has only effect in a debug compile, and if
  108. ; error reporting includes E_WARNING in the allowed list
  109. report_memleaks = On
  110. ; Store the last error/warning message in $php_errormsg (boolean).
  111. track_errors = Off
  112. ; Disable the inclusion of HTML tags in error messages.
  113. ; Note: Never use this feature for production boxes.
  114. ;html_errors = Off
  115. ; If html_errors is set On PHP produces clickable error messages that direct
  116. ; to a page describing the error or function causing the error in detail.
  117. ; You can download a copy of the PHP manual from http://www.php.net/docs.php
  118. ; and change docref_root to the base URL of your local copy including the
  119. ; leading '/'. You must also specify the file extension being used including
  120. ; the dot.
  121. ; Note: Never use this feature for production boxes.
  122. ;docref_root = "/phpmanual/"
  123. ;docref_ext = .html
  124. ; String to output before an error message.
  125. ;error_prepend_string = "<font color=ff0000>"
  126. ; String to output after an error message.
  127. ;error_append_string = "</font>"
  128. ; Log errors to specified file.
  129. ;error_log = filename
  130. ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
  131. ;error_log = syslog
  132. ;;;;;;;;;;;;;;;;;
  133. ; Data Handling ;
  134. ;;;;;;;;;;;;;;;;;
  135. ;
  136. ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
  137. ; The separator used in PHP generated URLs to separate arguments.
  138. ; Default is "&".
  139. ;arg_separator.output = "&amp;"
  140. ; List of separator(s) used by PHP to parse input URLs into variables.
  141. ; Default is "&".
  142. ; NOTE: Every character in this directive is considered as separator!
  143. ;arg_separator.input = ";&"
  144. ; This directive describes the order in which PHP registers GET, POST, Cookie,
  145. ; Environment and Built-in variables (G, P, C, E & S respectively, often
  146. ; referred to as EGPCS or GPC). Registration is done from left to right, newer
  147. ; values override older values.
  148. variables_order = "EGPCS"
  149. ; Whether or not to register the EGPCS variables as global variables. You may
  150. ; want to turn this off if you don't want to clutter your scripts' global scope
  151. ; with user data. This makes most sense when coupled with track_vars - in which
  152. ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
  153. ; variables.
  154. ;
  155. ; You should do your best to write your scripts so that they do not require
  156. ; register_globals to be on; Using form variables as globals can easily lead
  157. ; to possible security problems, if the code is not very well thought of.
  158. register_globals = Off
  159. ; This directive tells PHP whether to declare the argv&argc variables (that
  160. ; would contain the GET information). If you don't use these variables, you
  161. ; should turn it off for increased performance.
  162. register_argc_argv = On
  163. ; Maximum size of POST data that PHP will accept.
  164. post_max_size = 8M
  165. ; Magic quotes
  166. ;
  167. ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
  168. magic_quotes_runtime = Off
  169. ; Use Sybase-style magic quotes (escape ' with '' instead of \').
  170. magic_quotes_sybase = Off
  171. ; Automatically add files before or after any PHP document.
  172. auto_prepend_file =
  173. auto_append_file =
  174. ; As of 4.0b4, PHP always outputs a character encoding by default in
  175. ; the Content-type: header. To disable sending of the charset, simply
  176. ; set it to be empty.
  177. ;
  178. ; PHP's built-in default is text/html
  179. default_mimetype = "text/html"
  180. ;default_charset = "iso-8859-1"
  181. ; Always populate the $HTTP_RAW_POST_DATA variable.
  182. ;always_populate_raw_post_data = On
  183. ;;;;;;;;;;;;;;;;;;;;;;;;;
  184. ; Paths and Directories ;
  185. ;;;;;;;;;;;;;;;;;;;;;;;;;
  186. ; UNIX: "/path1:/path2"
  187. ;include_path = ".:/php/includes"
  188. ;
  189. ; Windows: "\path1;\path2"
  190. ;include_path = ".;c:\php\includes"
  191. ; The root of the PHP pages, used only if nonempty.
  192. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
  193. ; if you are running php as a CGI under any web server (other than IIS)
  194. ; see documentation for security issues. The alternate is to use the
  195. ; cgi.force_redirect configuration below
  196. doc_root = /www
  197. ; The directory under which PHP opens the script using /~username used only
  198. ; if nonempty.
  199. user_dir =
  200. ; Directory in which the loadable extensions (modules) reside.
  201. extension_dir = "/usr/lib/php"
  202. ; Whether or not to enable the dl() function. The dl() function does NOT work
  203. ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
  204. ; disabled on them.
  205. enable_dl = On
  206. ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
  207. ; most web servers. Left undefined, PHP turns this on by default. You can
  208. ; turn it off here AT YOUR OWN RISK
  209. ; **You CAN safely turn this off for IIS, in fact, you MUST.**
  210. ; cgi.force_redirect = 1
  211. ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
  212. ; every request.
  213. ; cgi.nph = 1
  214. ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
  215. ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
  216. ; will look for to know it is OK to continue execution. Setting this variable MAY
  217. ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
  218. ; cgi.redirect_status_env = ;
  219. ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
  220. ; security tokens of the calling client. This allows IIS to define the
  221. ; security context that the request runs under. mod_fastcgi under Apache
  222. ; does not currently support this feature (03/17/2002)
  223. ; Set to 1 if running under IIS. Default is zero.
  224. ; fastcgi.impersonate = 1;
  225. ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
  226. ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
  227. ; is supported by Apache. When this option is set to 1 PHP will send
  228. ; RFC2616 compliant header.
  229. ; Default is zero.
  230. ;cgi.rfc2616_headers = 0
  231. ;;;;;;;;;;;;;;;;
  232. ; File Uploads ;
  233. ;;;;;;;;;;;;;;;;
  234. ; Whether to allow HTTP file uploads.
  235. file_uploads = On
  236. ; Temporary directory for HTTP uploaded files (will use system default if not
  237. ; specified).
  238. upload_tmp_dir = /tmp
  239. ; Maximum allowed size for uploaded files.
  240. upload_max_filesize = 2M
  241. ;;;;;;;;;;;;;;;;;;
  242. ; Fopen wrappers ;
  243. ;;;;;;;;;;;;;;;;;;
  244. ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
  245. allow_url_fopen = On
  246. ; Define the anonymous ftp password (your email address)
  247. ;from="john@doe.com"
  248. ; Define the User-Agent string
  249. ; user_agent="PHP"
  250. ; Default timeout for socket based streams (seconds)
  251. default_socket_timeout = 60
  252. ; If your scripts have to deal with files from Macintosh systems,
  253. ; or you are running on a Mac and need to deal with files from
  254. ; unix or win32 systems, setting this flag will cause PHP to
  255. ; automatically detect the EOL character in those files so that
  256. ; fgets() and file() will work regardless of the source of the file.
  257. ; auto_detect_line_endings = Off
  258. ;;;;;;;;;;;;;;;;;;;;;;
  259. ; Dynamic Extensions ;
  260. ;;;;;;;;;;;;;;;;;;;;;;
  261. ;
  262. ; If you wish to have an extension loaded automatically, use the following
  263. ; syntax:
  264. ;
  265. ; extension=modulename.extension
  266. ;
  267. ; For example, on Windows:
  268. ;
  269. ; extension=msql.dll
  270. ;
  271. ; ... or under UNIX:
  272. ;
  273. ; extension=msql.so
  274. ;
  275. ; Note that it should be the name of the module only; no directory information
  276. ; needs to go here. Specify the location of the extension with the
  277. ; extension_dir directive above.
  278. ;Windows Extensions
  279. ;Note that ODBC support is built in, so no dll is needed for it.
  280. ;
  281. ;extension=ftp.so
  282. ;extension=gd.so
  283. ;extension=mysql.so
  284. ;extension=pcre.so
  285. ;extension=session.so
  286. ;extension=sockets.so
  287. ;extension=xml.so
  288. ;;;;;;;;;;;;;;;;;;;
  289. ; Module Settings ;
  290. ;;;;;;;;;;;;;;;;;;;
  291. [SQL]
  292. sql.safe_mode = Off
  293. [Session]
  294. ; Handler used to store/retrieve data.
  295. session.save_handler = files
  296. ; Argument passed to save_handler. In the case of files, this is the path
  297. ; where data files are stored. Note: Windows users have to change this
  298. ; variable in order to use PHP's session functions.
  299. ;
  300. ; As of PHP 4.0.1, you can define the path as:
  301. ;
  302. ; session.save_path = "N;/path"
  303. ;
  304. ; where N is an integer. Instead of storing all the session files in
  305. ; /path, what this will do is use subdirectories N-levels deep, and
  306. ; store the session data in those directories. This is useful if you
  307. ; or your OS have problems with lots of files in one directory, and is
  308. ; a more efficient layout for servers that handle lots of sessions.
  309. ;
  310. ; NOTE 1: PHP will not create this directory structure automatically.
  311. ; You can use the script in the ext/session dir for that purpose.
  312. ; NOTE 2: See the section on garbage collection below if you choose to
  313. ; use subdirectories for session storage
  314. ;
  315. ; The file storage module creates files using mode 600 by default.
  316. ; You can change that by using
  317. ;
  318. ; session.save_path = "N;MODE;/path"
  319. ;
  320. ; where MODE is the octal representation of the mode. Note that this
  321. ; does not overwrite the process's umask.
  322. session.save_path = "/tmp"
  323. ; Whether to use cookies.
  324. session.use_cookies = 1
  325. ; This option enables administrators to make their users invulnerable to
  326. ; attacks which involve passing session ids in URLs; defaults to 0.
  327. ; session.use_only_cookies = 1
  328. ; Name of the session (used as cookie name).
  329. session.name = PHPSESSID
  330. ; Initialize session on request startup.
  331. session.auto_start = 0
  332. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  333. session.cookie_lifetime = 0
  334. ; The path for which the cookie is valid.
  335. session.cookie_path = /
  336. ; The domain for which the cookie is valid.
  337. session.cookie_domain =
  338. ; Handler used to serialize data. php is the standard serializer of PHP.
  339. session.serialize_handler = php
  340. ; Define the probability that the 'garbage collection' process is started
  341. ; on every session initialization.
  342. ; The probability is calculated by using gc_probability/gc_divisor,
  343. ; e.g. 1/100 means there is a 1% chance that the GC process starts
  344. ; on each request.
  345. session.gc_probability = 1
  346. session.gc_divisor = 100
  347. ; After this number of seconds, stored data will be seen as 'garbage' and
  348. ; cleaned up by the garbage collection process.
  349. session.gc_maxlifetime = 1440
  350. ; NOTE: If you are using the subdirectory option for storing session files
  351. ; (see session.save_path above), then garbage collection does *not*
  352. ; happen automatically. You will need to do your own garbage
  353. ; collection through a shell script, cron entry, or some other method.
  354. ; For example, the following script would is the equivalent of
  355. ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
  356. ; cd /path/to/sessions; find -cmin +24 | xargs rm
  357. ; PHP 4.2 and less have an undocumented feature/bug that allows you to
  358. ; to initialize a session variable in the global scope, albeit register_globals
  359. ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
  360. ; You can disable the feature and the warning separately. At this time,
  361. ; the warning is only displayed, if bug_compat_42 is enabled.
  362. session.bug_compat_42 = 1
  363. session.bug_compat_warn = 1
  364. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  365. ; HTTP_REFERER has to contain this substring for the session to be
  366. ; considered as valid.
  367. session.referer_check =
  368. ; How many bytes to read from the file.
  369. session.entropy_length = 0
  370. ; Specified here to create the session id.
  371. session.entropy_file =
  372. ;session.entropy_length = 16
  373. ;session.entropy_file = /dev/urandom
  374. ; Set to {nocache,private,public,} to determine HTTP caching aspects
  375. ; or leave this empty to avoid sending anti-caching headers.
  376. session.cache_limiter = nocache
  377. ; Document expires after n minutes.
  378. session.cache_expire = 180
  379. ; trans sid support is disabled by default.
  380. ; Use of trans sid may risk your users security.
  381. ; Use this option with caution.
  382. ; - User may send URL contains active session ID
  383. ; to other person via. email/irc/etc.
  384. ; - URL that contains active session ID may be stored
  385. ; in publically accessible computer.
  386. ; - User may access your site with the same session ID
  387. ; always using URL stored in browser's history or bookmarks.
  388. session.use_trans_sid = 0
  389. ; Select a hash function
  390. ; 0: MD5 (128 bits)
  391. ; 1: SHA-1 (160 bits)
  392. session.hash_function = 0
  393. ; Define how many bits are stored in each character when converting
  394. ; the binary hash data to something readable.
  395. ;
  396. ; 4 bits: 0-9, a-f
  397. ; 5 bits: 0-9, a-v
  398. ; 6 bits: 0-9, a-z, A-Z, "-", ","
  399. session.hash_bits_per_character = 4
  400. ; The URL rewriter will look for URLs in a defined set of HTML tags.
  401. ; form/fieldset are special; if you include them here, the rewriter will
  402. ; add a hidden <input> field with the info which is otherwise appended
  403. ; to URLs. If you want XHTML conformity, remove the form entry.
  404. ; Note that all valid entries require a "=", even if no value follows.
  405. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
  406. [Assertion]
  407. ; Assert(expr); active by default.
  408. ;assert.active = On
  409. ; Issue a PHP warning for each failed assertion.
  410. ;assert.warning = On
  411. ; Don't bail out by default.
  412. ;assert.bail = Off
  413. ; User-function to be called if an assertion fails.
  414. ;assert.callback = 0
  415. ; Eval the expression with current error_reporting(). Set to true if you want
  416. ; error_reporting(0) around the eval().
  417. ;assert.quiet_eval = 0
  418. [exif]
  419. ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
  420. ; With mbstring support this will automatically be converted into the encoding
  421. ; given by corresponding encode setting. When empty mbstring.internal_encoding
  422. ; is used. For the decode settings you can distinguish between motorola and
  423. ; intel byte order. A decode setting cannot be empty.
  424. ;exif.encode_unicode = ISO-8859-15
  425. ;exif.decode_unicode_motorola = UCS-2BE
  426. ;exif.decode_unicode_intel = UCS-2LE
  427. ;exif.encode_jis =
  428. ;exif.decode_jis_motorola = JIS
  429. ;exif.decode_jis_intel = JIS