You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

469 lines
22 KiB

  1. [PHP]
  2. ;;;;;;;;;;;;;;;;;;;
  3. ; About this file ;
  4. ;;;;;;;;;;;;;;;;;;;
  5. ;
  6. ; This is the 'optimized', PHP 4-style version of the php.ini-dist file.
  7. ; For general information about the php.ini file, please consult the php.ini-dist
  8. ; file, included in your PHP distribution.
  9. ;
  10. ; This file is different from the php.ini-dist file in the fact that it features
  11. ; different values for several directives, in order to improve performance, while
  12. ; possibly breaking compatibility with the standard out-of-the-box behavior of
  13. ; PHP 3. Please make sure you read what's different, and modify your scripts
  14. ; accordingly, if you decide to use this file instead.
  15. ;
  16. ; - allow_call_time_pass_reference = Off
  17. ; It's not possible to decide to force a variable to be passed by reference
  18. ; when calling a function. The PHP 4 style to do this is by making the
  19. ; function require the relevant argument by reference.
  20. ; - register_globals = Off
  21. ; Global variables are no longer registered for input data (POST, GET, cookies,
  22. ; environment and other server variables). Instead of using $foo, you must use
  23. ; $HTTP_POST_VARS["foo"], $HTTP_GET_VARS["foo"], $HTTP_COOKIE_VARS["foo"],
  24. ; $HTTP_ENV_VARS["foo"] or $HTTP_SERVER_VARS["foo"], depending on which kind
  25. ; of input source you're expecting 'foo' to come from.
  26. ; - register_argc_argv = Off
  27. ; Disables registration of the somewhat redundant $argv and $argc global
  28. ; variables.
  29. ; - magic_quotes_gpc = Off
  30. ; Input data is no longer escaped with slashes so that it can be sent into
  31. ; SQL databases without further manipulation. Instead, you should use the
  32. ; function addslashes() on each input element you wish to send to a database.
  33. ; - variables_order = "GPCS"
  34. ; The environment variables are not hashed into the $HTTP_ENV_VARS[]. To access
  35. ; environment variables, you can use getenv() instead.
  36. ;;;;;;;;;;;;;;;;;;;;
  37. ; Language Options ;
  38. ;;;;;;;;;;;;;;;;;;;;
  39. engine = On ; Enable the PHP scripting language engine under Apache
  40. short_open_tag = On ; allow the <? tag. otherwise, only <?php and <script> tags are recognized.
  41. asp_tags = Off ; allow ASP-style <% %> tags
  42. precision = 14 ; number of significant digits displayed in floating point numbers
  43. y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers)
  44. output_buffering = Off ; Output buffering allows you to send header lines (including cookies)
  45. ; even after you send body content, in the price of slowing PHP's
  46. ; output layer a bit.
  47. ; You can enable output buffering by in runtime by calling the output
  48. ; buffering functions, or enable output buffering for all files
  49. ; by setting this directive to On.
  50. implicit_flush = Off ; Implicit flush tells PHP to tell the output layer to flush itself
  51. ; automatically after every output block. This is equivalent to
  52. ; calling the PHP function flush() after each and every call to print()
  53. ; or echo() and each and every HTML block.
  54. ; Turning this option on has serious performance implications, and
  55. ; is generally recommended for debugging purposes only.
  56. allow_call_time_pass_reference = Off ; whether to enable the ability to force arguments to be
  57. ; passed by reference at function-call time. This method
  58. ; is deprecated, and is likely to be unsupported in future
  59. ; versions of PHP/Zend. The encouraged method of specifying
  60. ; which arguments should be passed by reference is in the
  61. ; function declaration. You're encouraged to try and
  62. ; turn this option Off, and make sure your scripts work
  63. ; properly with it, to ensure they will work with future
  64. ; versions of the language (you will receive a warning
  65. ; each time you use this feature, and the argument will
  66. ; be passed by value instead of by reference).
  67. ; Safe Mode
  68. safe_mode = Off
  69. safe_mode_exec_dir =
  70. safe_mode_allowed_env_vars = PHP_ ; Setting certain environment variables
  71. ; may be a potential security breach.
  72. ; This directive contains a comma-delimited
  73. ; list of prefixes. In Safe Mode, the
  74. ; user may only alter environment
  75. ; variables whose names begin with the
  76. ; prefixes supplied here.
  77. ; By default, users will only be able
  78. ; to set environment variables that begin
  79. ; with PHP_ (e.g. PHP_FOO=BAR).
  80. ; Note: If this directive is empty, PHP
  81. ; will let the user modify ANY environment
  82. ; variable!
  83. safe_mode_protected_env_vars = LD_LIBRARY_PATH ; This directive contains a comma-
  84. ; delimited list of environment variables,
  85. ; that the end user won't be able to
  86. ; change using putenv().
  87. ; These variables will be protected
  88. ; even if safe_mode_allowed_env_vars is
  89. ; set to allow to change them.
  90. disable_functions = ; This directive allows you to disable certain
  91. ; functions for security reasons. It receives
  92. ; a comma separated list of function names.
  93. ; This directive is *NOT* affected by whether
  94. ; Safe Mode is turned on or off.
  95. ; Colors for Syntax Highlighting mode. Anything that's acceptable in <font color=???> would work.
  96. highlight.string = #DD0000
  97. highlight.comment = #FF8000
  98. highlight.keyword = #007700
  99. highlight.bg = #FFFFFF
  100. highlight.default = #0000BB
  101. highlight.html = #000000
  102. ; Misc
  103. expose_php = On ; Decides whether PHP may expose the fact that it is installed on the
  104. ; server (e.g., by adding its signature to the Web server header).
  105. ; It is no security threat in any way, but it makes it possible
  106. ; to determine whether you use PHP on your server or not.
  107. ;;;;;;;;;;;;;;;;;;;
  108. ; Resource Limits ;
  109. ;;;;;;;;;;;;;;;;;;;
  110. max_execution_time = 30 ; Maximum execution time of each script, in seconds
  111. memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
  112. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  113. ; Error handling and logging ;
  114. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  115. ; error_reporting is a bit-field. Or each number up to get desired error reporting level
  116. ; E_ALL - All errors and warnings
  117. ; E_ERROR - fatal run-time errors
  118. ; E_WARNING - run-time warnings (non fatal errors)
  119. ; E_PARSE - compile-time parse errors
  120. ; E_NOTICE - run-time notices (these are warnings which often result from a bug in
  121. ; your code, but it's possible that it was intentional (e.g., using an
  122. ; uninitialized variable and relying on the fact it's automatically
  123. ; initialized to an empty string)
  124. ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
  125. ; E_CORE_WARNING - warnings (non fatal errors) that occur during PHP's initial startup
  126. ; E_COMPILE_ERROR - fatal compile-time errors
  127. ; E_COMPILE_WARNING - compile-time warnings (non fatal errors)
  128. ; E_USER_ERROR - user-generated error message
  129. ; E_USER_WARNING - user-generated warning message
  130. ; E_USER_NOTICE - user-generated notice message
  131. ; Examples:
  132. ; error_reporting = E_ALL & ~E_NOTICE ; show all errors, except for notices
  133. ; error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; show only errors
  134. error_reporting = E_ALL & ~E_NOTICE ; Show all errors except for notices
  135. display_errors = On ; Print out errors (as a part of the output)
  136. ; For production web sites, you're strongly encouraged
  137. ; to turn this feature off, and use error logging instead (see below).
  138. ; Keeping display_errors enabled on a production web site may reveal
  139. ; security information to end users, such as file paths on your Web server,
  140. ; your database schema or other information.
  141. display_startup_errors = Off ; Even when display_errors is on, errors that occur during
  142. ; PHP's startup sequence are not displayed. It's strongly
  143. ; recommended to keep display_startup_errors off, except for
  144. ; when debugging.
  145. log_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  146. ; As stated above, you're strongly advised to use error logging in place of
  147. ; error displaying on production web sites.
  148. track_errors = Off ; Store the last error/warning message in $php_errormsg (boolean)
  149. ;error_prepend_string = "<font color=ff0000>" ; string to output before an error message
  150. ;error_append_string = "</font>" ; string to output after an error message
  151. ;error_log = filename ; log errors to specified file
  152. ;error_log = syslog ; log errors to syslog (Event Log on NT, not valid in Windows 95)
  153. warn_plus_overloading = Off ; warn if the + operator is used with strings
  154. ;;;;;;;;;;;;;;;;;
  155. ; Data Handling ;
  156. ;;;;;;;;;;;;;;;;;
  157. variables_order = "GPCS" ; This directive describes the order in which PHP registers
  158. ; GET, POST, Cookie, Environment and Built-in variables (G, P,
  159. ; C, E & S respectively, often referred to as EGPCS or GPC).
  160. ; Registration is done from left to right, newer values override
  161. ; older values.
  162. register_globals = Off ; Whether or not to register the EGPCS variables as global
  163. ; variables. You may want to turn this off if you don't want
  164. ; to clutter your scripts' global scope with user data. This makes
  165. ; most sense when coupled with track_vars - in which case you can
  166. ; access all of the GPC variables through the $HTTP_*_VARS[],
  167. ; variables.
  168. register_argc_argv = Off ; This directive tells PHP whether to declare the argv&argc
  169. ; variables (that would contain the GET information). If you
  170. ; don't use these variables, you should turn it off for
  171. ; increased performance (you should try not to use it anyway,
  172. ; for less likelihood of security bugs in your code).
  173. post_max_size = 8M ; Maximum size of POST data that PHP will accept.
  174. gpc_order = "GPC" ; This directive is deprecated. Use variables_order instead.
  175. ; Magic quotes
  176. magic_quotes_gpc = Off ; magic quotes for incoming GET/POST/Cookie data
  177. magic_quotes_runtime= Off ; magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
  178. magic_quotes_sybase = Off ; Use Sybase-style magic quotes (escape ' with '' instead of \')
  179. ; automatically add files before or after any PHP document
  180. auto_prepend_file =
  181. auto_append_file =
  182. ; As of 4.0b4, PHP always outputs a character encoding by default in
  183. ; the Content-type: header. To disable sending of the charset, simply
  184. ; set it to be empty.
  185. ; PHP's built-in default is text/html
  186. default_mimetype = "text/html"
  187. ;default_charset = "iso-8859-1"
  188. ;;;;;;;;;;;;;;;;;;;;;;;;;
  189. ; Paths and Directories ;
  190. ;;;;;;;;;;;;;;;;;;;;;;;;;
  191. include_path = ; UNIX: "/path1:/path2" Windows: "\path1;\path2"
  192. doc_root = ; the root of the php pages, used only if nonempty
  193. user_dir = ; the directory under which php opens the script using /~username, used only if nonempty
  194. extension_dir = ./ ; directory in which the loadable extensions (modules) reside
  195. enable_dl = On ; Whether or not to enable the dl() function.
  196. ; The dl() function does NOT properly work in multithreaded
  197. ; servers, such as IIS or Zeus, and is automatically disabled
  198. ; on them.
  199. ;;;;;;;;;;;;;;;;
  200. ; File Uploads ;
  201. ;;;;;;;;;;;;;;;;
  202. file_uploads = On ; Whether to allow HTTP file uploads
  203. ;upload_tmp_dir = ; temporary directory for HTTP uploaded files (will use system default if not specified)
  204. upload_max_filesize = 2M ; Maximum allowed size for uploaded files
  205. ;;;;;;;;;;;;;;;;;;;;;;
  206. ; Dynamic Extensions ;
  207. ;;;;;;;;;;;;;;;;;;;;;;
  208. ; if you wish to have an extension loaded automaticly, use the
  209. ; following syntax: extension=modulename.extension
  210. ; for example, on windows,
  211. ; extension=msql.dll
  212. ; or under UNIX,
  213. ; extension=msql.so
  214. ; Note that it should be the name of the module only, no directory information
  215. ; needs to go here. Specify the location of the extension with the extension_dir directive above.
  216. ;Windows Extensions
  217. ;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
  218. ;
  219. ;extension=php_calendar.dll
  220. ;extension=php_cpdf.dll
  221. ;extension=php_cybercash.dll
  222. ;extension=php_db.dll
  223. ;extension=php_dbase.dll
  224. ;extension=php_domxml.dll
  225. ;extension=php_dotnet.dll
  226. ;extension=php_exif.dll
  227. ;extension=php_fdf.dll
  228. ;extension=php_ftp.dll
  229. ;extension=php_gd.dll
  230. ;extension=php_gettext.dll
  231. ;extension=php_ifx.dll
  232. ;extension=php_imap.dll
  233. ;extension=php_interbase.dll
  234. ;extension=php_java.dll
  235. ;extension=php_ldap.dll
  236. ;extension=php_mhash.dll
  237. ;extension=php_mssql65.dll
  238. ;extension=php_mssql70.dll
  239. ;extension=php_oci8.dll
  240. ;extension=php_oracle.dll
  241. ;extension=php_pdf.dll
  242. ;extension=php_pgsql.dll
  243. ;extension=php_sablot.dll
  244. ;extension=php_swf.dll
  245. ;extension=php_sybase_ct.dll
  246. ;extension=php_zlib.dll
  247. ;;;;;;;;;;;;;;;;;;;
  248. ; Module Settings ;
  249. ;;;;;;;;;;;;;;;;;;;
  250. [Syslog]
  251. define_syslog_variables = Off ; Whether or not to define the various syslog variables,
  252. ; e.g. $LOG_PID, $LOG_CRON, etc. Turning it off is a
  253. ; good idea performance-wise. In runtime, you can define
  254. ; these variables by calling define_syslog_variables()
  255. [mail function]
  256. SMTP = localhost ;for win32 only
  257. sendmail_from = me@localhost.com ;for win32 only
  258. ;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t -i')
  259. [Debugger]
  260. debugger.host = localhost
  261. debugger.port = 7869
  262. debugger.enabled = False
  263. [Logging]
  264. ; These configuration directives are used by the example logging mechanism.
  265. ; See examples/README.logging for more explanation.
  266. ;logging.method = db
  267. ;logging.directory = /path/to/log/directory
  268. [Java]
  269. ;java.class.path = .\php_java.jar
  270. ;java.home = c:\jdk
  271. ;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
  272. ;java.library.path = .\
  273. [SQL]
  274. sql.safe_mode = Off
  275. [ODBC]
  276. ;uodbc.default_db = Not yet implemented
  277. ;uodbc.default_user = Not yet implemented
  278. ;uodbc.default_pw = Not yet implemented
  279. uodbc.allow_persistent = On ; allow or prevent persistent links
  280. uodbc.check_persistent = On ; check that a connection is still validbefore reuse
  281. uodbc.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  282. uodbc.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  283. uodbc.defaultlrl = 4096 ; Handling of LONG fields. Returns number of bytes to variables, 0 means passthru
  284. uodbc.defaultbinmode = 1 ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char
  285. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation of uodbc.defaultlrl
  286. ; and uodbc.defaultbinmode
  287. [MySQL]
  288. mysql.allow_persistent = On ; allow or prevent persistent link
  289. mysql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  290. mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  291. mysql.default_port = ; default port number for mysql_connect(). If unset,
  292. ; mysql_connect() will use the $MYSQL_TCP_PORT, or the mysql-tcp
  293. ; entry in /etc/services, or the compile-time defined MYSQL_PORT
  294. ; (in that order). Win32 will only look at MYSQL_PORT.
  295. mysql.default_socket = ; default socket name for local MySQL connects. If empty, uses the built-in
  296. ; MySQL defaults
  297. mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode)
  298. mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode)
  299. mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode)
  300. ; Note that this is generally a *bad* idea to store passwords
  301. ; in this file. *Any* user with PHP access can run
  302. ; 'echo cfg_get_var("mysql.default_password")' and reveal that
  303. ; password! And of course, any users with read access to this
  304. ; file will be able to reveal the password as well.
  305. [mSQL]
  306. msql.allow_persistent = On ; allow or prevent persistent link
  307. msql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  308. msql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  309. [PostgresSQL]
  310. pgsql.allow_persistent = On ; allow or prevent persistent link
  311. pgsql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  312. pgsql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  313. [Sybase]
  314. sybase.allow_persistent = On ; allow or prevent persistent link
  315. sybase.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  316. sybase.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  317. ;sybase.interface_file = "/usr/sybase/interfaces"
  318. sybase.min_error_severity = 10 ; minimum error severity to display
  319. sybase.min_message_severity = 10 ; minimum message severity to display
  320. sybase.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  321. ; If on, this will cause PHP to automatically assign types to results
  322. ; according to their Sybase type, instead of treating them all as
  323. ; strings. This compatability mode will probably not stay around
  324. ; forever, so try applying whatever necessary changes to your code,
  325. ; and turn it off.
  326. [Sybase-CT]
  327. sybct.allow_persistent = On ; allow or prevent persistent link
  328. sybct.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  329. sybct.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  330. sybct.min_server_severity = 10 ; minimum server message severity to display
  331. sybct.min_client_severity = 10 ; minimum client message severity to display
  332. [bcmath]
  333. bcmath.scale = 0 ; number of decimal digits for all bcmath functions
  334. [browscap]
  335. ;browscap = extra/browscap.ini
  336. [Informix]
  337. ifx.default_host = ; default host for ifx_connect() (doesn't apply in safe mode)
  338. ifx.default_user = ; default user for ifx_connect() (doesn't apply in safe mode)
  339. ifx.default_password = ; default password for ifx_connect() (doesn't apply in safe mode)
  340. ifx.allow_persistent = On ; allow or prevent persistent link
  341. ifx.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  342. ifx.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  343. ifx.textasvarchar = 0 ; if set on, select statements return the contents of a text blob instead of it's id
  344. ifx.byteasvarchar = 0 ; if set on, select statements return the contents of a byte blob instead of it's id
  345. ifx.charasvarchar = 0 ; trailing blanks are stripped from fixed-length char columns. May help the life
  346. ; of Informix SE users.
  347. ifx.blobinfile = 0 ; if set on, the contents of text&byte blobs are dumped to a file instead of
  348. ; keeping them in memory
  349. ifx.nullformat = 0 ; NULL's are returned as empty strings, unless this is set to 1. In that case,
  350. ; NULL's are returned as string 'NULL'.
  351. [Session]
  352. session.save_handler = files ; handler used to store/retrieve data
  353. session.save_path = /tmp ; argument passed to save_handler
  354. ; in the case of files, this is the
  355. ; path where data files are stored
  356. session.use_cookies = 1 ; whether to use cookies
  357. session.name = PHPSESSID
  358. ; name of the session
  359. ; is used as cookie name
  360. session.auto_start = 0 ; initialize session on request startup
  361. session.cookie_lifetime = 0 ; lifetime in seconds of cookie
  362. ; or if 0, until browser is restarted
  363. session.cookie_path = / ; the path the cookie is valid for
  364. session.cookie_domain = ; the domain the cookie is valid for
  365. session.serialize_handler = php ; handler used to serialize data
  366. ; php is the standard serializer of PHP
  367. session.gc_probability = 1 ; percentual probability that the
  368. ; 'garbage collection' process is started
  369. ; on every session initialization
  370. session.gc_maxlifetime = 1440 ; after this number of seconds, stored
  371. ; data will be seen as 'garbage' and
  372. ; cleaned up by the gc process
  373. session.referer_check = ; check HTTP Referer to invalidate
  374. ; externally stored URLs containing ids
  375. session.entropy_length = 0 ; how many bytes to read from the file
  376. session.entropy_file = ; specified here to create the session id
  377. ; session.entropy_length = 16
  378. ; session.entropy_file = /dev/urandom
  379. session.cache_limiter = nocache ; set to {nocache,private,public} to
  380. ; determine HTTP caching aspects
  381. session.cache_expire = 180 ; document expires after n minutes
  382. session.use_trans_sid = 1 ; use transient sid support if enabled
  383. ; by compiling with --enable-trans-sid
  384. [MSSQL]
  385. ;extension=php_mssql.dll
  386. mssql.allow_persistent = On ; allow or prevent persistent link
  387. mssql.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
  388. mssql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no limit
  389. mssql.min_error_severity = 10 ; minimum error severity to display
  390. mssql.min_message_severity = 10 ; minimum message severity to display
  391. mssql.compatability_mode = Off ; compatability mode with old versions of PHP 3.0.
  392. [Assertion]
  393. ;assert.active = Off ; assert(expr); does nothing by default
  394. ;assert.warning = On ; issue a PHP warning for each failed assertion.
  395. ;assert.bail = Off ; don't bail out by default.
  396. ;assert.callback = 0 ; user-function to be called if an assertion fails.
  397. ;assert.quiet_eval = 0 ; eval the expression with current error_reporting(). set to true if you want error_reporting(0) around the eval().
  398. [Ingres II]
  399. ingres.allow_persistent = On ; allow or prevent persistent link
  400. ingres.max_persistent = -1 ; maximum number of persistent links. (-1 means no limit)
  401. ingres.max_links = -1 ; maximum number of links, including persistents (-1 means no limit)
  402. ingres.default_database = ; default database (format : [node_id::]dbname[/srv_class]
  403. ingres.default_user = ; default user
  404. ingres.default_password = ; default password
  405. [Verisign Payflow Pro]
  406. pfpro.defaulthost = "test.signio.com" ; default Signio server
  407. pfpro.defaultport = 443 ; default port to connect to
  408. pfpro.defaulttimeout = 30 ; default timeout in seconds
  409. ; pfpro.proxyaddress = ; default proxy IP address (if required)
  410. ; pfpro.proxyport = ; default proxy port
  411. ; pfpro.proxylogon = ; default proxy logon
  412. ; pfpro.proxypassword = ; default proxy password
  413. ; Local Variables:
  414. ; tab-width: 4
  415. ; End: