Windows2008通过FastCGI配置IIS7+PHPweb应用

1, Enable FastCGI Support in IIS 7
Go to Control Panel -> Programs and Features -> Turn Windows features on or off. In the Windows Features dialog box, select the CGI check box. This enables both the CGI and FastCGI services.
2, Install and Configure PHP
It is recommended that you use a non-thread safe build of PHP with IIS 7 FastCGI. A non-thread safe build of PHP provides significant performance gains over the standard build by not doing any thread-safety checks, which are not necessary, since FastCGI ensures a single threaded execution environment.
To install PHP:
  1. Download the latest non-thread safe zip package with binaries of PHP: http://www.php.net/downloads.php.
  2. Unpack the files to the directory of your choice (e.g. C:\php). Rename the php.ini-recommended file to php.ini.
  3. Open the php.ini file. Uncomment and modify the settings as follows:
    • Set fastcgi.impersonate = 1. FastCGI under IIS supports the ability to impersonate security tokens of the calling client. This allows IIS to define the security context that the request runs under.
    • Set cgi.fix_pathinfo=1. cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. Previously, PHP behavior was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not define PATH_INFO. For more information about PATH_INFO, see the cgi specifications. Setting this value to 1 will cause PHP CGI to fix its paths to conform to the specifications.
    • Set cgi.force_redirect = 0.
    • Set open_basedir to point to the folder or network path where the content of the Web site(s) is located.
    • Set extension_dir to point to the location where the PHP extensions are located. Typically, for PHP 5.2.X the value would be set asextension_dir = "C:\php\ext"
    • Enable the required PHP extension by un-commenting ( 把该行前面的分号去掉,取消注释,加分号就是注释了该行)the corresponding lines, for example:

      extension=php_mssql.dll
      extension=php_mysql.dll
  4. Open a command prompt, and run the following command to verify that PHP installed successfully:
C:\PHP>php �Cinfo
If PHP installed correctly and all its dependencies are available on the machine, this command will output the current PHP configuration information.
3, Configure IIS 7 to Handle PHP Requests
For IIS 7 to host PHP applications, you must add a handler mapping that tells IIS to pass all PHP-specific requests to the PHP application framework by using the FastCGI protocol.

Configure IIS 7 to handle PHP requests by using IIS Manager

1. Open IIS Manager. At the server level, double-click Handler Mappings.
2. In the Actions pane, click Add Module Mapping.... In the Add Module Mapping dialog box, specify the configuration settings as follows:
  • Request path: *.php
  • Module: FastCgiModule
  • Executable: "C:\[Path to your PHP installation]\php-cgi.exe"
  • Name: PHP via FastCGI
    3. Modify the Resuest Restrictions configuration:
    4. Click OK. and 4. In the Add Module Mapping confirmation dialog box that asks if you want to create a FastCGI application for this executable, click Yes.\
    5. Test that the handler mapping works correctly by creating a phpinfo.php file in the C:\inetpub\wwwroot folder that contains the following code:
    <?php phpinfo(); ?>
    6. Open a browser and navigate to http://localhost/phpinfo.php. If everything was setup correctly, you will see the standard PHP information page.
    在这一步中,为了更加方便地检测Php是否安装成功,可以在cmd中,cd到c:\php目录下执行:php-cgi.exe D:\phpTest\test.php来验证。
    NOTE: If you do not see FastCgiModule in the Modules: list, the module is either not registered or not enabled. To check if the FastCGI module is registered, open the IIS configuration file that is located at % windir%\windows\system32\config\applicationHost.config and check that the following line is present in the <globalModules> section:
    <add name="FastCgiModule" image="%windir%\System32\inetsrv\iisfcgi.dll" />
    In the same file, also check that the FastCGI module is added to the <modules> section:
    <add name="FastCgiModule" />

    Configure IIS 7 to handle PHP requests by using the command line

    Alternatively, you can complete the steps above by using the command line tool A ppCmd.
    1. Create the FastCGI application process pool by running the following command:
    C:\>%windir%\system32\inetsrv\appcmd set config /section:system.webServer/fastCGI /+[fullPath='c:\{php_folder}\php-cgi.exe']
    2. Create the handler mapping by running the following command:
    C:\>%windir%\system32\inetsrv\appcmd set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='c:\{php_folder}\php-cgi.exe',resourceType='Unspecified']
    Note: If you are using PHP version 4.X, you can use php.exe instead of php-cgi.exe.
    BTW, 在这个过程中,可能会遇到500错误:
    Error info:
    HTTP Error 500.0 - Internal Server Error
    C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
    Detailed Error Information
    Module: FastCgiModule
    Notification: ExecuteRequestHandler
    Handler: PHP via FastCGI
    Error Code: 0x000000ff
    Requested URL: localhost/test.php
    Physical Path: C:\inetpub\wwwroot\test.php
    Logon Method: Negotiate
    Logon User: Domain\user
    引起这个问题的关键还是php.ini文件的设置有问题,可以通过排除法来解决:直接到 c:\php目录下,双击PHP-CGI.EXE, 在弹出的命令行窗口下看具体是什么错误,然后相应地修改php.ini文件,清除掉(用;注释掉)无效的或者提示找不到的extensions,就可以使用了。
    Try to execute PHP-CGI.EXE (BY DOUBLECLICKING ON IT). See if you get any error messages/ pop-ups. I got a ton of them and it all boiled down on having a bunch of extensions turned on, but not being available in my ext folder. Clear the PHP.INI of those invalid extensions and the problem should go away.
  • 参考: https://bugs.php.net/bug.php?id=45786
  • 下面,附一个正常使用的php.ini文件:
    [plain] view plain copy print ?
    1. [PHP]
    2. ;;;;;;;;;;;
    3. ; WARNING ;
    4. ;;;;;;;;;;;
    5. ; This is the default settings file for new PHP installations.
    6. ; By default, PHP installs itself with a configuration suitable for
    7. ; development purposes, and *NOT* for production purposes.
    8. ; For several security-oriented considerations that should be taken
    9. ; before going online with your site, please consult php.ini-recommended
    10. ; and http://php.net/manual/en/security.php.
    11. ;;;;;;;;;;;;;;;;;;;
    12. ; About php.ini ;
    13. ;;;;;;;;;;;;;;;;;;;
    14. ; This file controls many aspects of PHP's behavior. In order for PHP to
    15. ; read it, it must be named 'php.ini'. PHP looks for it in the current
    16. ; working directory, in the path designated by the environment variable
    17. ; PHPRC, and in the path that was defined in compile time (in that order).
    18. ; Under Windows, the compile-time path is the Windows directory. The
    19. ; path in which the php.ini file is looked for can be overridden using
    20. ; the -c argument in command line mode.
    21. ;
    22. ; The syntax of the file is extremely simple. Whitespace and Lines
    23. ; beginning with a semicolon are silently ignored (as you probably guessed).
    24. ; Section headers (e.g. [Foo]) are also silently ignored, even though
    25. ; they might mean something in the future.
    26. ;
    27. ; Directives are specified using the following syntax:
    28. ; directive = value
    29. ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
    30. ;
    31. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
    32. ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
    33. ; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
    34. ;
    35. ; Expressions in the INI file are limited to bitwise operators and parentheses:
    36. ; | bitwise OR
    37. ; & bitwise AND
    38. ; ~ bitwise NOT
    39. ; ! boolean NOT
    40. ;
    41. ; Boolean flags can be turned on using the values 1, On, True or Yes.
    42. ; They can be turned off using the values 0, Off, False or No.
    43. ;
    44. ; An empty string can be denoted by simply not writing anything after the equal
    45. ; sign, or by using the None keyword:
    46. ;
    47. ; foo = ; sets foo to an empty string
    48. ; foo = none ; sets foo to an empty string
    49. ; foo = "none" ; sets foo to the string 'none'
    50. ;
    51. ; If you use constants in your value, and these constants belong to a
    52. ; dynamically loaded extension (either a PHP extension or a Zend extension),
    53. ; you may only use these constants *after* the line that loads the extension.
    54. ;
    55. ;
    56. ;;;;;;;;;;;;;;;;;;;
    57. ; About this file ;
    58. ;;;;;;;;;;;;;;;;;;;
    59. ; All the values in the php.ini-dist file correspond to the builtin
    60. ; defaults (that is, if no php.ini is used, or if you delete these lines,
    61. ; the builtin defaults will be identical).
    62. ;;;;;;;;;;;;;;;;;;;;
    63. ; Language Options ;
    64. ;;;;;;;;;;;;;;;;;;;;
    65. ; Enable the PHP scripting language engine under Apache.
    66. engine = On
    67. ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
    68. zend.ze1_compatibility_mode = Off
    69. ; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
    70. ; NOTE: Using short tags should be avoided when developing applications or
    71. ; libraries that are meant for redistribution, or deployment on PHP
    72. ; servers which are not under your control, because short tags may not
    73. ; be supported on the target server. For portable, redistributable code,
    74. ; be sure not to use short tags.
    75. short_open_tag = On
    76. ; Allow ASP-style <% %> tags.
    77. asp_tags = Off
    78. ; The number of significant digits displayed in floating point numbers.
    79. precision = 12
    80. ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
    81. y2k_compliance = On
    82. ; Output buffering allows you to send header lines (including cookies) even
    83. ; after you send body content, at the price of slowing PHP's output layer a
    84. ; bit. You can enable output buffering during runtime by calling the output
    85. ; buffering functions. You can also enable output buffering for all files by
    86. ; setting this directive to On. If you wish to limit the size of the buffer
    87. ; to a certain size - you can use a maximum number of bytes instead of 'On', as
    88. ; a value for this directive (e.g., output_buffering=4096).
    89. output_buffering = Off
    90. ; You can redirect all of the output of your scripts to a function. For
    91. ; example, if you set output_handler to "mb_output_handler", character
    92. ; encoding will be transparently converted to the specified encoding.
    93. ; Setting any output handler automatically turns on output buffering.
    94. ; Note: People who wrote portable scripts should not depend on this ini
    95. ; directive. Instead, explicitly set the output handler using ob_start().
    96. ; Using this ini directive may cause problems unless you know what script
    97. ; is doing.
    98. ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
    99. ; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
    100. ; Note: output_handler must be empty if this is set 'On' !!!!
    101. ; Instead you must use zlib.output_handler.
    102. ;output_handler =
    103. ; Transparent output compression using the zlib library
    104. ; Valid values for this option are 'off', 'on', or a specific buffer size
    105. ; to be used for compression (default is 4KB)
    106. ; Note: Resulting chunk size may vary due to nature of compression. PHP
    107. ; outputs chunks that are few hundreds bytes each as a result of
    108. ; compression. If you prefer a larger chunk size for better
    109. ; performance, enable output_buffering in addition.
    110. ; Note: You need to use zlib.output_handler instead of the standard
    111. ; output_handler, or otherwise the output will be corrupted.
    112. zlib.output_compression = Off
    113. ;zlib.output_compression_level = -1
    114. ; You cannot specify additional output handlers if zlib.output_compression
    115. ; is activated here. This setting does the same as output_handler but in
    116. ; a different order.
    117. ;zlib.output_handler =
    118. ; Implicit flush tells PHP to tell the output layer to flush itself
    119. ; automatically after every output block. This is equivalent to calling the
    120. ; PHP function flush() after each and every call to print() or echo() and each
    121. ; and every HTML block. Turning this option on has serious performance
    122. ; implications and is generally recommended for debugging purposes only.
    123. implicit_flush = Off
    124. ; The unserialize callback function will be called (with the undefined class'
    125. ; name as parameter), if the unserializer finds an undefined class
    126. ; which should be instantiated.
    127. ; A warning appears if the specified function is not defined, or if the
    128. ; function doesn't include/implement the missing class.
    129. ; So only set this entry, if you really want to implement such a
    130. ; callback-function.
    131. unserialize_callback_func=
    132. ; When floats & doubles are serialized store serialize_precision significant
    133. ; digits after the floating point. The default value ensures that when floats
    134. ; are decoded with unserialize, the data will remain the same.
    135. serialize_precision = 100
    136. ; Whether to enable the ability to force arguments to be passed by reference
    137. ; at function call time. This method is deprecated and is likely to be
    138. ; unsupported in future versions of PHP/Zend. The encouraged method of
    139. ; specifying which arguments should be passed by reference is in the function
    140. ; declaration. You're encouraged to try and turn this option Off and make
    141. ; sure your scripts work properly with it in order to ensure they will work
    142. ; with future versions of the language (you will receive a warning each time
    143. ; you use this feature, and the argument will be passed by value instead of by
    144. ; reference).
    145. allow_call_time_pass_reference = On
    146. ;
    147. ; Safe Mode
    148. ;
    149. safe_mode = Off
    150. ; By default, Safe Mode does a UID compare check when
    151. ; opening files. If you want to relax this to a GID compare,
    152. ; then turn on safe_mode_gid.
    153. safe_mode_gid = Off
    154. ; When safe_mode is on, UID/GID checks are bypassed when
    155. ; including files from this directory and its subdirectories.
    156. ; (directory must also be in include_path or full path must
    157. ; be used when including)
    158. safe_mode_include_dir =
    159. ; When safe_mode is on, only executables located in the safe_mode_exec_dir
    160. ; will be allowed to be executed via the exec family of functions.
    161. safe_mode_exec_dir =
    162. ; Setting certain environment variables may be a potential security breach.
    163. ; This directive contains a comma-delimited list of prefixes. In Safe Mode,
    164. ; the user may only alter environment variables whose names begin with the
    165. ; prefixes supplied here. By default, users will only be able to set
    166. ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
    167. ;
    168. ; Note: If this directive is empty, PHP will let the user modify ANY
    169. ; environment variable!
    170. safe_mode_allowed_env_vars = PHP_
    171. ; This directive contains a comma-delimited list of environment variables that
    172. ; the end user won't be able to change using putenv(). These variables will be
    173. ; protected even if safe_mode_allowed_env_vars is set to allow to change them.
    174. safe_mode_protected_env_vars = LD_LIBRARY_PATH
    175. ; open_basedir, if set, limits all file operations to the defined directory
    176. ; and below. This directive makes most sense if used in a per-directory
    177. ; or per-virtualhost web server configuration file. This directive is
    178. ; *NOT* affected by whether Safe Mode is turned On or Off.
    179. open_basedir = "D:\phpTest"
    180. ; This directive allows you to disable certain functions for security reasons.
    181. ; It receives a comma-delimited list of function names. This directive is
    182. ; *NOT* affected by whether Safe Mode is turned On or Off.
    183. disable_functions =
    184. ; This directive allows you to disable certain classes for security reasons.
    185. ; It receives a comma-delimited list of class names. This directive is
    186. ; *NOT* affected by whether Safe Mode is turned On or Off.
    187. disable_classes =
    188. ; Colors for Syntax Highlighting mode. Anything that's acceptable in
    189. ; <span style="color: ???????"> would work.
    190. ;highlight.string = #DD0000
    191. ;highlight.comment = #FF9900
    192. ;highlight.keyword = #007700
    193. ;highlight.bg = #FFFFFF
    194. ;highlight.default = #0000BB
    195. ;highlight.html = #000000
    196. ; If enabled, the request will be allowed to complete even if the user aborts
    197. ; the request. Consider enabling it if executing long request, which may end up
    198. ; being interrupted by the user or a browser timing out.
    199. ; ignore_user_abort = On
    200. ; Determines the size of the realpath cache to be used by PHP. This value should
    201. ; be increased on systems where PHP opens many files to reflect the quantity of
    202. ; the file operations performed.
    203. ; realpath_cache_size=16k
    204. ; Duration of time, in seconds for which to cache realpath information for a given
    205. ; file or directory. For systems with rarely changing files, consider increasing this
    206. ; value.
    207. ; realpath_cache_ttl=120
    208. ;
    209. ; Misc
    210. ;
    211. ; Decides whether PHP may expose the fact that it is installed on the server
    212. ; (e.g. by adding its signature to the Web server header). It is no security
    213. ; threat in any way, but it makes it possible to determine whether you use PHP
    214. ; on your server or not.
    215. expose_php = On
    216. ;;;;;;;;;;;;;;;;;;;
    217. ; Resource Limits ;
    218. ;;;;;;;;;;;;;;;;;;;
    219. max_execution_time = 30 ; Maximum execution time of each script, in seconds
    220. max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
    221. ;max_input_nesting_level = 64 ; Maximum input variable nesting level
    222. memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
    223. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    224. ; Error handling and logging ;
    225. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    226. ; error_reporting is a bit-field. Or each number up to get desired error
    227. ; reporting level
    228. ; E_ALL - All errors and warnings (doesn't include E_STRICT)
    229. ; E_ERROR - fatal run-time errors
    230. ; E_RECOVERABLE_ERROR - almost fatal run-time errors
    231. ; E_WARNING - run-time warnings (non-fatal errors)
    232. ; E_PARSE - compile-time parse errors
    233. ; E_NOTICE - run-time notices (these are warnings which often result
    234. ; from a bug in your code, but it's possible that it was
    235. ; intentional (e.g., using an uninitialized variable and
    236. ; relying on the fact it's automatically initialized to an
    237. ; empty string)
    238. ; E_STRICT - run-time notices, enable to have PHP suggest changes
    239. ; to your code which will ensure the best interoperability
    240. ; and forward compatibility of your code
    241. ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
    242. ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
    243. ; initial startup
    244. ; E_COMPILE_ERROR - fatal compile-time errors
    245. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
    246. ; E_USER_ERROR - user-generated error message
    247. ; E_USER_WARNING - user-generated warning message
    248. ; E_USER_NOTICE - user-generated notice message
    249. ;
    250. ; Examples:
    251. ;
    252. ; - Show all errors, except for notices and coding standards warnings
    253. ;
    254. ;error_reporting = E_ALL & ~E_NOTICE
    255. ;
    256. ; - Show all errors, except for notices
    257. ;
    258. ;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
    259. ;
    260. ; - Show only errors
    261. ;
    262. ;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
    263. ;
    264. ; - Show all errors except for notices and coding standards warnings
    265. ;
    266. error_reporting = E_ALL & ~E_NOTICE
    267. ; Print out errors (as a part of the output). For production web sites,
    268. ; you're strongly encouraged to turn this feature off, and use error logging
    269. ; instead (see below). Keeping display_errors enabled on a production web site
    270. ; may reveal security information to end users, such as file paths on your Web
    271. ; server, your database schema or other information.
    272. ;
    273. ; possible values for display_errors:
    274. ;
    275. ; Off - Do not display any errors
    276. ; stderr - Display errors to STDERR (affects only CGI/CLI binaries!)
    277. ;
    278. ;display_errors = "stderr"
    279. ;
    280. ; stdout (On) - Display errors to STDOUT
    281. ;
    282. display_errors = On
    283. ; Even when display_errors is on, errors that occur during PHP's startup
    284. ; sequence are not displayed. It's strongly recommended to keep
    285. ; display_startup_errors off, except for when debugging.
    286. display_startup_errors = Off
    287. ; Log errors into a log file (server-specific log, stderr, or error_log (below))
    288. ; As stated above, you're strongly advised to use error logging in place of
    289. ; error displaying on production web sites.
    290. log_errors = Off
    291. ; Set maximum length of log_errors. In error_log information about the source is
    292. ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
    293. log_errors_max_len = 1024
    294. ; Do not log repeated messages. Repeated errors must occur in same file on same
    295. ; line unless ignore_repeated_source is set true.
    296. ignore_repeated_errors = Off
    297. ; Ignore source of message when ignoring repeated messages. When this setting
    298. ; is On you will not log errors with repeated messages from different files or
    299. ; source lines.
    300. ignore_repeated_source = Off
    301. ; If this parameter is set to Off, then memory leaks will not be shown (on
    302. ; stdout or in the log). This has only effect in a debug compile, and if
    303. ; error reporting includes E_WARNING in the allowed list
    304. report_memleaks = On
    305. ;report_zend_debug = 0
    306. ; Store the last error/warning message in $php_errormsg (boolean).
    307. track_errors = Off
    308. ; Turn off normal error reporting and emit XML-RPC error XML
    309. ;xmlrpc_errors = 0
    310. ; An XML-RPC faultCode
    311. ;xmlrpc_error_number = 0
    312. ; Disable the inclusion of HTML tags in error messages.
    313. ; Note: Never use this feature for production boxes.
    314. ;html_errors = Off
    315. ; If html_errors is set On PHP produces clickable error messages that direct
    316. ; to a page describing the error or function causing the error in detail.
    317. ; You can download a copy of the PHP manual from http://www.php.net/docs.php
    318. ; and change docref_root to the base URL of your local copy including the
    319. ; leading '/'. You must also specify the file extension being used including
    320. ; the dot.
    321. ; Note: Never use this feature for production boxes.
    322. ;docref_root = "/phpmanual/"
    323. ;docref_ext = .html
    324. ; String to output before an error message.
    325. ;error_prepend_string = "<font color=#ff0000>"
    326. ; String to output after an error message.
    327. ;error_append_string = "</font>"
    328. ; Log errors to specified file.
    329. ;error_log = filename
    330. ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
    331. ;error_log = syslog
    332. ;;;;;;;;;;;;;;;;;
    333. ; Data Handling ;
    334. ;;;;;;;;;;;;;;;;;
    335. ;
    336. ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
    337. ; The separator used in PHP generated URLs to separate arguments.
    338. ; Default is "&".
    339. ;arg_separator.output = "&"
    340. ; List of separator(s) used by PHP to parse input URLs into variables.
    341. ; Default is "&".
    342. ; NOTE: Every character in this directive is considered as separator!
    343. ;arg_separator.input = ";&"
    344. ; This directive describes the order in which PHP registers GET, POST, Cookie,
    345. ; Environment and Built-in variables (G, P, C, E & S respectively, often
    346. ; referred to as EGPCS or GPC). Registration is done from left to right, newer
    347. ; values override older values.
    348. variables_order = "EGPCS"
    349. ; Whether or not to register the EGPCS variables as global variables. You may
    350. ; want to turn this off if you don't want to clutter your scripts' global scope
    351. ; with user data. This makes most sense when coupled with track_vars - in which
    352. ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
    353. ; variables.
    354. ;
    355. ; You should do your best to write your scripts so that they do not require
    356. ; register_globals to be on; Using form variables as globals can easily lead
    357. ; to possible security problems, if the code is not very well thought of.
    358. register_globals = Off
    359. ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
    360. ; and friends. If you're not using them, it's recommended to turn them off,
    361. ; for performance reasons.
    362. register_long_arrays = On
    363. ; This directive tells PHP whether to declare the argv&argc variables (that
    364. ; would contain the GET information). If you don't use these variables, you
    365. ; should turn it off for increased performance.
    366. register_argc_argv = On
    367. ; When enabled, the SERVER and ENV variables are created when they're first
    368. ; used (Just In Time) instead of when the script starts. If these variables
    369. ; are not used within a script, having this directive on will result in a
    370. ; performance gain. The PHP directives register_globals, register_long_arrays,
    371. ; and register_argc_argv must be disabled for this directive to have any affect.
    372. auto_globals_jit = On
    373. ; Maximum size of POST data that PHP will accept.
    374. post_max_size = 8M
    375. ; Magic quotes
    376. ;
    377. ; Magic quotes for incoming GET/POST/Cookie data.
    378. magic_quotes_gpc = On
    379. ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
    380. magic_quotes_runtime = Off
    381. ; Use Sybase-style magic quotes (escape ' with '' instead of \').
    382. magic_quotes_sybase = Off
    383. ; Automatically add files before or after any PHP document.
    384. auto_prepend_file =
    385. auto_append_file =
    386. ; As of 4.0b4, PHP always outputs a character encoding by default in
    387. ; the Content-type: header. To disable sending of the charset, simply
    388. ; set it to be empty.
    389. ;
    390. ; PHP's built-in default is text/html
    391. default_mimetype = "text/html"
    392. ;default_charset = "iso-8859-1"
    393. ; Always populate the $HTTP_RAW_POST_DATA variable.
    394. ;always_populate_raw_post_data = On
    395. ;;;;;;;;;;;;;;;;;;;;;;;;;
    396. ; Paths and Directories ;
    397. ;;;;;;;;;;;;;;;;;;;;;;;;;
    398. ; UNIX: "/path1:/path2"
    399. ;include_path = ".:/php/includes"
    400. ;
    401. ; Windows: "\path1;\path2"
    402. ;include_path = ".;c:\php\includes"
    403. ; The root of the PHP pages, used only if nonempty.
    404. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    405. ; if you are running php as a CGI under any web server (other than IIS)
    406. ; see documentation for security issues. The alternate is to use the
    407. ; cgi.force_redirect configuration below
    408. doc_root =
    409. ; The directory under which PHP opens the script using /~username used only
    410. ; if nonempty.
    411. user_dir =
    412. ; Directory in which the loadable extensions (modules) reside.
    413. extension_dir = "C:\php\ext"
    414. ; Whether or not to enable the dl() function. The dl() function does NOT work
    415. ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    416. ; disabled on them.
    417. enable_dl = On
    418. ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
    419. ; most web servers. Left undefined, PHP turns this on by default. You can
    420. ; turn it off here AT YOUR OWN RISK
    421. ; **You CAN safely turn this off for IIS, in fact, you MUST.**
    422. cgi.force_redirect = 0
    423. ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
    424. ; every request.
    425. ; cgi.nph = 1
    426. ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
    427. ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
    428. ; will look for to know it is OK to continue execution. Setting this variable MAY
    429. ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
    430. ; cgi.redirect_status_env = ;
    431. ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
    432. ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
    433. ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
    434. ; this to 1 will cause PHP CGI to fix it's paths to conform to the spec. A setting
    435. ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
    436. ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
    437. cgi.fix_pathinfo=1
    438. ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
    439. ; security tokens of the calling client. This allows IIS to define the
    440. ; security context that the request runs under. mod_fastcgi under Apache
    441. ; does not currently support this feature (03/17/2002)
    442. ; Set to 1 if running under IIS. Default is zero.
    443. fastcgi.impersonate = 1;
    444. ; Disable logging through FastCGI connection
    445. ; fastcgi.logging = 0
    446. ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
    447. ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
    448. ; is supported by Apache. When this option is set to 1 PHP will send
    449. ; RFC2616 compliant header.
    450. ; Default is zero.
    451. ;cgi.rfc2616_headers = 0
    452. ;;;;;;;;;;;;;;;;
    453. ; File Uploads ;
    454. ;;;;;;;;;;;;;;;;
    455. ; Whether to allow HTTP file uploads.
    456. file_uploads = On
    457. ; Temporary directory for HTTP uploaded files (will use system default if not
    458. ; specified).
    459. ;upload_tmp_dir =
    460. ; Maximum allowed size for uploaded files.
    461. upload_max_filesize = 2M
    462. ; Maximum number of files that can be uploaded via a single request
    463. max_file_uploads = 20
    464. ;;;;;;;;;;;;;;;;;;
    465. ; Fopen wrappers ;
    466. ;;;;;;;;;;;;;;;;;;
    467. ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    468. allow_url_fopen = On
    469. ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
    470. allow_url_include = Off
    471. ; Define the anonymous ftp password (your email address)
    472. ;from="[email protected]"
    473. ; Define the User-Agent string
    474. ; user_agent="PHP"
    475. ; Default timeout for socket based streams (seconds)
    476. default_socket_timeout = 60
    477. ; If your scripts have to deal with files from Macintosh systems,
    478. ; or you are running on a Mac and need to deal with files from
    479. ; unix or win32 systems, setting this flag will cause PHP to
    480. ; automatically detect the EOL character in those files so that
    481. ; fgets() and file() will work regardless of the source of the file.
    482. ; auto_detect_line_endings = Off
    483. ;;;;;;;;;;;;;;;;;;;;;;
    484. ; Dynamic Extensions ;
    485. ;;;;;;;;;;;;;;;;;;;;;;
    486. ;
    487. ; If you wish to have an extension loaded automatically, use the following
    488. ; syntax:
    489. ;
    490. ; extension=modulename.extension
    491. ;
    492. ; For example, on Windows:
    493. ;
    494. ; extension=msql.dll
    495. ;
    496. ; ... or under UNIX:
    497. ;
    498. ; extension=msql.so
    499. ;
    500. ; Note that it should be the name of the module only; no directory information
    501. ; needs to go here. Specify the location of the extension with the
    502. ; extension_dir directive above.
    503. ; Windows Extensions
    504. ; Note that ODBC support is built in, so no dll is needed for it.
    505. ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
    506. ; extension folders as well as the separate PECL DLL download (PHP 5).
    507. ; Be sure to appropriately set the extension_dir directive.
    508. ;extension=php_bz2.dll
    509. ;extension=php_curl.dll
    510. ;extension=php_dba.dll
    511. ;extension=php_dbase.dll
    512. ;extension=php_fdf.dll
    513. extension=php_gd2.dll
    514. ;extension=php_gettext.dll
    515. ;extension=php_gmp.dll
    516. ;extension=php_ifx.dll
    517. ;extension=php_imap.dll
    518. ;extension=php_interbase.dll
    519. ;extension=php_ldap.dll
    520. ;extension=php_mbstring.dll
    521. ;extension=php_exif.dll
    522. ;extension=php_mcrypt.dll
    523. ;extension=php_mhash.dll
    524. ;extension=php_mime_magic.dll
    525. ;extension=php_ming.dll
    526. extension=php_msql.dll
    527. ;extension=php_mssql.dll
    528. ;extension=php_mysql.dll
    529. ;extension=php_mysqli.dll
    530. ;extension=php_oci8.dll
    531. ;extension=php_openssl.dll
    532. ;extension=php_pdo.dll
    533. ;extension=php_pdo_firebird.dll
    534. ;extension=php_pdo_mssql.dll
    535. ;extension=php_pdo_mysql.dll
    536. ;extension=php_pdo_oci.dll
    537. ;extension=php_pdo_oci8.dll
    538. ;extension=php_pdo_odbc.dll
    539. ;extension=php_pdo_pgsql.dll
    540. ;extension=php_pdo_sqlite.dll
    541. ;extension=php_pgsql.dll
    542. ;extension=php_pspell.dll
    543. ;extension=php_shmop.dll
    544. ;extension=php_snmp.dll
    545. ;extension=php_soap.dll
    546. ;extension=php_sockets.dll
    547. ;extension=php_sqlite.dll
    548. ;extension=php_sybase_ct.dll
    549. ;extension=php_tidy.dll
    550. ;extension=php_xmlrpc.dll
    551. ;extension=php_xsl.dll
    552. ;extension=php_zip.dll
    553. ;;;;;;;;;;;;;;;;;;;
    554. ; Module Settings ;
    555. ;;;;;;;;;;;;;;;;;;;
    556. [Date]
    557. ; Defines the default timezone used by the date functions
    558. ;date.timezone =
    559. ;date.default_latitude = 31.7667
    560. ;date.default_longitude = 35.2333
    561. ;date.sunrise_zenith = 90.583333
    562. ;date.sunset_zenith = 90.583333
    563. [filter]
    564. ;filter.default = unsafe_raw
    565. ;filter.default_flags =
    566. [iconv]
    567. ;iconv.input_encoding = ISO-8859-1
    568. ;iconv.internal_encoding = ISO-8859-1
    569. ;iconv.output_encoding = ISO-8859-1
    570. [sqlite]
    571. ;sqlite.assoc_case = 0
    572. [Pcre]
    573. ;PCRE library backtracking limit.
    574. ;pcre.backtrack_limit=100000
    575. ;PCRE library recursion limit.
    576. ;Please note that if you set this value to a high number you may consume all
    577. ;the available process stack and eventually crash PHP (due to reaching the
    578. ;stack size limit imposed by the Operating System).
    579. ;pcre.recursion_limit=100000
    580. [Syslog]
    581. ; Whether or not to define the various syslog variables (e.g. $LOG_PID,
    582. ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
    583. ; runtime, you can define these variables by calling define_syslog_variables().
    584. define_syslog_variables = Off
    585. [mail function]
    586. ; For Win32 only.
    587. SMTP = localhost
    588. smtp_port = 25
    589. ; For Win32 only.
    590. ;sendmail_from = [email protected]
    591. ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    592. ;sendmail_path =
    593. ; Force the addition of the specified parameters to be passed as extra parameters
    594. ; to the sendmail binary. These parameters will always replace the value of
    595. ; the 5th parameter to mail(), even in safe mode.
    596. ;mail.force_extra_parameters =
    597. [SQL]
    598. sql.safe_mode = Off
    599. [ODBC]
    600. ;odbc.default_db = Not yet implemented
    601. ;odbc.default_user = Not yet implemented
    602. ;odbc.default_pw = Not yet implemented
    603. ; Allow or prevent persistent links.
    604. odbc.allow_persistent = On
    605. ; Check that a connection is still valid before reuse.
    606. odbc.check_persistent = On
    607. ; Maximum number of persistent links. -1 means no limit.
    608. odbc.max_persistent = -1
    609. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    610. odbc.max_links = -1
    611. ; Handling of LONG fields. Returns number of bytes to variables. 0 means
    612. ; passthru.
    613. odbc.defaultlrl = 4096
    614. ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
    615. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
    616. ; of uodbc.defaultlrl and uodbc.defaultbinmode
    617. odbc.defaultbinmode = 1
    618. [MySQL]
    619. ; Allow or prevent persistent links.
    620. mysql.allow_persistent = On
    621. ; Maximum number of persistent links. -1 means no limit.
    622. mysql.max_persistent = -1
    623. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    624. mysql.max_links = -1
    625. ; Default port number for mysql_connect(). If unset, mysql_connect() will use
    626. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    627. ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    628. ; at MYSQL_PORT.
    629. mysql.default_port =
    630. ; Default socket name for local MySQL connects. If empty, uses the built-in
    631. ; MySQL defaults.
    632. mysql.default_socket =
    633. ; Default host for mysql_connect() (doesn't apply in safe mode).
    634. mysql.default_host =
    635. ; Default user for mysql_connect() (doesn't apply in safe mode).
    636. mysql.default_user =
    637. ; Default password for mysql_connect() (doesn't apply in safe mode).
    638. ; Note that this is generally a *bad* idea to store passwords in this file.
    639. ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
    640. ; and reveal this password! And of course, any users with read access to this
    641. ; file will be able to reveal the password as well.
    642. mysql.default_password =
    643. ; Maximum time (in seconds) for connect timeout. -1 means no limit
    644. mysql.connect_timeout = 60
    645. ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
    646. ; SQL-Errors will be displayed.
    647. mysql.trace_mode = Off
    648. [MySQLi]
    649. ; Maximum number of links. -1 means no limit.
    650. mysqli.max_links = -1
    651. ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
    652. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    653. ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    654. ; at MYSQL_PORT.
    655. mysqli.default_port = 3306
    656. ; Default socket name for local MySQL connects. If empty, uses the built-in
    657. ; MySQL defaults.
    658. mysqli.default_socket =
    659. ; Default host for mysql_connect() (doesn't apply in safe mode).
    660. mysqli.default_host =
    661. ; Default user for mysql_connect() (doesn't apply in safe mode).
    662. mysqli.default_user =
    663. ; Default password for mysqli_connect() (doesn't apply in safe mode).
    664. ; Note that this is generally a *bad* idea to store passwords in this file.
    665. ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
    666. ; and reveal this password! And of course, any users with read access to this
    667. ; file will be able to reveal the password as well.
    668. mysqli.default_pw =
    669. ; Allow or prevent reconnect
    670. mysqli.reconnect = Off
    671. [mSQL]
    672. ; Allow or prevent persistent links.
    673. msql.allow_persistent = On
    674. ; Maximum number of persistent links. -1 means no limit.
    675. msql.max_persistent = -1
    676. ; Maximum number of links (persistent+non persistent). -1 means no limit.
    677. msql.max_links = -1
    678. [OCI8]
    679. ; enables privileged connections using external credentials (OCI_SYSOPER, OCI_SYSDBA)
    680. ;oci8.privileged_connect = Off
    681. ; Connection: The maximum number of persistent OCI8 connections per
    682. ; process. Using -1 means no limit.
    683. ;oci8.max_persistent = -1
    684. ; Connection: The maximum number of seconds a process is allowed to
    685. ; maintain an idle persistent connection. Using -1 means idle
    686. ; persistent connections will be maintained forever.
    687. ;oci8.persistent_timeout = -1
    688. ; Connection: The number of seconds that must pass before issuing a
    689. ; ping during oci_pconnect() to check the connection validity. When
    690. ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
    691. ; pings completely.
    692. ;oci8.ping_interval = 60
    693. ; Tuning: This option enables statement caching, and specifies how
    694. ; many statements to cache. Using 0 disables statement caching.
    695. ;oci8.statement_cache_size = 20
    696. ; Tuning: Enables statement prefetching and sets the default number of
    697. ; rows that will be fetched automatically after statement execution.
    698. ;oci8.default_prefetch = 10
    699. ; Compatibility. Using On means oci_close() will not close
    700. ; oci_connect() and oci_new_connect() connections.
    701. ;oci8.old_oci_close_semantics = Off
    702. [PostgresSQL]
    703. ; Allow or prevent persistent links.
    704. pgsql.allow_persistent = On
    705. ; Detect broken persistent links always with pg_pconnect().
    706. ; Auto reset feature requires a little overheads.
    707. pgsql.auto_reset_persistent = Off
    708. ; Maximum number of persistent links. -1 means no limit.
    709. pgsql.max_persistent = -1
    710. ; Maximum number of links (persistent+non persistent). -1 means no limit.
    711. pgsql.max_links = -1
    712. ; Ignore PostgreSQL backends Notice message or not.
    713. ; Notice message logging require a little overheads.
    714. pgsql.ignore_notice = 0
    715. ; Log PostgreSQL backends Notice message or not.
    716. ; Unless pgsql.ignore_notice=0, module cannot log notice message.
    717. pgsql.log_notice = 0
    718. [Sybase]
    719. ; Allow or prevent persistent links.
    720. sybase.allow_persistent = On
    721. ; Maximum number of persistent links. -1 means no limit.
    722. sybase.max_persistent = -1
    723. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    724. sybase.max_links = -1
    725. ;sybase.interface_file = "/usr/sybase/interfaces"
    726. ; Minimum error severity to display.
    727. sybase.min_error_severity = 10
    728. ; Minimum message severity to display.
    729. sybase.min_message_severity = 10
    730. ; Compatibility mode with old versions of PHP 3.0.
    731. ; If on, this will cause PHP to automatically assign types to results according
    732. ; to their Sybase type, instead of treating them all as strings. This
    733. ; compatibility mode will probably not stay around forever, so try applying
    734. ; whatever necessary changes to your code, and turn it off.
    735. sybase.compatability_mode = Off
    736. [Sybase-CT]
    737. ; Allow or prevent persistent links.
    738. sybct.allow_persistent = On
    739. ; Maximum number of persistent links. -1 means no limit.
    740. sybct.max_persistent = -1
    741. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    742. sybct.max_links = -1
    743. ; Minimum server message severity to display.
    744. sybct.min_server_severity = 10
    745. ; Minimum client message severity to display.
    746. sybct.min_client_severity = 10
    747. [bcmath]
    748. ; Number of decimal digits for all bcmath functions.
    749. bcmath.scale = 0
    750. [browscap]
    751. ;browscap = extra/browscap.ini
    752. [Informix]
    753. ; Default host for ifx_connect() (doesn't apply in safe mode).
    754. ifx.default_host =
    755. ; Default user for ifx_connect() (doesn't apply in safe mode).
    756. ifx.default_user =
    757. ; Default password for ifx_connect() (doesn't apply in safe mode).
    758. ifx.default_password =
    759. ; Allow or prevent persistent links.
    760. ifx.allow_persistent = On
    761. ; Maximum number of persistent links. -1 means no limit.
    762. ifx.max_persistent = -1
    763. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    764. ifx.max_links = -1
    765. ; If on, select statements return the contents of a text blob instead of its id.
    766. ifx.textasvarchar = 0
    767. ; If on, select statements return the contents of a byte blob instead of its id.
    768. ifx.byteasvarchar = 0
    769. ; Trailing blanks are stripped from fixed-length char columns. May help the
    770. ; life of Informix SE users.
    771. ifx.charasvarchar = 0
    772. ; If on, the contents of text and byte blobs are dumped to a file instead of
    773. ; keeping them in memory.
    774. ifx.blobinfile = 0
    775. ; NULL's are returned as empty strings, unless this is set to 1. In that case,
    776. ; NULL's are returned as string 'NULL'.
    777. ifx.nullformat = 0
    778. [Session]
    779. ; Handler used to store/retrieve data.
    780. session.save_handler = files
    781. ; Argument passed to save_handler. In the case of files, this is the path
    782. ; where data files are stored. Note: Windows users have to change this
    783. ; variable in order to use PHP's session functions.
    784. ;
    785. ; As of PHP 4.0.1, you can define the path as:
    786. ;
    787. ; session.save_path = "N;/path"
    788. ;
    789. ; where N is an integer. Instead of storing all the session files in
    790. ; /path, what this will do is use subdirectories N-levels deep, and
    791. ; store the session data in those directories. This is useful if you
    792. ; or your OS have problems with lots of files in one directory, and is
    793. ; a more efficient layout for servers that handle lots of sessions.
    794. ;
    795. ; NOTE 1: PHP will not create this directory structure automatically.
    796. ; You can use the script in the ext/session dir for that purpose.
    797. ; NOTE 2: See the section on garbage collection below if you choose to
    798. ; use subdirectories for session storage
    799. ;
    800. ; The file storage module creates files using mode 600 by default.
    801. ; You can change that by using
    802. ;
    803. ; session.save_path = "N;MODE;/path"
    804. ;
    805. ; where MODE is the octal representation of the mode. Note that this
    806. ; does not overwrite the process's umask.
    807. ;session.save_path = "/tmp"
    808. ; Whether to use cookies.
    809. session.use_cookies = 1
    810. ;session.cookie_secure =
    811. ; This option enables administrators to make their users invulnerable to
    812. ; attacks which involve passing session ids in URLs; defaults to 0.
    813. ; session.use_only_cookies = 1
    814. ; Name of the session (used as cookie name).
    815. session.name = PHPSESSID
    816. ; Initialize session on request startup.
    817. session.auto_start = 0
    818. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
    819. session.cookie_lifetime = 0
    820. ; The path for which the cookie is valid.
    821. session.cookie_path = /
    822. ; The domain for which the cookie is valid.
    823. session.cookie_domain =
    824. ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
    825. session.cookie_httponly =
    826. ; Handler used to serialize data. php is the standard serializer of PHP.
    827. session.serialize_handler = php
    828. ; Define the probability that the 'garbage collection' process is started
    829. ; on every session initialization.
    830. ; The probability is calculated by using gc_probability/gc_divisor,
    831. ; e.g. 1/100 means there is a 1% chance that the GC process starts
    832. ; on each request.
    833. session.gc_probability = 1
    834. session.gc_divisor = 100
    835. ; After this number of seconds, stored data will be seen as 'garbage' and
    836. ; cleaned up by the garbage collection process.
    837. session.gc_maxlifetime = 1440
    838. ; NOTE: If you are using the subdirectory option for storing session files
    839. ; (see session.save_path above), then garbage collection does *not*
    840. ; happen automatically. You will need to do your own garbage
    841. ; collection through a shell script, cron entry, or some other method.
    842. ; For example, the following script would is the equivalent of
    843. ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
    844. ; cd /path/to/sessions; find -cmin +24 | xargs rm
    845. ; PHP 4.2 and less have an undocumented feature/bug that allows you to
    846. ; to initialize a session variable in the global scope, albeit register_globals
    847. ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
    848. ; You can disable the feature and the warning separately. At this time,
    849. ; the warning is only displayed, if bug_compat_42 is enabled.
    850. session.bug_compat_42 = 1
    851. session.bug_compat_warn = 1
    852. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
    853. ; HTTP_REFERER has to contain this substring for the session to be
    854. ; considered as valid.
    855. session.referer_check =
    856. ; How many bytes to read from the file.
    857. session.entropy_length = 0
    858. ; Specified here to create the session id.
    859. session.entropy_file =
    860. ;session.entropy_length = 16
    861. ;session.entropy_file = /dev/urandom
    862. ; Set to {nocache,private,public,} to determine HTTP caching aspects
    863. ; or leave this empty to avoid sending anti-caching headers.
    864. session.cache_limiter = nocache
    865. ; Document expires after n minutes.
    866. session.cache_expire = 180
    867. ; trans sid support is disabled by default.
    868. ; Use of trans sid may risk your users security.
    869. ; Use this option with caution.
    870. ; - User may send URL contains active session ID
    871. ; to other person via. email/irc/etc.
    872. ; - URL that contains active session ID may be stored
    873. ; in publically accessible computer.
    874. ; - User may access your site with the same session ID
    875. ; always using URL stored in browser's history or bookmarks.
    876. session.use_trans_sid = 0
    877. ; Select a hash function
    878. ; 0: MD5 (128 bits)
    879. ; 1: SHA-1 (160 bits)
    880. session.hash_function = 0
    881. ; Define how many bits are stored in each character when converting
    882. ; the binary hash data to something readable.
    883. ;
    884. ; 4 bits: 0-9, a-f
    885. ; 5 bits: 0-9, a-v
    886. ; 6 bits: 0-9, a-z, A-Z, "-", ","
    887. session.hash_bits_per_character = 4
    888. ; The URL rewriter will look for URLs in a defined set of HTML tags.
    889. ; form/fieldset are special; if you include them here, the rewriter will
    890. ; add a hidden <input> field with the info which is otherwise appended
    891. ; to URLs. If you want XHTML conformity, remove the form entry.
    892. ; Note that all valid entries require a "=", even if no value follows.
    893. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
    894. [MSSQL]
    895. ; Allow or prevent persistent links.
    896. mssql.allow_persistent = On
    897. ; Maximum number of persistent links. -1 means no limit.
    898. mssql.max_persistent = -1
    899. ; Maximum number of links (persistent+non persistent). -1 means no limit.
    900. mssql.max_links = -1
    901. ; Minimum error severity to display.
    902. mssql.min_error_severity = 10
    903. ; Minimum message severity to display.
    904. mssql.min_message_severity = 10
    905. ; Compatibility mode with old versions of PHP 3.0.
    906. mssql.compatability_mode = Off
    907. ; Connect timeout
    908. ;mssql.connect_timeout = 5
    909. ; Query timeout
    910. ;mssql.timeout = 60
    911. ; Valid range 0 - 2147483647. Default = 4096.
    912. ;mssql.textlimit = 4096
    913. ; Valid range 0 - 2147483647. Default = 4096.
    914. ;mssql.textsize = 4096
    915. ; Limits the number of records in each batch. 0 = all records in one batch.
    916. ;mssql.batchsize = 0
    917. ; Specify how datetime and datetim4 columns are returned
    918. ; On => Returns data converted to SQL server settings
    919. ; Off => Returns values as YYYY-MM-DD hh:mm:ss
    920. ;mssql.datetimeconvert = On
    921. ; Use NT authentication when connecting to the server
    922. mssql.secure_connection = Off
    923. ; Specify max number of processes. -1 = library default
    924. ; msdlib defaults to 25
    925. ; FreeTDS defaults to 4096
    926. ;mssql.max_procs = -1
    927. ; Specify client character set.
    928. ; If empty or not set the client charset from freetds.comf is used
    929. ; This is only used when compiled with FreeTDS
    930. ;mssql.charset = "ISO-8859-1"
    931. [Assertion]
    932. ; Assert(expr); active by default.
    933. ;assert.active = On
    934. ; Issue a PHP warning for each failed assertion.
    935. ;assert.warning = On
    936. ; Don't bail out by default.
    937. ;assert.bail = Off
    938. ; User-function to be called if an assertion fails.
    939. ;assert.callback = 0
    940. ; Eval the expression with current error_reporting(). Set to true if you want
    941. ; error_reporting(0) around the eval().
    942. ;assert.quiet_eval = 0
    943. [COM]
    944. ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
    945. ;com.typelib_file =
    946. ; allow Distributed-COM calls
    947. ;com.allow_dcom = true
    948. ; autoregister constants of a components typlib on com_load()
    949. ;com.autoregister_typelib = true
    950. ; register constants casesensitive
    951. ;com.autoregister_casesensitive = false
    952. ; show warnings on duplicate constant registrations
    953. ;com.autoregister_verbose = true
    954. [mbstring]
    955. ; language for internal character representation.
    956. ;mbstring.language = Japanese
    957. ; internal/script encoding.
    958. ; Some encoding cannot work as internal encoding.
    959. ; (e.g. SJIS, BIG5, ISO-2022-*)
    960. ;mbstring.internal_encoding = EUC-JP
    961. ; http input encoding.
    962. ;mbstring.http_input = auto
    963. ; http output encoding. mb_output_handler must be
    964. ; registered as output buffer to function
    965. ;mbstring.http_output = SJIS
    966. ; enable automatic encoding translation according to
    967. ; mbstring.internal_encoding setting. Input chars are
    968. ; converted to internal encoding by setting this to On.
    969. ; Note: Do _not_ use automatic encoding translation for
    970. ; portable libs/applications.
    971. ;mbstring.encoding_translation = Off
    972. ; automatic encoding detection order.
    973. ; auto means
    974. ;mbstring.detect_order = auto
    975. ; substitute_character used when character cannot be converted
    976. ; one from another
    977. ;mbstring.substitute_character = none;
    978. ; overload(replace) single byte functions by mbstring functions.
    979. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
    980. ; etc. Possible values are 0,1,2,4 or combination of them.
    981. ; For example, 7 for overload everything.
    982. ; 0: No overload
    983. ; 1: Overload mail() function
    984. ; 2: Overload str*() functions
    985. ; 4: Overload ereg*() functions
    986. ;mbstring.func_overload = 0
    987. [FrontBase]
    988. ;fbsql.allow_persistent = On
    989. ;fbsql.autocommit = On
    990. ;fbsql.show_timestamp_decimals = Off
    991. ;fbsql.default_database =
    992. ;fbsql.default_database_password =
    993. ;fbsql.default_host =
    994. ;fbsql.default_password =
    995. ;fbsql.default_user = "_SYSTEM"
    996. ;fbsql.generate_warnings = Off
    997. ;fbsql.max_connections = 128
    998. ;fbsql.max_links = 128
    999. ;fbsql.max_persistent = -1
    1000. ;fbsql.max_results = 128
    1001. [gd]
    1002. ; Tell the jpeg decode to libjpeg warnings and try to create
    1003. ; a gd image. The warning will then be displayed as notices
    1004. ; disabled by default
    1005. ;gd.jpeg_ignore_warning = 0
    1006. [exif]
    1007. ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
    1008. ; With mbstring support this will automatically be converted into the encoding
    1009. ; given by corresponding encode setting. When empty mbstring.internal_encoding
    1010. ; is used. For the decode settings you can distinguish between motorola and
    1011. ; intel byte order. A decode setting cannot be empty.
    1012. ;exif.encode_unicode = ISO-8859-15
    1013. ;exif.decode_unicode_motorola = UCS-2BE
    1014. ;exif.decode_unicode_intel = UCS-2LE
    1015. ;exif.encode_jis =
    1016. ;exif.decode_jis_motorola = JIS
    1017. ;exif.decode_jis_intel = JIS
    1018. [Tidy]
    1019. ; The path to a default tidy configuration file to use when using tidy
    1020. ;tidy.default_config = /usr/local/lib/php/default.tcfg
    1021. ; Should tidy clean and repair output automatically?
    1022. ; WARNING: Do not use this option if you are generating non-html content
    1023. ; such as dynamic images
    1024. tidy.clean_output = Off
    1025. [soap]
    1026. ; Enables or disables WSDL caching feature.
    1027. soap.wsdl_cache_enabled=1
    1028. ; Sets the directory name where SOAP extension will put cache files.
    1029. soap.wsdl_cache_dir="/tmp"
    1030. ; (time to live) Sets the number of second while cached file will be used
    1031. ; instead of original one.
    1032. soap.wsdl_cache_ttl=86400
    1033. ; Local Variables:
    1034. ; tab-width: 4
    1035. ; End:
  • 你可能感兴趣的:(windows,PHP,2008,IIS7)