1
0

php.ini 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  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. ; lighttpd: must be the same as server.document-root
  197. doc_root = /srv/www/htdocs
  198. ; The directory under which PHP opens the script using /~username used only
  199. ; if nonempty.
  200. user_dir =
  201. ; Directory in which the loadable extensions (modules) reside.
  202. extension_dir = "/usr/lib/php"
  203. ; Whether or not to enable the dl() function. The dl() function does NOT work
  204. ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
  205. ; disabled on them.
  206. enable_dl = On
  207. ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
  208. ; most web servers. Left undefined, PHP turns this on by default. You can
  209. ; turn it off here AT YOUR OWN RISK
  210. ; **You CAN safely turn this off for IIS, in fact, you MUST.**
  211. ; cgi.force_redirect = 1
  212. ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
  213. ; every request.
  214. ; cgi.nph = 1
  215. ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
  216. ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
  217. ; will look for to know it is OK to continue execution. Setting this variable MAY
  218. ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
  219. ; cgi.redirect_status_env = ;
  220. ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
  221. ; security tokens of the calling client. This allows IIS to define the
  222. ; security context that the request runs under. mod_fastcgi under Apache
  223. ; does not currently support this feature (03/17/2002)
  224. ; Set to 1 if running under IIS. Default is zero.
  225. ; fastcgi.impersonate = 1;
  226. ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
  227. ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
  228. ; is supported by Apache. When this option is set to 1 PHP will send
  229. ; RFC2616 compliant header.
  230. ; Default is zero.
  231. ;cgi.rfc2616_headers = 0
  232. ;;;;;;;;;;;;;;;;
  233. ; File Uploads ;
  234. ;;;;;;;;;;;;;;;;
  235. ; Whether to allow HTTP file uploads.
  236. file_uploads = On
  237. ; Temporary directory for HTTP uploaded files (will use system default if not
  238. ; specified).
  239. upload_tmp_dir = /tmp
  240. ; Maximum allowed size for uploaded files.
  241. upload_max_filesize = 2M
  242. ;;;;;;;;;;;;;;;;;;
  243. ; Fopen wrappers ;
  244. ;;;;;;;;;;;;;;;;;;
  245. ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
  246. allow_url_fopen = On
  247. ; Define the anonymous ftp password (your email address)
  248. ;from="john@doe.com"
  249. ; Define the User-Agent string
  250. ; user_agent="PHP"
  251. ; Default timeout for socket based streams (seconds)
  252. default_socket_timeout = 60
  253. ; If your scripts have to deal with files from Macintosh systems,
  254. ; or you are running on a Mac and need to deal with files from
  255. ; unix or win32 systems, setting this flag will cause PHP to
  256. ; automatically detect the EOL character in those files so that
  257. ; fgets() and file() will work regardless of the source of the file.
  258. ; auto_detect_line_endings = Off
  259. ;;;;;;;;;;;;;;;;;;;;;;
  260. ; Dynamic Extensions ;
  261. ;;;;;;;;;;;;;;;;;;;;;;
  262. ;
  263. ; If you wish to have an extension loaded automatically, use the following
  264. ; syntax:
  265. ;
  266. ; extension=modulename.extension
  267. ;
  268. ; For example, on Windows:
  269. ;
  270. ; extension=msql.dll
  271. ;
  272. ; ... or under UNIX:
  273. ;
  274. ; extension=msql.so
  275. ;
  276. ; Note that it should be the name of the module only; no directory information
  277. ; needs to go here. Specify the location of the extension with the
  278. ; extension_dir directive above.
  279. ;Windows Extensions
  280. ;Note that ODBC support is built in, so no dll is needed for it.
  281. ;
  282. ;extension=ftp.so
  283. ;extension=gd.so
  284. ;extension=mysql.so
  285. ;extension=pcre.so
  286. ;extension=session.so
  287. ;extension=sockets.so
  288. ;extension=xml.so
  289. ;;;;;;;;;;;;;;;;;;;
  290. ; Module Settings ;
  291. ;;;;;;;;;;;;;;;;;;;
  292. [SQL]
  293. sql.safe_mode = Off
  294. [Session]
  295. ; Handler used to store/retrieve data.
  296. session.save_handler = files
  297. ; Argument passed to save_handler. In the case of files, this is the path
  298. ; where data files are stored. Note: Windows users have to change this
  299. ; variable in order to use PHP's session functions.
  300. ;
  301. ; As of PHP 4.0.1, you can define the path as:
  302. ;
  303. ; session.save_path = "N;/path"
  304. ;
  305. ; where N is an integer. Instead of storing all the session files in
  306. ; /path, what this will do is use subdirectories N-levels deep, and
  307. ; store the session data in those directories. This is useful if you
  308. ; or your OS have problems with lots of files in one directory, and is
  309. ; a more efficient layout for servers that handle lots of sessions.
  310. ;
  311. ; NOTE 1: PHP will not create this directory structure automatically.
  312. ; You can use the script in the ext/session dir for that purpose.
  313. ; NOTE 2: See the section on garbage collection below if you choose to
  314. ; use subdirectories for session storage
  315. ;
  316. ; The file storage module creates files using mode 600 by default.
  317. ; You can change that by using
  318. ;
  319. ; session.save_path = "N;MODE;/path"
  320. ;
  321. ; where MODE is the octal representation of the mode. Note that this
  322. ; does not overwrite the process's umask.
  323. session.save_path = "/tmp"
  324. ; Whether to use cookies.
  325. session.use_cookies = 1
  326. ; This option enables administrators to make their users invulnerable to
  327. ; attacks which involve passing session ids in URLs; defaults to 0.
  328. ; session.use_only_cookies = 1
  329. ; Name of the session (used as cookie name).
  330. session.name = PHPSESSID
  331. ; Initialize session on request startup.
  332. session.auto_start = 0
  333. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  334. session.cookie_lifetime = 0
  335. ; The path for which the cookie is valid.
  336. session.cookie_path = /
  337. ; The domain for which the cookie is valid.
  338. session.cookie_domain =
  339. ; Handler used to serialize data. php is the standard serializer of PHP.
  340. session.serialize_handler = php
  341. ; Define the probability that the 'garbage collection' process is started
  342. ; on every session initialization.
  343. ; The probability is calculated by using gc_probability/gc_divisor,
  344. ; e.g. 1/100 means there is a 1% chance that the GC process starts
  345. ; on each request.
  346. session.gc_probability = 1
  347. session.gc_divisor = 100
  348. ; After this number of seconds, stored data will be seen as 'garbage' and
  349. ; cleaned up by the garbage collection process.
  350. session.gc_maxlifetime = 1440
  351. ; NOTE: If you are using the subdirectory option for storing session files
  352. ; (see session.save_path above), then garbage collection does *not*
  353. ; happen automatically. You will need to do your own garbage
  354. ; collection through a shell script, cron entry, or some other method.
  355. ; For example, the following script would is the equivalent of
  356. ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
  357. ; cd /path/to/sessions; find -cmin +24 | xargs rm
  358. ; PHP 4.2 and less have an undocumented feature/bug that allows you to
  359. ; to initialize a session variable in the global scope, albeit register_globals
  360. ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
  361. ; You can disable the feature and the warning separately. At this time,
  362. ; the warning is only displayed, if bug_compat_42 is enabled.
  363. session.bug_compat_42 = 1
  364. session.bug_compat_warn = 1
  365. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  366. ; HTTP_REFERER has to contain this substring for the session to be
  367. ; considered as valid.
  368. session.referer_check =
  369. ; How many bytes to read from the file.
  370. session.entropy_length = 0
  371. ; Specified here to create the session id.
  372. session.entropy_file =
  373. ;session.entropy_length = 16
  374. ;session.entropy_file = /dev/urandom
  375. ; Set to {nocache,private,public,} to determine HTTP caching aspects
  376. ; or leave this empty to avoid sending anti-caching headers.
  377. session.cache_limiter = nocache
  378. ; Document expires after n minutes.
  379. session.cache_expire = 180
  380. ; trans sid support is disabled by default.
  381. ; Use of trans sid may risk your users security.
  382. ; Use this option with caution.
  383. ; - User may send URL contains active session ID
  384. ; to other person via. email/irc/etc.
  385. ; - URL that contains active session ID may be stored
  386. ; in publically accessible computer.
  387. ; - User may access your site with the same session ID
  388. ; always using URL stored in browser's history or bookmarks.
  389. session.use_trans_sid = 0
  390. ; Select a hash function
  391. ; 0: MD5 (128 bits)
  392. ; 1: SHA-1 (160 bits)
  393. session.hash_function = 0
  394. ; Define how many bits are stored in each character when converting
  395. ; the binary hash data to something readable.
  396. ;
  397. ; 4 bits: 0-9, a-f
  398. ; 5 bits: 0-9, a-v
  399. ; 6 bits: 0-9, a-z, A-Z, "-", ","
  400. session.hash_bits_per_character = 4
  401. ; The URL rewriter will look for URLs in a defined set of HTML tags.
  402. ; form/fieldset are special; if you include them here, the rewriter will
  403. ; add a hidden <input> field with the info which is otherwise appended
  404. ; to URLs. If you want XHTML conformity, remove the form entry.
  405. ; Note that all valid entries require a "=", even if no value follows.
  406. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
  407. [Assertion]
  408. ; Assert(expr); active by default.
  409. ;assert.active = On
  410. ; Issue a PHP warning for each failed assertion.
  411. ;assert.warning = On
  412. ; Don't bail out by default.
  413. ;assert.bail = Off
  414. ; User-function to be called if an assertion fails.
  415. ;assert.callback = 0
  416. ; Eval the expression with current error_reporting(). Set to true if you want
  417. ; error_reporting(0) around the eval().
  418. ;assert.quiet_eval = 0
  419. [exif]
  420. ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
  421. ; With mbstring support this will automatically be converted into the encoding
  422. ; given by corresponding encode setting. When empty mbstring.internal_encoding
  423. ; is used. For the decode settings you can distinguish between motorola and
  424. ; intel byte order. A decode setting cannot be empty.
  425. ;exif.encode_unicode = ISO-8859-15
  426. ;exif.decode_unicode_motorola = UCS-2BE
  427. ;exif.decode_unicode_intel = UCS-2LE
  428. ;exif.encode_jis =
  429. ;exif.decode_jis_motorola = JIS
  430. ;exif.decode_jis_intel = JIS