home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / kb / Security / php.ini-paranoid-2008-01-08 < prev    next >
INI File  |  2008-01-06  |  59KB  |  1,505 lines

  1. [PHP]
  2.  
  3. ;;;;;;;;;;;
  4. ; WARNING ;
  5. ;;;;;;;;;;;
  6. ; This file enables many features in the PHP configuration that will
  7. ; break applications that rely on this. Make sure you test applications
  8. ; with this configuration file before enabling it on production.
  9.  
  10. ;;;;;;;;;;;;;;;;;;;
  11. ; About php.ini   ;
  12. ;;;;;;;;;;;;;;;;;;;
  13. ; This file controls many aspects of PHP's behavior.  In order for PHP to
  14. ; read it, it must be named 'php.ini'.  PHP looks for it in the current
  15. ; working directory, in the path designated by the environment variable
  16. ; PHPRC, and in the path that was defined in compile time (in that order).
  17. ; Under Windows, the compile-time path is the Windows directory.  The
  18. ; path in which the php.ini file is looked for can be overridden using
  19. ; the -c argument in command line mode.
  20. ;
  21. ; The syntax of the file is extremely simple.  Whitespace and Lines
  22. ; beginning with a semicolon are silently ignored (as you probably guessed).
  23. ; Section headers (e.g. [Foo]) are also silently ignored, even though
  24. ; they might mean something in the future.
  25. ;
  26. ; Directives are specified using the following syntax:
  27. ; directive = value
  28. ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
  29. ;
  30. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
  31. ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
  32. ; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
  33. ;
  34. ; Expressions in the INI file are limited to bitwise operators and parentheses:
  35. ; |        bitwise OR
  36. ; &        bitwise AND
  37. ; ~        bitwise NOT
  38. ; !        boolean NOT
  39. ;
  40. ; Boolean flags can be turned on using the values 1, On, True or Yes.
  41. ; They can be turned off using the values 0, Off, False or No.
  42. ;
  43. ; An empty string can be denoted by simply not writing anything after the equal
  44. ; sign, or by using the None keyword:
  45. ;
  46. ;  foo =         ; sets foo to an empty string
  47. ;  foo = none    ; sets foo to an empty string
  48. ;  foo = "none"  ; sets foo to the string 'none'
  49. ;
  50. ; If you use constants in your value, and these constants belong to a
  51. ; dynamically loaded extension (either a PHP extension or a Zend extension),
  52. ; you may only use these constants *after* the line that loads the extension.
  53. ;
  54. ;
  55. ;;;;;;;;;;;;;;;;;;;
  56. ; About this file ;
  57. ;;;;;;;;;;;;;;;;;;;
  58. ;
  59. ; This is the paranoid, PHP version of the php.ini-dist file.  It
  60. ; sets some non standard settings, that make PHP more efficient, more secure
  61. ; in a very paranoid way. Note that these security settings will make some
  62. ; applications not work properly.
  63. ;
  64. ; The price is that with these settings, PHP may be incompatible with some
  65. ; applications, and sometimes, more difficult to develop with.  Using this
  66. ; file is recommended for production sites which want a high degree of
  67. ; security.  As all of the changes from the standard settings are thoroughly
  68. ; documented, you can go over each one,
  69. ; and decide whether you want to use it or not.
  70. ;
  71. ; For general information about the php.ini file, please consult the 
  72. ; php.ini-dist file, included in your PHP distribution.
  73. ; For further information see
  74. ; http://www.php.net/features.safe-mode
  75. ; http://www.phpsecure.info/
  76. ;
  77. ; This file is different from the php.ini-dist file in the fact that it features
  78. ; different values for several directives, in order to improve performance, while
  79. ; possibly breaking compatibility with the standard out-of-the-box behavior of
  80. ; PHP 3. Please make sure you read what's different, and modify your scripts
  81. ; accordingly, if you decide to use this file instead.
  82. ;
  83. ; Notice that the paranoid configuration file might not be fully up-to-date
  84. ; with the latest variables available so the diff will catch both the changes
  85. ; to the default variable values as well as the variables that are missing in
  86. ; the paranoid configuration file)
  87. ;
  88. ; This version was generated using the version 5.2.4-2 as a basis.
  89. ;
  90. ; Debian users can find the differences between both configurations might
  91. ; be found by running:
  92. ;
  93. ; $  diff -u /usr/share/doc/php5-common/examples/php.ini-dist \
  94.      /usr/share/doc/php5-common/examples/php.ini-paranoid  |less
  95. ;
  96. ;
  97. ; This is a (not complete) list of some of the changes introduced in this file:
  98. ;
  99. ; - safe_mode = On                 [Security, Performance loss]
  100. ;     Do UID checks when opening files. Enabling safe_mode also enables
  101. ;     other functions related to this mode. For more information read:
  102. ;     http://www.php.net/features.safe-mode
  103. ;
  104. ;     However, this feature by itself cannot be relied on to protect all applications.
  105. ;     It  is worthwhile reading also:
  106. ;     http://ilia.ws/archives/18_PHPs_safe_mode_or_how_not_to_implement_security.html 
  107. ;     Bottomline: Do not trust that safe_mode will drive all your security vulnerabilities
  108. ;     away.
  109. ;
  110. ; - safe_mode_protected_env_vars = LD_LIBRARY_PATH, PATH [Security]
  111. ;     Environment variables that users will not be able to modify through
  112. ;     putenv(). PATH is added so that scripts cannot overwrite it
  113. ;
  114. ; - open_basedir = /var/www/:/usr/lib/php4/ [Security, Performance loss]
  115. ;     Limits the files that PHP can access to the directories specified.
  116. ;     This includes the webroot and the usual location of PHP libraries
  117. ;     (e.g. PEAR). Since all file locations are checked against this list
  118. ;     before any access is allowed, this impacts in the performance of all
  119. ;     file operations.
  120. ;
  121. ; - disable_functions = dl, phpinfo, system, .... [Security]
  122. ;     Some functions can be used by attackers and can be malversed by 
  123. ;     applications, the list (not complete) of functions disabled includes
  124. ;     functions which might have a severe impact to the system if wrongly used
  125. ;     in scripts or subverted remotely by attackers.
  126. ;
  127. ; - expose_php = Off               [?Security?]
  128. ;      Not exposing that PHP is used in the site (nor its version) can affect
  129. ;      how some dumb worms attempt to attack the site. Many might
  130. ;      not check this and attempt to compromise the server nevertheless, 
  131. ;      however. This setting is just 'security by obscurity' so no real
  132. ;      security at all (save vs. the dumbest attackers)
  133. ;      
  134. ; - error_log = syslog              [Security, Performance log]
  135. ;      All errors are reported to syslog so that the errors can be easily
  136. ;      sent outsite the site to a syslog server. This prevents an intruder
  137. ;      from tampering with them in an attempt to hide his tracks since the
  138. ;      logs are stored in a different location. It also helps in forensic
  139. ;      investigation or when using automatic tools to produce reports or 
  140. ;      generate alarms based on the syslog information.
  141. ;
  142. ; - error_reporting = E_ALL         [Code Cleanliness, Security(?)]
  143. ;     By default, PHP surpresses errors of type E_NOTICE.  These error messages
  144. ;     are emitted for non-critical errors, but that could be a symptom of a bigger
  145. ;     problem.  Most notably, this will cause error messages about the use
  146. ;     of uninitialized variables to be displayed.
  147. ;
  148. ; - display_errors = Off           [Security]
  149. ;     With this directive set to off, errors that occur during the execution of
  150. ;     scripts will no longer be displayed as a part of the script output, and thus,
  151. ;     will no longer be exposed to remote users.  With some errors, the error message
  152. ;     content may expose information about your script, web server, or database
  153. ;     server that may be exploitable for hacking.  Production sites should have this
  154. ;     directive set to off.
  155. ; - log_errors = On                [Security]
  156. ;     This directive complements the above one.  Any errors that occur during the
  157. ;     execution of your script will be logged (typically, to your server's error log,
  158. ;     but can be configured in several ways).  Along with setting display_errors to off,
  159. ;     this setup gives you the ability to fully understand what may have gone wrong,
  160. ;     without exposing any sensitive information to remote users.
  161. ; - output_buffering = 4096        [Performance]
  162. ;     Set a 4KB output buffer.  Enabling output buffering typically results in less
  163. ;     writes, and sometimes less packets sent on the wire, which can often lead to
  164. ;     better performance.  The gain this directive actually yields greatly depends
  165. ;     on which Web server you're working with, and what kind of scripts you're using.
  166. ; - register_globals = Off         [Security, Performance]
  167. ;     Global variables are no longer registered for input data (POST, GET, cookies,
  168. ;     environment and other server variables).  Instead of using $foo, you must use
  169. ;     you can use $_REQUEST["foo"] (includes any variable that arrives through the
  170. ;     request, namely, POST, GET and cookie variables), or use one of the specific
  171. ;     $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
  172. ;     on where the input originates.  Also, you can look at the
  173. ;     import_request_variables() function.
  174. ;     Note that register_globals is deprecated in PHP 6.0, because it often
  175. ;     leads to security bugs.
  176. ;     Read http://php.net/manual/en/security.registerglobals.php for further
  177. ;     information.
  178. ;     Also notice that applications should not rely on this feature being turned Off
  179. ;     to remain secure.
  180. ; - register_long_arrays = Off     [Performance]
  181. ;     Disables registration of HTTP_GET_VARS
  182. ; - register_argc_argv = Off       [Performance]
  183. ;     Disables registration of the somewhat redundant $argv and $argc global
  184. ;     variables.
  185. ; - include_path = "/usr/share/php" [Security]
  186. ;     Only files under /usr can be included, this prevents applications from
  187. ;     including files from the same directory they are running in.
  188. ; - magic_quotes_gpc = On           [Security]
  189. ;     Input data is escaped with slashes so that applications that do
  190. ;     not use addslashes() are not so easily subjected to SQL injection
  191. ;     when talking to SQL databases.
  192. ;     This features is deprecated in PHP 6.0, applications should be fixed to
  193. ;     prevent SQL injection attacks through input data and not rely on this feature.
  194. ; - magic_quotes_runtime = On       [Security]
  195. ;     Quotes in data returned from functions that access external data sources (such as 
  196. ;     databases) are escapted with a backslash.
  197. ;     This features is deprecated in PHP 6.0, applications should be fixed to
  198. ;     prevent SQL injection attacks through input data and not rely on this feature.
  199. ;
  200. ; - variables_order = "GPCS"        [Performance]
  201. ;     The environment variables are not hashed into the $HTTP_ENV_VARS[].  To access
  202. ;     environment variables, you can use getenv() instead.
  203. ; - allow_call_time_pass_reference = Off     [Code cleanliness]
  204. ;     It's not possible to decide to force a variable to be passed by reference
  205. ;     when calling a function.  The PHP 4 style to do this is by making the
  206. ;     function require the relevant argument by reference.
  207. ;
  208. ; - enable_dl = Off                  [Security]
  209. ;     The dl() function is not needed in most environments and does introduce
  210. ;     a number of security issues.
  211. ; - file_uploads = Off               [Security]
  212. ;     File uploads should not be allowed to the server.
  213. ; - allow_url_fopen = Off            [Security]
  214. ;     File calls should not transparently retrieve files from the network
  215. ;     since this could be subverted by attackers in poorly coded scripts
  216. ;     by forcing them to download (and execute) malicious remote content
  217. ;     from compromised hosts. This behaviour has been observed in automatic
  218. ;     worms/tools that use it to scan and propagate through badly written
  219. ;     applications (in conjuntion with other unsafe features)
  220. ;     http://myhost/myapplication.php?include=http://roguesever/rogueapp.php
  221. ;
  222. ; - session.save_path = /var/lib/php5 [Security]
  223. ;     This is defined to a non-world readable directory so users cannot 
  224. ;     hihack sessions of other users by getting a list of the files.
  225. ;
  226. ;     Notice that on on shared servers on a per application basis, otherwise
  227. ;     other users would be able to get access to other applications' data by
  228. ;     setting a proper session id in a different application. If session paths
  229. ;     are not shared sessions of one application will be invalid on another.
  230. ;     For more information see:
  231. ;     http://php.net/manual/en/ref.session.php#ini.session.save-path
  232. ;     and
  233. ;     http://php.net/manual/en/function.session-save-path.php
  234. ; - session.cookie_secure = 1        [Security]
  235. ;     Cookies will only be sent through secure (SSL) connections.
  236. ; - session.use_only_cookies = 1     [Security]
  237. ;     Session ids are not allowed in URLs which make it more difficult for
  238. ;     cross site scripting (XSS) attacks to be succesfull and also has the
  239. ;     advantaged that session ids will not be stored in the server's logs making
  240. ;     them vulnerable to reuse by people with access to the server logs.
  241. ; - session.cookie_httponly = 1      [Security]
  242. ;     Cookies can only be set through the HTTP protocol, JavaScript can not
  243. ;     modify them, making applications less vulnerable to XSS attacks. This is
  244. ;     not supported, however, by all browsers.
  245. ; - session.hash_function = 1        [Security, Performance loss]
  246. ;     Use SHA-1 instead of MD5 which is not (yet) broken but there are some known
  247. ;     attacks. Slight performance loss as it takes more time to compute.
  248. ;
  249. ;
  250. ; This file is maintained by Javier Fernandez-Sanguino <jfs@debian.org>
  251. ; please forward him any suggestions or changes you believe might be appropiate
  252.  
  253.  
  254. ;;;;;;;;;;;;;;;;;;;;
  255. ; Language Options ;
  256. ;;;;;;;;;;;;;;;;;;;;
  257.  
  258. ; Enable the PHP scripting language engine under Apache.
  259. engine = On
  260.  
  261. ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
  262. zend.ze1_compatibility_mode = Off
  263.  
  264. ; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized. 
  265. ; NOTE: Using short tags should be avoided when developing applications or
  266. ; libraries that are meant for redistribution, or deployment on PHP
  267. ; servers which are not under your control, because short tags may not
  268. ; be supported on the target server. For portable, redistributable code,
  269. ; be sure not to use short tags.
  270. short_open_tag = On
  271.  
  272. ; Allow ASP-style <% %> tags.
  273. asp_tags = Off
  274.  
  275. ; The number of significant digits displayed in floating point numbers.
  276. precision    =  12
  277.  
  278. ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
  279. y2k_compliance = On
  280.  
  281. ; Output buffering allows you to send header lines (including cookies) even
  282. ; after you send body content, at the price of slowing PHP's output layer a
  283. ; bit.  You can enable output buffering during runtime by calling the output
  284. ; buffering functions.  You can also enable output buffering for all files by
  285. ; setting this directive to On.  If you wish to limit the size of the buffer
  286. ; to a certain size - you can use a maximum number of bytes instead of 'On', as
  287. ; a value for this directive (e.g., output_buffering=4096).
  288. output_buffering = 4096
  289.  
  290. ; You can redirect all of the output of your scripts to a function.  For
  291. ; example, if you set output_handler to "mb_output_handler", character
  292. ; encoding will be transparently converted to the specified encoding.
  293. ; Setting any output handler automatically turns on output buffering.
  294. ; Note: People who wrote portable scripts should not depend on this ini
  295. ;       directive. Instead, explicitly set the output handler using ob_start().
  296. ;       Using this ini directive may cause problems unless you know what script 
  297. ;       is doing.
  298. ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
  299. ;       and you cannot use both "ob_gzhandler" and "zlib.output_compression". 
  300. ; Note: output_handler must be empty if this is set 'On' !!!!
  301. ;       Instead you must use zlib.output_handler.
  302. ;output_handler =
  303.  
  304. ; Transparent output compression using the zlib library
  305. ; Valid values for this option are 'off', 'on', or a specific buffer size
  306. ; to be used for compression (default is 4KB)
  307. ; Note: Resulting chunk size may vary due to nature of compression. PHP 
  308. ;       outputs chunks that are few hundreds bytes each as a result of 
  309. ;       compression. If you prefer a larger chunk size for better 
  310. ;       performance, enable output_buffering in addition.
  311. ; Note: You need to use zlib.output_handler instead of the standard
  312. ;       output_handler, or otherwise the output will be corrupted.
  313. zlib.output_compression = Off
  314.  
  315. ; You cannot specify additional output handlers if zlib.output_compression
  316. ; is activated here. This setting does the same as output_handler but in
  317. ; a different order.
  318. ;zlib.output_handler =
  319.  
  320. ; Implicit flush tells PHP to tell the output layer to flush itself
  321. ; automatically after every output block.  This is equivalent to calling the
  322. ; PHP function flush() after each and every call to print() or echo() and each
  323. ; and every HTML block.  Turning this option on has serious performance
  324. ; implications and is generally recommended for debugging purposes only.
  325. implicit_flush = Off
  326.  
  327. ; The unserialize callback function will be called (with the undefined class'
  328. ; name as parameter), if the unserializer finds an undefined class
  329. ; which should be instantiated.
  330. ; A warning appears if the specified function is not defined, or if the
  331. ; function doesn't include/implement the missing class.
  332. ; So only set this entry, if you really want to implement such a
  333. ; callback-function.
  334. unserialize_callback_func=
  335.  
  336. ; When floats & doubles are serialized store serialize_precision significant
  337. ; digits after the floating point. The default value ensures that when floats
  338. ; are decoded with unserialize, the data will remain the same.
  339. serialize_precision = 100
  340.  
  341. ; Whether to enable the ability to force arguments to be passed by reference
  342. ; at function call time.  This method is deprecated and is likely to be
  343. ; unsupported in future versions of PHP/Zend.  The encouraged method of
  344. ; specifying which arguments should be passed by reference is in the function
  345. ; declaration.  You're encouraged to try and turn this option Off and make
  346. ; sure your scripts work properly with it in order to ensure they will work
  347. ; with future versions of the language (you will receive a warning each time
  348. ; you use this feature, and the argument will be passed by value instead of by
  349. ; reference).
  350. allow_call_time_pass_reference = Off
  351.  
  352. ;
  353. ; Safe Mode
  354. ;
  355. ;     Notice that with this mode on PHP will not create new files in
  356. ;     directories which have different owner than the owner of the script. This
  357. ;     typically applies to /tmp, so contrary to Unix intuition, you will not be able
  358. ;     to create new files there (even if the /tmp rights are set correctly). 
  359. ; NOTE: this is considered a "broken" security measure.
  360. ;       Applications relying on this feature will not recieve full
  361. ;       support by the security team.  For more information please
  362. ;       see /usr/share/doc/php5-common/README.Debian.security
  363. ;
  364. safe_mode = On
  365.  
  366. ; By default, Safe Mode does a UID compare check when
  367. ; opening files. If you want to relax this to a GID compare,
  368. ; then turn on safe_mode_gid.
  369. safe_mode_gid = Off
  370.  
  371. ; When safe_mode is on, UID/GID checks are bypassed when
  372. ; including files from this directory and its subdirectories.
  373. ; (directory must also be in include_path or full path must
  374. ; be used when including)
  375. safe_mode_include_dir =        
  376.  
  377. ; When safe_mode is on, only executables located in the safe_mode_exec_dir
  378. ; will be allowed to be executed via the exec family of functions.
  379. ; Note: This should be customised per site (if exec is permitted)
  380. safe_mode_exec_dir =
  381.  
  382. ; Setting certain environment variables may be a potential security breach.
  383. ; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
  384. ; the user may only alter environment variables whose names begin with the
  385. ; prefixes supplied here.  By default, users will only be able to set
  386. ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
  387. ;
  388. ; Note:  If this directive is empty, PHP will let the user modify ANY
  389. ; environment variable!
  390. safe_mode_allowed_env_vars = PHP_
  391.  
  392. ; This directive contains a comma-delimited list of environment variables that
  393. ; the end user won't be able to change using putenv().  These variables will be
  394. ; protected even if safe_mode_allowed_env_vars is set to allow to change them.
  395. safe_mode_protected_env_vars = LD_LIBRARY_PATH,PATH
  396.  
  397. ; open_basedir, if set, limits all file operations to the defined directory
  398. ; and below.  This directive makes most sense if used in a per-directory
  399. ; or per-virtualhost web server configuration file. This directive is
  400. ; *NOT* affected by whether Safe Mode is turned On or Off.
  401. ; In Debian, the WebRoot is /var/www/ so we limit file operations to it.
  402. ;
  403. ; NOTE: this is considered a "broken" security measure.
  404. ;       Applications relying on this feature will not recieve full
  405. ;       support by the security team.  For more information please
  406. ;       see /usr/share/doc/php5-common/README.Debian.security
  407. open_basedir = /var/www/:/usr/lib/php4/
  408.  
  409. ; This directive allows you to disable certain functions for security reasons.
  410. ; It receives a comma-delimited list of function names. This directive is
  411. ; *NOT* affected by whether Safe Mode is turned On or Off.
  412. ; Notes: 
  413. ;  - The list of functions disabled here might break some applications
  414. ;    however, they are considered dangerous and often subverted by attackers
  415. ;    remotely.
  416. ;  - 'include' is not in the list, if your applications do not depend on it
  417. ;    make sure you add it here too.
  418. disable_functions = dl, phpinfo, system, mail, shell_exec, exec, escapeshellarg, escapeshellcmd, passthru, proc_close, proc_open, proc_get_status, proc_nice, proc_open, proc_terminate, popen, pclose, chown, disk_free_space, disk_total_space, diskfreespace, fileinode, max_execution_time, set_time_limit, highlight_file, show_source 
  419.  
  420. ; This directive allows you to disable certain classes for security reasons.
  421. ; It receives a comma-delimited list of class names. This directive is
  422. ; *NOT* affected by whether Safe Mode is turned On or Off.
  423. disable_classes =
  424.  
  425. ; Colors for Syntax Highlighting mode.  Anything that's acceptable in
  426. ; <span style="color: ???????"> would work.
  427. ;highlight.string  = #DD0000
  428. ;highlight.comment = #FF9900
  429. ;highlight.keyword = #007700
  430. ;highlight.bg      = #FFFFFF
  431. ;highlight.default = #0000BB
  432. ;highlight.html    = #000000
  433.  
  434. ; If enabled, the request will be allowed to complete even if the user aborts
  435. ; the request. Consider enabling it if executing long request, which may end up
  436. ; being interrupted by the user or a browser timing out.
  437. ; ignore_user_abort = On
  438.  
  439. ; Determines the size of the realpath cache to be used by PHP. This value should
  440. ; be increased on systems where PHP opens many files to reflect the quantity of
  441. ; the file operations performed.
  442. ; realpath_cache_size=16k
  443.  
  444. ; Duration of time, in seconds for which to cache realpath information for a given
  445. ; file or directory. For systems with rarely changing files, consider increasing this
  446. ; value.
  447. ; realpath_cache_ttl=120
  448.  
  449. ;
  450. ; Misc
  451. ;
  452. ; Decides whether PHP may expose the fact that it is installed on the server
  453. ; (e.g. by adding its signature to the Web server header).  It is no security
  454. ; threat in any way, but it makes it possible to determine whether you use PHP
  455. ; on your server or not.
  456. expose_php = Off
  457.  
  458.  
  459. ;;;;;;;;;;;;;;;;;;;
  460. ; Resource Limits ;
  461. ;;;;;;;;;;;;;;;;;;;
  462.  
  463. max_execution_time = 30     ; Maximum execution time of each script, in seconds
  464. max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
  465. max_input_nesting_level = 64 ; Maximum input variable nesting level
  466. memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
  467.  
  468.  
  469. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  470. ; Error handling and logging ;
  471. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  472.  
  473. ; error_reporting is a bit-field.  Or each number up to get desired error
  474. ; reporting level
  475. ; E_ALL             - All errors and warnings (doesn't include E_STRICT)
  476. ; E_ERROR           - fatal run-time errors
  477. ; E_RECOVERABLE_ERROR  - almost fatal run-time errors
  478. ; E_WARNING         - run-time warnings (non-fatal errors)
  479. ; E_PARSE           - compile-time parse errors
  480. ; E_NOTICE          - run-time notices (these are warnings which often result
  481. ;                     from a bug in your code, but it's possible that it was
  482. ;                     intentional (e.g., using an uninitialized variable and
  483. ;                     relying on the fact it's automatically initialized to an
  484. ;                     empty string)
  485. ; E_STRICT          - run-time notices, enable to have PHP suggest changes
  486. ;                     to your code which will ensure the best interoperability
  487. ;                     and forward compatibility of your code
  488. ; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
  489. ; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
  490. ;                     initial startup
  491. ; E_COMPILE_ERROR   - fatal compile-time errors
  492. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  493. ; E_USER_ERROR      - user-generated error message
  494. ; E_USER_WARNING    - user-generated warning message
  495. ; E_USER_NOTICE     - user-generated notice message
  496. ;
  497. ; Examples:
  498. ;
  499. ;   - Show all errors, except for notices and coding standards warnings
  500. ;
  501. ;error_reporting = E_ALL & ~E_NOTICE
  502. ;
  503. ;   - Show all errors, except for notices
  504. ;
  505. ;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
  506. ;
  507. ;   - Show only errors
  508. ;
  509. ;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
  510. ;
  511. ;   - Show all errors
  512. ;
  513. error_reporting  =  E_ALL
  514.  
  515. ; Print out errors (as a part of the output).  For production web sites,
  516. ; you're strongly encouraged to turn this feature off, and use error logging
  517. ; instead (see below).  Keeping display_errors enabled on a production web site
  518. ; may reveal security information to end users, such as file paths on your Web
  519. ; server, your database schema or other information.
  520. ;
  521. ; possible values for display_errors:
  522. ;
  523. ; Off        - Do not display any errors
  524. ; stderr     - Display errors to STDERR (affects only CGI/CLI binaries!)
  525. ; stdout (On) - Display errors to STDOUT
  526. ;
  527. display_errors = Off
  528.  
  529. ; Even when display_errors is on, errors that occur during PHP's startup
  530. ; sequence are not displayed.  It's strongly recommended to keep
  531. ; display_startup_errors off, except for when debugging.
  532. display_startup_errors = Off
  533.  
  534. ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  535. ; As stated above, you're strongly advised to use error logging in place of
  536. ; error displaying on production web sites.
  537. log_errors = On
  538.  
  539. ; Set maximum length of log_errors. In error_log information about the source is
  540. ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
  541. log_errors_max_len = 1024
  542.  
  543. ; Do not log repeated messages. Repeated errors must occur in same file on same
  544. ; line until ignore_repeated_source is set true.
  545. ignore_repeated_errors = Off
  546.  
  547. ; Ignore source of message when ignoring repeated messages. When this setting 
  548. ; is On you will not log errors with repeated messages from different files or
  549. ; source lines.
  550. ignore_repeated_source = Off
  551.  
  552. ; If this parameter is set to Off, then memory leaks will not be shown (on
  553. ; stdout or in the log). This has only effect in a debug compile, and if 
  554. ; error reporting includes E_WARNING in the allowed list
  555. report_memleaks = On
  556.  
  557. ;report_zend_debug = 0
  558.  
  559. ; Store the last error/warning message in $php_errormsg (boolean).
  560. track_errors = Off
  561.  
  562. ; Disable the inclusion of HTML tags in error messages.
  563. ; Note: Never use this feature for production boxes.
  564. html_errors = Off
  565.  
  566. ; If html_errors is set On PHP produces clickable error messages that direct 
  567. ; to a page describing the error or function causing the error in detail.
  568. ; You can download a copy of the PHP manual from http://www.php.net/docs.php 
  569. ; and change docref_root to the base URL of your local copy including the
  570. ; leading '/'. You must also specify the file extension being used including 
  571. ; the dot.
  572. ; Note: Never use this feature for production boxes.
  573. ;docref_root = "/phpmanual/"
  574. ;docref_ext = .html
  575.   
  576. ; String to output before an error message.
  577. ;error_prepend_string = "<font color=ff0000>"
  578.  
  579. ; String to output after an error message.
  580. ;error_append_string = "</font>"
  581.  
  582. ; Log errors to specified file.
  583. ;error_log = filename
  584.  
  585. ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
  586. error_log = syslog
  587.  
  588.  
  589. ;;;;;;;;;;;;;;;;;
  590. ; Data Handling ;
  591. ;;;;;;;;;;;;;;;;;
  592. ;
  593. ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
  594.  
  595. ; The separator used in PHP generated URLs to separate arguments.
  596. ; Default is "&". 
  597. ;arg_separator.output = "&"
  598.  
  599. ; List of separator(s) used by PHP to parse input URLs into variables.
  600. ; Default is "&". 
  601. ; NOTE: Every character in this directive is considered as separator!
  602. ;arg_separator.input = ";&"
  603.  
  604. ; This directive describes the order in which PHP registers GET, POST, Cookie,
  605. ; Environment and Built-in variables (G, P, C, E & S respectively, often
  606. ; referred to as EGPCS or GPC).  Registration is done from left to right, newer
  607. ; values override older values.
  608. variables_order = "GPCS"
  609.  
  610. ; Whether or not to register the EGPCS variables as global variables.  You may
  611. ; want to turn this off if you don't want to clutter your scripts' global scope
  612. ; with user data.  This makes most sense when coupled with track_vars - in which
  613. ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
  614. ; variables.
  615. ;
  616. ; You should do your best to write your scripts so that they do not require
  617. ; register_globals to be on;  Using form variables as globals can easily lead
  618. ; to possible security problems, if the code is not very well thought of.
  619.  
  620. ; NOTE: applications relying on this feature will not recieve full
  621. ;       support by the security team.  For more information please
  622. ;       see /usr/share/doc/php5-common/README.Debian.security
  623. ;
  624. register_globals = Off
  625.  
  626. ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
  627. ; and friends.  If you're not using them, it's recommended to turn them off,
  628. ; for performance reasons.
  629. register_long_arrays = Off
  630.  
  631. ; This directive tells PHP whether to declare the argv&argc variables (that
  632. ; would contain the GET information).  If you don't use these variables, you
  633. ; should turn it off for increased performance.
  634. register_argc_argv = Off
  635.  
  636. ; When enabled, the SERVER and ENV variables are created when they're first
  637. ; used (Just In Time) instead of when the script starts. If these variables
  638. ; are not used within a script, having this directive on will result in a
  639. ; performance gain. The PHP directives register_globals, register_long_arrays,
  640. ; and register_argc_argv must be disabled for this directive to have any affect.
  641. auto_globals_jit = On
  642.  
  643. ; Maximum size of POST data that PHP will accept.
  644. post_max_size = 8M
  645.  
  646. ; Magic quotes
  647. ;
  648.  
  649. ; Magic quotes for incoming GET/POST/Cookie data.
  650. ; Note: This feature is deprecated in PHP 6.0. Applications should not rely
  651. ; on this feature to prevent security attacks.
  652. magic_quotes_gpc = On
  653.  
  654. ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
  655. ; Note: This feature is deprecated in PHP 6.0. Applications should not rely
  656. ; on this feature to prevent security attacks.
  657. magic_quotes_runtime = On
  658.  
  659. ; Use Sybase-style magic quotes (escape ' with '' instead of \').
  660. magic_quotes_sybase = Off
  661.  
  662. ; Automatically add files before or after any PHP document.
  663. auto_prepend_file =
  664. auto_append_file =
  665.  
  666. ; As of 4.0b4, PHP always outputs a character encoding by default in
  667. ; the Content-type: header.  To disable sending of the charset, simply
  668. ; set it to be empty.
  669. ;
  670. ; PHP's built-in default is text/html
  671. default_mimetype = "text/html"
  672. ;default_charset = "iso-8859-1"
  673.  
  674. ; Always populate the $HTTP_RAW_POST_DATA variable.
  675. ;always_populate_raw_post_data = On
  676.  
  677.  
  678. ;;;;;;;;;;;;;;;;;;;;;;;;;
  679. ; Paths and Directories ;
  680. ;;;;;;;;;;;;;;;;;;;;;;;;;
  681.  
  682. ; UNIX: "/path1:/path2"  
  683. ; Note (paranoid): 
  684. ;      - '.' (the default) is not allowed here, applications that rely on it
  685. ;        need to be modified
  686. ;      - /usr is allowed, but files there should be protected against being
  687. ;        overwritten by mounting the filesystem read-only and should be
  688. ;        monitored with a system integrity check tool.
  689. include_path = "/usr/share/php"
  690.  
  691. ; Windows: "\path1;\path2"
  692. ;include_path = ".;c:\php\includes"
  693.  
  694. ; The root of the PHP pages, used only if nonempty.
  695. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
  696. ; if you are running php as a CGI under any web server (other than IIS)
  697. ; see documentation for security issues.  The alternate is to use the
  698. ; cgi.force_redirect configuration below
  699. doc_root =
  700.  
  701. ; The directory under which PHP opens the script using /~username used only
  702. ; if nonempty.
  703. user_dir =
  704.  
  705. ; Directory in which the loadable extensions (modules) reside.
  706. ; extension_dir = "./"
  707.  
  708. ; Whether or not to enable the dl() function.  The dl() function does NOT work
  709. ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
  710. ; disabled on them.
  711. ;
  712. ; NOTE: this is a potential security hole and is disabled by default in debian
  713. enable_dl = Off
  714.  
  715. ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
  716. ; most web servers.  Left undefined, PHP turns this on by default.  You can
  717. ; turn it off here AT YOUR OWN RISK
  718. ; **You CAN safely turn this off for IIS, in fact, you MUST.**
  719. ; cgi.force_redirect = 1
  720.  
  721. ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
  722. ; every request.
  723. ; cgi.nph = 1
  724.  
  725. ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
  726. ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
  727. ; will look for to know it is OK to continue execution.  Setting this variable MAY
  728. ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
  729. ; cgi.redirect_status_env = ;
  730.  
  731. ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
  732. ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
  733. ; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
  734. ; this to 1 will cause PHP CGI to fix it's paths to conform to the spec.  A setting
  735. ; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
  736. ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
  737. cgi.fix_pathinfo=1
  738.  
  739. ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
  740. ; security tokens of the calling client.  This allows IIS to define the
  741. ; security context that the request runs under.  mod_fastcgi under Apache
  742. ; does not currently support this feature (03/17/2002)
  743. ; Set to 1 if running under IIS.  Default is zero.
  744. ; fastcgi.impersonate = 1;
  745.  
  746. ; Disable logging through FastCGI connection
  747. ; fastcgi.logging = 0
  748.  
  749. ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
  750. ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
  751. ; is supported by Apache. When this option is set to 1 PHP will send
  752. ; RFC2616 compliant header.
  753. ; Default is zero.
  754. ;cgi.rfc2616_headers = 0 
  755.  
  756.  
  757. ;;;;;;;;;;;;;;;;
  758. ; File Uploads ;
  759. ;;;;;;;;;;;;;;;;
  760.  
  761. ; Whether to allow HTTP file uploads.
  762. file_uploads = Off
  763.  
  764. ; Temporary directory for HTTP uploaded files (will use system default if not
  765. ; specified).
  766. ;
  767. ; Note: If enabled above you have to create this directory and set appropiate
  768. ; permissions. The default (/tmp) is insecure since other users might be able
  769. ; to access upload files or make symlink tricks.
  770. upload_tmp_dir = /var/lib/php5/uploads
  771.  
  772. ; Maximum allowed size for uploaded files.
  773. upload_max_filesize = 2M
  774.  
  775.  
  776. ;;;;;;;;;;;;;;;;;;
  777. ; Fopen wrappers ;
  778. ;;;;;;;;;;;;;;;;;;
  779.  
  780. ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
  781. ; This is turned off to avoid variable redefinition by remote attacker
  782. ; that attempts to have the server download (and execute) a remote file
  783. ; from a compromised host. This behaviour has been observed in automatic
  784. ; scanning against badly written applications:
  785. ; http://myhost/myapplication.php?include=http://roguesever/rogueapp.php
  786. allow_url_fopen = Off
  787.  
  788. ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
  789. allow_url_include = Off
  790.  
  791. ; Define the anonymous ftp password (your email address)
  792. ;from="john@doe.com"
  793.  
  794. ; Define the User-Agent string
  795. ; user_agent="PHP"
  796.  
  797. ; Default timeout for socket based streams (seconds)
  798. default_socket_timeout = 60
  799.  
  800. ; If your scripts have to deal with files from Macintosh systems,
  801. ; or you are running on a Mac and need to deal with files from
  802. ; unix or win32 systems, setting this flag will cause PHP to
  803. ; automatically detect the EOL character in those files so that
  804. ; fgets() and file() will work regardless of the source of the file.
  805. ; auto_detect_line_endings = Off
  806.  
  807.  
  808. ;;;;;;;;;;;;;;;;;;;;;;
  809. ; Dynamic Extensions ;
  810. ;;;;;;;;;;;;;;;;;;;;;;
  811. ;
  812. ; If you wish to have an extension loaded automatically, use the following
  813. ; syntax:
  814. ;
  815. ;   extension=modulename.extension
  816. ;
  817. ; For example, on Windows:
  818. ;
  819. ;   extension=msql.dll
  820. ;
  821. ; ... or under UNIX:
  822. ;
  823. ;   extension=msql.so
  824. ;
  825. ; Note that it should be the name of the module only; no directory information 
  826. ; needs to go here.  Specify the location of the extension with the
  827. ; extension_dir directive above.
  828.  
  829.  
  830. ;;;;;;;;;;;;;;;;;;;
  831. ; Module Settings ;
  832. ;;;;;;;;;;;;;;;;;;;
  833.  
  834. [Date]
  835. ; Defines the default timezone used by the date functions
  836. ;date.timezone =
  837.  
  838. ;date.default_latitude = 31.7667
  839. ;date.default_longitude = 35.2333
  840.  
  841. ;date.sunrise_zenith = 90.583333
  842. ;date.sunset_zenith = 90.583333
  843.  
  844. [filter]
  845. ;filter.default = unsafe_raw
  846. ;filter.default_flags =
  847.  
  848. [iconv]
  849. ;iconv.input_encoding = ISO-8859-1
  850. ;iconv.internal_encoding = ISO-8859-1
  851. ;iconv.output_encoding = ISO-8859-1
  852.  
  853. [sqlite]
  854. ;sqlite.assoc_case = 0
  855.  
  856. [xmlrpc]
  857. ;xmlrpc_error_number = 0
  858. ;xmlrpc_errors = 0
  859.  
  860. [Pcre]
  861. ;PCRE library backtracking limit.
  862. ;pcre.backtrack_limit=100000
  863.  
  864. ;PCRE library recursion limit. 
  865. ;Please note that if you set this value to a high number you may consume all 
  866. ;the available process stack and eventually crash PHP (due to reaching the 
  867. ;stack size limit imposed by the Operating System).
  868. ;pcre.recursion_limit=100000
  869.  
  870. [Syslog]
  871. ; Whether or not to define the various syslog variables (e.g. $LOG_PID,
  872. ; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
  873. ; runtime, you can define these variables by calling define_syslog_variables().
  874. define_syslog_variables  = Off
  875.  
  876. [mail function]
  877. ; For Win32 only.
  878. SMTP = localhost
  879. smtp_port = 25
  880.  
  881. ; For Win32 only.
  882. ;sendmail_from = me@example.com
  883.  
  884. ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  885. ;sendmail_path =
  886.  
  887. ; Force the addition of the specified parameters to be passed as extra parameters
  888. ; to the sendmail binary. These parameters will always replace the value of
  889. ; the 5th parameter to mail(), even in safe mode.
  890. ;mail.force_extra_parameters =
  891.  
  892. [SQL]
  893. ; This configuration directive is unrelated to safe_mode.
  894. ; If enabled, connections to databases (like mysql_connect() or mysql_pconnect())
  895. ; will ignore the arguments provided (which include username and password) and
  896. ; will attempt to connect always using default values. These default values
  897. ; are typically host=localhost, user=the script owner,password=empty password.
  898. ;
  899. ; Note (paranoid): This is disabled as it is not actually a security measure, unless
  900. ; you want script to not have users and passwords hardcoded in them.
  901. sql.safe_mode = Off
  902.  
  903. [ODBC]
  904. ;odbc.default_db    =  Not yet implemented
  905. ;odbc.default_user  =  Not yet implemented
  906. ;odbc.default_pw    =  Not yet implemented
  907.  
  908. ; Allow or prevent persistent links.
  909. odbc.allow_persistent = On
  910.  
  911. ; Check that a connection is still valid before reuse.
  912. odbc.check_persistent = On
  913.  
  914. ; Maximum number of persistent links.  -1 means no limit.
  915. odbc.max_persistent = -1
  916.  
  917. ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
  918. odbc.max_links = -1
  919.  
  920. ; Handling of LONG fields.  Returns number of bytes to variables.  0 means
  921. ; passthru.
  922. odbc.defaultlrl = 4096
  923.  
  924. ; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
  925. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
  926. ; of uodbc.defaultlrl and uodbc.defaultbinmode
  927. odbc.defaultbinmode = 1
  928.  
  929. [MySQL]
  930. ; Allow or prevent persistent links.
  931. mysql.allow_persistent = On
  932.  
  933. ; Maximum number of persistent links.  -1 means no limit.
  934. mysql.max_persistent = -1
  935.  
  936. ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
  937. mysql.max_links = -1
  938.  
  939. ; Default port number for mysql_connect().  If unset, mysql_connect() will use
  940. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
  941. ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
  942. ; at MYSQL_PORT.
  943. mysql.default_port =
  944.  
  945. ; Default socket name for local MySQL connects.  If empty, uses the built-in
  946. ; MySQL defaults.
  947. mysql.default_socket =
  948.  
  949. ; Default host for mysql_connect() (doesn't apply in safe mode).
  950. mysql.default_host =
  951.  
  952. ; Default user for mysql_connect() (doesn't apply in safe mode).
  953. mysql.default_user =
  954.  
  955. ; Default password for mysql_connect() (doesn't apply in safe mode).
  956. ; Note that this is generally a *bad* idea to store passwords in this file.
  957. ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
  958. ; and reveal this password!  And of course, any users with read access to this
  959. ; file will be able to reveal the password as well.
  960. mysql.default_password =
  961.  
  962. ; Maximum time (in seconds) for connect timeout. -1 means no limit
  963. mysql.connect_timeout = 60
  964.  
  965. ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
  966. ; SQL-Errors will be displayed.
  967. mysql.trace_mode = Off
  968.  
  969. [MySQLi]
  970.  
  971. ; Maximum number of links.  -1 means no limit.
  972. mysqli.max_links = -1
  973.  
  974. ; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
  975. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
  976. ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
  977. ; at MYSQL_PORT.
  978. mysqli.default_port = 3306
  979.  
  980. ; Default socket name for local MySQL connects.  If empty, uses the built-in
  981. ; MySQL defaults.
  982. mysqli.default_socket =
  983.  
  984. ; Default host for mysql_connect() (doesn't apply in safe mode).
  985. mysqli.default_host =
  986.  
  987. ; Default user for mysql_connect() (doesn't apply in safe mode).
  988. mysqli.default_user =
  989.  
  990. ; Default password for mysqli_connect() (doesn't apply in safe mode).
  991. ; Note that this is generally a *bad* idea to store passwords in this file.
  992. ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
  993. ; and reveal this password!  And of course, any users with read access to this
  994. ; file will be able to reveal the password as well.
  995. mysqli.default_pw =
  996.  
  997. ; Allow or prevent reconnect
  998. mysqli.reconnect = Off
  999.  
  1000. [mSQL]
  1001. ; Allow or prevent persistent links.
  1002. msql.allow_persistent = On
  1003.  
  1004. ; Maximum number of persistent links.  -1 means no limit.
  1005. msql.max_persistent = -1
  1006.  
  1007. ; Maximum number of links (persistent+non persistent).  -1 means no limit.
  1008. msql.max_links = -1
  1009.  
  1010. [OCI8]
  1011. ; enables privileged connections using external credentials (OCI_SYSOPER, OCI_SYSDBA)
  1012. ;oci8.privileged_connect = Off
  1013.  
  1014. ; Connection: The maximum number of persistent OCI8 connections per
  1015. ; process. Using -1 means no limit.
  1016. ;oci8.max_persistent = -1
  1017.  
  1018. ; Connection: The maximum number of seconds a process is allowed to
  1019. ; maintain an idle persistent connection. Using -1 means idle
  1020. ; persistent connections will be maintained forever.
  1021. ;oci8.persistent_timeout = -1
  1022.  
  1023. ; Connection: The number of seconds that must pass before issuing a
  1024. ; ping during oci_pconnect() to check the connection validity. When
  1025. ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
  1026. ; pings completely.
  1027. ;oci8.ping_interval = 60
  1028.  
  1029. ; Tuning: This option enables statement caching, and specifies how
  1030. ; many statements to cache. Using 0 disables statement caching.
  1031. ;oci8.statement_cache_size = 20
  1032.  
  1033. ; Tuning: Enables statement prefetching and sets the default number of
  1034. ; rows that will be fetched automatically after statement execution.
  1035. ;oci8.default_prefetch = 10
  1036.  
  1037. ; Compatibility. Using On means oci_close() will not close
  1038. ; oci_connect() and oci_new_connect() connections.
  1039. ;oci8.old_oci_close_semantics = Off
  1040.  
  1041. [PostgresSQL]
  1042. ; Allow or prevent persistent links.
  1043. pgsql.allow_persistent = On
  1044.  
  1045. ; Detect broken persistent links always with pg_pconnect().
  1046. ; Auto reset feature requires a little overheads.
  1047. pgsql.auto_reset_persistent = Off
  1048.  
  1049. ; Maximum number of persistent links.  -1 means no limit.
  1050. pgsql.max_persistent = -1
  1051.  
  1052. ; Maximum number of links (persistent+non persistent).  -1 means no limit.
  1053. pgsql.max_links = -1
  1054.  
  1055. ; Ignore PostgreSQL backends Notice message or not.
  1056. ; Notice message logging require a little overheads.
  1057. pgsql.ignore_notice = 0
  1058.  
  1059. ; Log PostgreSQL backends Noitce message or not.
  1060. ; Unless pgsql.ignore_notice=0, module cannot log notice message.
  1061. pgsql.log_notice = 0
  1062.  
  1063. [Sybase]
  1064. ; Allow or prevent persistent links.
  1065. sybase.allow_persistent = On
  1066.  
  1067. ; Maximum number of persistent links.  -1 means no limit.
  1068. sybase.max_persistent = -1
  1069.  
  1070. ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
  1071. sybase.max_links = -1
  1072.  
  1073. ;sybase.interface_file = "/usr/sybase/interfaces"
  1074.  
  1075. ; Minimum error severity to display.
  1076. sybase.min_error_severity = 10
  1077.  
  1078. ; Minimum message severity to display.
  1079. sybase.min_message_severity = 10
  1080.  
  1081. ; Compatibility mode with old versions of PHP 3.0.
  1082. ; If on, this will cause PHP to automatically assign types to results according
  1083. ; to their Sybase type, instead of treating them all as strings.  This
  1084. ; compatibility mode will probably not stay around forever, so try applying
  1085. ; whatever necessary changes to your code, and turn it off.
  1086. sybase.compatability_mode = Off
  1087.  
  1088. [Sybase-CT]
  1089. ; Allow or prevent persistent links.
  1090. sybct.allow_persistent = On
  1091.  
  1092. ; Maximum number of persistent links.  -1 means no limit.
  1093. sybct.max_persistent = -1
  1094.  
  1095. ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
  1096. sybct.max_links = -1
  1097.  
  1098. ; Minimum server message severity to display.
  1099. sybct.min_server_severity = 10
  1100.  
  1101. ; Minimum client message severity to display.
  1102. sybct.min_client_severity = 10
  1103.  
  1104. [bcmath]
  1105. ; Number of decimal digits for all bcmath functions.
  1106. bcmath.scale = 0
  1107.  
  1108. [browscap]
  1109. ;browscap = extra/browscap.ini
  1110.  
  1111. [Informix]
  1112. ; Default host for ifx_connect() (doesn't apply in safe mode).
  1113. ifx.default_host =
  1114.  
  1115. ; Default user for ifx_connect() (doesn't apply in safe mode).
  1116. ifx.default_user =
  1117.  
  1118. ; Default password for ifx_connect() (doesn't apply in safe mode).
  1119. ifx.default_password =
  1120.  
  1121. ; Allow or prevent persistent links.
  1122. ifx.allow_persistent = On
  1123.  
  1124. ; Maximum number of persistent links.  -1 means no limit.
  1125. ifx.max_persistent = -1
  1126.  
  1127. ; Maximum number of links (persistent + non-persistent).  -1 means no limit.
  1128. ifx.max_links = -1
  1129.  
  1130. ; If on, select statements return the contents of a text blob instead of its id.
  1131. ifx.textasvarchar = 0
  1132.  
  1133. ; If on, select statements return the contents of a byte blob instead of its id.
  1134. ifx.byteasvarchar = 0
  1135.  
  1136. ; Trailing blanks are stripped from fixed-length char columns.  May help the
  1137. ; life of Informix SE users.
  1138. ifx.charasvarchar = 0
  1139.  
  1140. ; If on, the contents of text and byte blobs are dumped to a file instead of
  1141. ; keeping them in memory.
  1142. ifx.blobinfile = 0
  1143.  
  1144. ; NULL's are returned as empty strings, unless this is set to 1.  In that case,
  1145. ; NULL's are returned as string 'NULL'.
  1146. ifx.nullformat = 0
  1147.  
  1148. [Session]
  1149. ; Handler used to store/retrieve data.
  1150. session.save_handler = files
  1151.  
  1152. ; Argument passed to save_handler.  In the case of files, this is the path
  1153. ; where data files are stored. Note: Windows users have to change this
  1154. ; variable in order to use PHP's session functions.
  1155. ;
  1156. ; As of PHP 4.0.1, you can define the path as:
  1157. ;
  1158. ;     session.save_path = "N;/path"
  1159. ;
  1160. ; where N is an integer.  Instead of storing all the session files in
  1161. ; /path, what this will do is use subdirectories N-levels deep, and
  1162. ; store the session data in those directories.  This is useful if you
  1163. ; or your OS have problems with lots of files in one directory, and is
  1164. ; a more efficient layout for servers that handle lots of sessions.
  1165. ;
  1166. ; NOTE 1: PHP will not create this directory structure automatically.
  1167. ;         You can use the script in the ext/session dir for that purpose.
  1168. ; NOTE 2: See the section on garbage collection below if you choose to
  1169. ;         use subdirectories for session storage
  1170. ;
  1171. ; The file storage module creates files using mode 600 by default.
  1172. ; You can change that by using
  1173. ;
  1174. ;     session.save_path = "N;MODE;/path"
  1175. ;
  1176. ; where MODE is the octal representation of the mode. Note that this
  1177. ; does not overwrite the process's umask.
  1178. session.save_path = /var/lib/php5
  1179.  
  1180. ; Substring to check each HTTP Referer for. If the Referer was sent by the
  1181. ; client and the substring was not found, the embedded session id will be marked
  1182. ; as invalid. Defaults to the empty string.
  1183. ; Note (paranoid): to prevent some XSS attacks should be defined to the server's URI
  1184. ; session.referer_check = 
  1185.  
  1186.  
  1187. ; Path to an external resource (file) which will be used as an additional
  1188. ; entropy source in the session id creation process. 
  1189. ; Note (paranoid): /dev/urandom is not fully random but if /dev/random is used
  1190. ; the entropy pool could be exhaused by constantly asking for session ids and 
  1191. ; would compromise other applications relying on randomness
  1192. session.entropy_file = "/dev/urandom"
  1193.  
  1194. ; Number of bytes which will be read from the file specified above. 
  1195. ; Defaults to 0 (disabled).
  1196. session.entropy_length = 6
  1197.  
  1198. ; Whether to use cookies.
  1199. session.use_cookies = 1
  1200.  
  1201. ; If this option is enabled cookies are only sent through secure (SSL)
  1202. ; connections and, consequently, are more difficult to intercept.
  1203. ; (disabled by default)
  1204. session.cookie_secure = 1
  1205.  
  1206. ; This option enables administrators to make their users invulnerable to 
  1207. ; attacks which involve passing session ids in URLs; defaults to 1 (since PHP 6.0).
  1208. session.use_only_cookies = 1
  1209.  
  1210. ; Name of the session (used as cookie name).
  1211. session.name = PHPSESSID
  1212.  
  1213. ; Initialize session on request startup.
  1214. session.auto_start = 0
  1215.  
  1216. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  1217. session.cookie_lifetime = 0
  1218.  
  1219. ; The path for which the cookie is valid.
  1220. ; Note (paranoid): Applications should restrict the path where the cookie
  1221. ; is valid through use of session_set_cookie_params().
  1222. session.cookie_path = /
  1223.  
  1224. ; The domain for which the cookie is valid.
  1225. ; Note (paranoid): Make sure you configure this for your site 
  1226. session.cookie_domain =
  1227.  
  1228. ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
  1229. session.cookie_httponly = 1
  1230.  
  1231. ; Handler used to serialize data.  php is the standard serializer of PHP.
  1232. session.serialize_handler = php
  1233.  
  1234. ; Define the probability that the 'garbage collection' process is started
  1235. ; on every session initialization.
  1236. ; The probability is calculated by using gc_probability/gc_divisor,
  1237. ; e.g. 1/100 means there is a 1% chance that the GC process starts
  1238. ; on each request.
  1239.  
  1240. ; This is disabled in the Debian packages, due to the strict permissions
  1241. ; on /var/lib/php5.  Instead of setting this here, see the cronjob at
  1242. ; /etc/cron.d/php5, which uses the session.gc_maxlifetime setting below
  1243. ;session.gc_probability = 0
  1244. session.gc_divisor     = 100
  1245.  
  1246. ; After this number of seconds, stored data will be seen as 'garbage' and
  1247. ; cleaned up by the garbage collection process.
  1248. session.gc_maxlifetime = 1440
  1249.  
  1250. ; NOTE: If you are using the subdirectory option for storing session files
  1251. ;       (see session.save_path above), then garbage collection does *not*
  1252. ;       happen automatically.  You will need to do your own garbage
  1253. ;       collection through a shell script, cron entry, or some other method.
  1254. ;       For example, the following script would is the equivalent of
  1255. ;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
  1256. ;          cd /path/to/sessions; find -cmin +24 | xargs rm
  1257.  
  1258. ; PHP 4.2 and less have an undocumented feature/bug that allows you to
  1259. ; to initialize a session variable in the global scope, albeit register_globals
  1260. ; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
  1261. ; You can disable the feature and the warning separately. At this time,
  1262. ; the warning is only displayed, if bug_compat_42 is enabled.
  1263.  
  1264. session.bug_compat_42 = 0
  1265. session.bug_compat_warn = 1
  1266.  
  1267. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  1268. ; HTTP_REFERER has to contain this substring for the session to be
  1269. ; considered as valid.
  1270. session.referer_check =
  1271.  
  1272. ; How many bytes to read from the file.
  1273. session.entropy_length = 0
  1274.  
  1275. ; Specified here to create the session id.
  1276. session.entropy_file =
  1277.  
  1278. ;session.entropy_length = 16
  1279.  
  1280. ;session.entropy_file = /dev/urandom
  1281.  
  1282. ; Set to {nocache,private,public,} to determine HTTP caching aspects
  1283. ; or leave this empty to avoid sending anti-caching headers.
  1284. session.cache_limiter = nocache
  1285.  
  1286. ; Document expires after n minutes.
  1287. session.cache_expire = 180
  1288.  
  1289. ; trans sid support is disabled by default.
  1290. ; Use of trans sid may risk your users security.
  1291. ; Use this option with caution.
  1292. ; - User may send URL contains active session ID
  1293. ;   to other person via. email/irc/etc.
  1294. ; - URL that contains active session ID may be stored
  1295. ;   in publically accessible computer.
  1296. ; - User may access your site with the same session ID
  1297. ;   always using URL stored in browser's history or bookmarks.
  1298. session.use_trans_sid = 0
  1299.  
  1300. ; Select a hash function
  1301. ; 0: MD5   (128 bits)
  1302. ; 1: SHA-1 (160 bits)
  1303. ; Note (paranoic): Set to SHA-1 since there are known attacks against MD5
  1304. ; although the algorithm is not yet broken)
  1305. session.hash_function = 1
  1306.  
  1307. ; Define how many bits are stored in each character when converting
  1308. ; the binary hash data to something readable.
  1309. ;
  1310. ; 4 bits: 0-9, a-f
  1311. ; 5 bits: 0-9, a-v
  1312. ; 6 bits: 0-9, a-z, A-Z, "-", ","
  1313. session.hash_bits_per_character = 4
  1314.  
  1315. ; The URL rewriter will look for URLs in a defined set of HTML tags.
  1316. ; form/fieldset are special; if you include them here, the rewriter will
  1317. ; add a hidden <input> field with the info which is otherwise appended
  1318. ; to URLs.  If you want XHTML conformity, remove the form entry.
  1319. ; Note that all valid entries require a "=", even if no value follows.
  1320. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry,fieldset="
  1321.  
  1322. [MSSQL]
  1323. ; Allow or prevent persistent links.
  1324. mssql.allow_persistent = On
  1325.  
  1326. ; Maximum number of persistent links.  -1 means no limit.
  1327. mssql.max_persistent = -1
  1328.  
  1329. ; Maximum number of links (persistent+non persistent).  -1 means no limit.
  1330. mssql.max_links = -1
  1331.  
  1332. ; Minimum error severity to display.
  1333. mssql.min_error_severity = 10
  1334.  
  1335. ; Minimum message severity to display.
  1336. mssql.min_message_severity = 10
  1337.  
  1338. ; Compatibility mode with old versions of PHP 3.0.
  1339. mssql.compatability_mode = Off
  1340.  
  1341. ; Connect timeout
  1342. ;mssql.connect_timeout = 5
  1343.  
  1344. ; Query timeout
  1345. ;mssql.timeout = 60
  1346.  
  1347. ; Valid range 0 - 2147483647.  Default = 4096.
  1348. ;mssql.textlimit = 4096
  1349.  
  1350. ; Valid range 0 - 2147483647.  Default = 4096.
  1351. ;mssql.textsize = 4096
  1352.  
  1353. ; Limits the number of records in each batch.  0 = all records in one batch.
  1354. ;mssql.batchsize = 0
  1355.  
  1356. ; Specify how datetime and datetim4 columns are returned
  1357. ; On => Returns data converted to SQL server settings
  1358. ; Off => Returns values as YYYY-MM-DD hh:mm:ss
  1359. ;mssql.datetimeconvert = On
  1360.  
  1361. ; Use NT authentication when connecting to the server
  1362. mssql.secure_connection = On
  1363.  
  1364. ; Specify max number of processes. -1 = library default
  1365. ; msdlib defaults to 25
  1366. ; FreeTDS defaults to 4096
  1367. ;mssql.max_procs = -1
  1368.  
  1369. ; Specify client character set. 
  1370. ; If empty or not set the client charset from freetds.comf is used
  1371. ; This is only used when compiled with FreeTDS
  1372. ;mssql.charset = "ISO-8859-1"
  1373.  
  1374. [Assertion]
  1375. ; Assert(expr); active by default.
  1376. ;assert.active = On
  1377.  
  1378. ; Issue a PHP warning for each failed assertion.
  1379. ;assert.warning = On
  1380.  
  1381. ; Don't bail out by default.
  1382. ;assert.bail = Off
  1383.  
  1384. ; User-function to be called if an assertion fails.
  1385. ;assert.callback = 0
  1386.  
  1387. ; Eval the expression with current error_reporting().  Set to true if you want
  1388. ; error_reporting(0) around the eval().
  1389. ;assert.quiet_eval = 0
  1390.  
  1391. [COM]
  1392. ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
  1393. ;com.typelib_file =
  1394. ; allow Distributed-COM calls
  1395. ;com.allow_dcom = true
  1396. ; autoregister constants of a components typlib on com_load()
  1397. ;com.autoregister_typelib = true
  1398. ; register constants casesensitive
  1399. ;com.autoregister_casesensitive = false
  1400. ; show warnings on duplicate constant registrations
  1401. ;com.autoregister_verbose = true
  1402.  
  1403. [mbstring]
  1404. ; language for internal character representation.
  1405. ;mbstring.language = Japanese
  1406.  
  1407. ; internal/script encoding.
  1408. ; Some encoding cannot work as internal encoding.
  1409. ; (e.g. SJIS, BIG5, ISO-2022-*)
  1410. ;mbstring.internal_encoding = EUC-JP
  1411.  
  1412. ; http input encoding.
  1413. ;mbstring.http_input = auto
  1414.  
  1415. ; http output encoding. mb_output_handler must be
  1416. ; registered as output buffer to function
  1417. ;mbstring.http_output = SJIS
  1418.  
  1419. ; enable automatic encoding translation according to 
  1420. ; mbstring.internal_encoding setting. Input chars are
  1421. ; converted to internal encoding by setting this to On.
  1422. ; Note: Do _not_ use automatic encoding translation for
  1423. ;       portable libs/applications.
  1424. ;mbstring.encoding_translation = Off
  1425.  
  1426. ; automatic encoding detection order.
  1427. ; auto means
  1428. ;mbstring.detect_order = auto
  1429.  
  1430. ; substitute_character used when character cannot be converted
  1431. ; one from another
  1432. ;mbstring.substitute_character = none;
  1433.  
  1434. ; overload(replace) single byte functions by mbstring functions.
  1435. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
  1436. ; etc. Possible values are 0,1,2,4 or combination of them.
  1437. ; For example, 7 for overload everything.
  1438. ; 0: No overload
  1439. ; 1: Overload mail() function
  1440. ; 2: Overload str*() functions
  1441. ; 4: Overload ereg*() functions
  1442. ;mbstring.func_overload = 0
  1443.  
  1444. [FrontBase]
  1445. ;fbsql.allow_persistent = On
  1446. ;fbsql.autocommit = On
  1447. ;fbsql.show_timestamp_decimals = Off
  1448. ;fbsql.default_database =
  1449. ;fbsql.default_database_password =
  1450. ;fbsql.default_host =
  1451. ;fbsql.default_password =
  1452. ;fbsql.default_user = "_SYSTEM"
  1453. ;fbsql.generate_warnings = Off
  1454. ;fbsql.max_connections = 128
  1455. ;fbsql.max_links = 128
  1456. ;fbsql.max_persistent = -1
  1457. ;fbsql.max_results = 128
  1458.  
  1459. [gd]
  1460. ; Tell the jpeg decode to libjpeg warnings and try to create
  1461. ; a gd image. The warning will then be displayed as notices
  1462. ; disabled by default
  1463. ;gd.jpeg_ignore_warning = 0
  1464.  
  1465. [exif]
  1466. ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
  1467. ; With mbstring support this will automatically be converted into the encoding
  1468. ; given by corresponding encode setting. When empty mbstring.internal_encoding
  1469. ; is used. For the decode settings you can distinguish between motorola and
  1470. ; intel byte order. A decode setting cannot be empty.
  1471. ;exif.encode_unicode = ISO-8859-15
  1472. ;exif.decode_unicode_motorola = UCS-2BE
  1473. ;exif.decode_unicode_intel    = UCS-2LE
  1474. ;exif.encode_jis =
  1475. ;exif.decode_jis_motorola = JIS
  1476. ;exif.decode_jis_intel    = JIS
  1477.  
  1478. [Tidy]
  1479. ; The path to a default tidy configuration file to use when using tidy
  1480. ;tidy.default_config = /usr/local/lib/php/default.tcfg
  1481.  
  1482. ; Should tidy clean and repair output automatically?
  1483. ; WARNING: Do not use this option if you are generating non-html content
  1484. ; such as dynamic images
  1485. tidy.clean_output = Off
  1486.  
  1487. [soap]
  1488. ; Enables or disables WSDL caching feature.
  1489. soap.wsdl_cache_enabled=1
  1490. ; Sets the directory name where SOAP extension will put cache files.
  1491. soap.wsdl_cache_dir="/var/lib/php5/soap-cache"
  1492. ; (time to live) Sets the number of second while cached file will be used 
  1493. ; instead of original one.
  1494. soap.wsdl_cache_ttl=86400
  1495.  
  1496. ; Local Variables:
  1497. ; tab-width: 4
  1498. ; End:
  1499.