За последние 24 часа нас посетили 17923 программиста и 1582 робота. Сейчас ищет 1331 программист ...

помогите плиз

Тема в разделе "Установка PHP", создана пользователем nusweb, 12 ноя 2012.

  1. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    Извиняюсь если эта тема поднималась
    Видимо я ее не попал(
    проблема с PHP не могу настроить вместо отроботки скрипта выводит
    Код (Text):
    1. <?php
    2.   echo phpinfo();
    3. ?>
    лог eror
    [Sat Jan 05 22:51:52 1980] [notice] Server built: Jul 30 2010 16:15:37
    [Sat Jan 05 22:51:52 1980] [notice] Parent: Created child process 1228
    [Sat Jan 05 22:51:52 1980] [notice] Child 1228: Child process is running
    [Sat Jan 05 22:51:52 1980] [notice] Child 1228: Acquired the start mutex.
    [Sat Jan 05 22:51:52 1980] [notice] Child 1228: Starting 64 worker threads.
    [Sat Jan 05 22:51:52 1980] [notice] Child 1228: Starting thread to listen on port 80.
    скайп не стоит кип не проверял
    лог aces
    127.0.0.1 - - [05/Jan/1980:09:35:26 +0300] "GET / HTTP/1.1" 200 44
    127.0.0.1 - - [05/Jan/1980:09:35:28 +0300] "GET / HTTP/1.1" 200 44
    127.0.0.1 - - [05/Jan/1980:09:35:47 +0300] "GET / HTTP/1.1" 200 44
    127.0.0.1 - - [05/Jan/1980:09:35:52 +0300] "GET /phpinfo.php HTTP/1.1" 304 -
    127.0.0.1 - - [05/Jan/1980:09:35:53 +0300] "GET /phpinfo.php HTTP/1.1" 304 -
    127.0.0.1 - - [05/Jan/1980:09:35:54 +0300] "GET /phpinfo.php HTTP/1.1" 304 -
    127.0.0.1 - - [05/Jan/1980:09:35:55 +0300] "GET /phpinfo.php HTTP/1.1" 304 -
    127.0.0.1 - - [05/Jan/1980:09:35:55 +0300] "GET /phpinfo.php HTTP/1.1" 304 -
    127.0.0.1 - - [05/Jan/1980:09:35:58 +0300] "GET /phpinfo.php HTTP/1.1" 304 -
    127.0.0.1 - - [05/Jan/1980:09:35:59 +0300] "GET /phpinfo.php HTTP/1.1" 304 -
    127.0.0.1 - - [05/Jan/1980:10:04:13 +0300] "GET /phpinfo.php HTTP/1.1" 304 -
    127.0.0.1 - - [12/Nov/2012:14:49:19 +0300] "GET /phpinfo.php HTTP/1.1" 304 -

    куда капать помогите плиз
    апаче работает корректно система win 2003 server
     
  2. igordata

    igordata Суперстар
    Команда форума Модератор

    С нами с:
    18 мар 2010
    Сообщения:
    32.408
    Симпатии:
    1.768
  3. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    ты рекламируешь его чтоль????
    я просил помочь но не юз ать второстепенный софт, тогда уже лучше денвер...
     
  4. igordata

    igordata Суперстар
    Команда форума Модератор

    С нами с:
    18 мар 2010
    Сообщения:
    32.408
    Симпатии:
    1.768
    ну борись
     
  5. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    зачем флудить если не хочешь помогать?
    если данная тема поднималась скинь я прочитаю ише раз. хоть все теоретически правильно(
     
  6. igordata

    igordata Суперстар
    Команда форума Модератор

    С нами с:
    18 мар 2010
    Сообщения:
    32.408
    Симпатии:
    1.768
    тебе решение было дано =)
     
  7. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    денвер у меня больше 2-в лет стоит, мне нужно настроить по отдельности. и если так решаются сложности зачем этот форум есть денвер! там все баги написаны лол
     
  8. igordata

    igordata Суперстар
    Команда форума Модератор

    С нами с:
    18 мар 2010
    Сообщения:
    32.408
    Симпатии:
    1.768
    кстати, все школьники палятся на том, что они не знают значения аббревиатуры "лол"

    Добавлено спустя 48 секунд:
    если у тебя есть настроенный денвер, почему ты не посмотришь в его конфиги?
     
  9. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    школьник 25 лет это круто )) лол это смех
    лох - это люди которых пускали в первые ряды на смерть
     
  10. igordata

    igordata Суперстар
    Команда форума Модератор

    С нами с:
    18 мар 2010
    Сообщения:
    32.408
    Симпатии:
    1.768
    почему не воспользоваться готовым и настроенным решением?
     
  11. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    хочу поднять веб сервер полноценный дома
    серверных машин дома 3 и пылятся без дела. да работаю я правда на денвере и отлаживаю сайты там.
    вот решил поднять веб сервер. мучаюсь дней 5 на одной затыке, причину не сростаней понять не могу((((
     
  12. igordata

    igordata Суперстар
    Команда форума Модератор

    С нами с:
    18 мар 2010
    Сообщения:
    32.408
    Симпатии:
    1.768
    Поднимай nginx на CentOS
     
  13. VampiR_WAR

    VampiR_WAR Активный пользователь

    С нами с:
    19 авг 2009
    Сообщения:
    409
    Симпатии:
    1
    Адрес:
    Нижний Новгород
    Какая ОСЬ?
     
  14. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    win 2003 serwer
     
  15. VampiR_WAR

    VampiR_WAR Активный пользователь

    С нами с:
    19 авг 2009
    Сообщения:
    409
    Симпатии:
    1
    Адрес:
    Нижний Новгород
    До тонкой настройки я не доходил...
    конфиг php в студию)
     
  16. nusweb

    nusweb Активный пользователь

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

    igordata Суперстар
    Команда форума Модератор

    С нами с:
    18 мар 2010
    Сообщения:
    32.408
    Симпатии:
    1.768
    мне кажется, не туда вы копаете
     
  18. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    если прямо говорить я сам php запустить не могу в апаче кон фиге тоже прописал путь действительный
    Код (Text):
    1. LoadModule php5_module c:/php-5.3.5/php5apache2_2.dll
    2. AddType application/x-httpd-php phtml php
    3. PHPIniDir "c:/php-5.3.5/"
     
  19. VampiR_WAR

    VampiR_WAR Активный пользователь

    С нами с:
    19 авг 2009
    Сообщения:
    409
    Симпатии:
    1
    Адрес:
    Нижний Новгород
    Не подключен php?
     
  20. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    хорошо как проверить подключил я его или нет??
    на вызов пхп скрипта выводит как тхт
     
  21. VampiR_WAR

    VampiR_WAR Активный пользователь

    С нами с:
    19 авг 2009
    Сообщения:
    409
    Симпатии:
    1
    Адрес:
    Нижний Новгород
     
  22. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    Код (Text):
    1. #
    2. # This is the main Apache HTTP server configuration file.  It contains the
    3. # configuration directives that give the server its instructions.
    4. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    5. # In particular, see
    6. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    7. # for a discussion of each configuration directive.
    8. #
    9. # Do NOT simply read the instructions in here without understanding
    10. # what they do.  They're here only as hints or reminders.  If you are unsure
    11. # consult the online docs. You have been warned.  
    12. #
    13. # Configuration and logfile names: If the filenames you specify for many
    14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
    15. # server will use that explicit path.  If the filenames do *not* begin
    16. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    17. # with ServerRoot set to "C:/Apache2.2" will be interpreted by the
    18. # server as "C:/Apache2.2/logs/foo.log".
    19. #
    20. # NOTE: Where filenames are specified, you must use forward slashes
    21. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
    22. # If a drive letter is omitted, the drive on which httpd.exe is located
    23. # will be used by default.  It is recommended that you always supply
    24. # an explicit drive letter in absolute paths to avoid confusion.
    25.  
    26. #
    27. # ServerRoot: The top of the directory tree under which the server's
    28. # configuration, error, and log files are kept.
    29. #
    30. # Do not add a slash at the end of the directory path.  If you point
    31. # ServerRoot at a non-local disk, be sure to point the LockFile directive
    32. # at a local disk.  If you wish to share the same ServerRoot for multiple
    33. # httpd daemons, you will need to change at least LockFile and PidFile.
    34. #
    35. ServerRoot "C:/Apache2.2"
    36.  
    37. #
    38. # Listen: Allows you to bind Apache to specific IP addresses and/or
    39. # ports, instead of the default. See also the <VirtualHost>
    40. # directive.
    41. #
    42. # Change this to Listen on specific IP addresses as shown below to
    43. # prevent Apache from glomming onto all bound IP addresses.
    44. #
    45. #Listen 12.34.56.78:80
    46. Listen 80
    47.  
    48. #
    49. # Dynamic Shared Object (DSO) Support
    50. #
    51. # To be able to use the functionality of a module which was built as a DSO you
    52. # have to place corresponding `LoadModule' lines at this location so the
    53. # directives contained in it are actually available _before_ they are used.
    54. # Statically compiled modules (those listed by `httpd -l') do not need
    55. # to be loaded here.
    56. #
    57. # Example:
    58. # LoadModule foo_module modules/mod_foo.so
    59. #
    60. LoadModule actions_module modules/mod_actions.so
    61. LoadModule alias_module modules/mod_alias.so
    62. LoadModule asis_module modules/mod_asis.so
    63. LoadModule auth_basic_module modules/mod_auth_basic.so
    64. #LoadModule auth_digest_module modules/mod_auth_digest.so
    65. #LoadModule authn_alias_module modules/mod_authn_alias.so
    66. #LoadModule authn_anon_module modules/mod_authn_anon.so
    67. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    68. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    69. LoadModule authn_default_module modules/mod_authn_default.so
    70. LoadModule authn_file_module modules/mod_authn_file.so
    71. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    72. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    73. LoadModule authz_default_module modules/mod_authz_default.so
    74. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    75. LoadModule authz_host_module modules/mod_authz_host.so
    76. #LoadModule authz_owner_module modules/mod_authz_owner.so
    77. LoadModule authz_user_module modules/mod_authz_user.so
    78. LoadModule autoindex_module modules/mod_autoindex.so
    79. #LoadModule cache_module modules/mod_cache.so
    80. #LoadModule cern_meta_module modules/mod_cern_meta.so
    81. LoadModule cgi_module modules/mod_cgi.so
    82. #LoadModule charset_lite_module modules/mod_charset_lite.so
    83. #LoadModule dav_module modules/mod_dav.so
    84. #LoadModule dav_fs_module modules/mod_dav_fs.so
    85. #LoadModule dav_lock_module modules/mod_dav_lock.so
    86. #LoadModule dbd_module modules/mod_dbd.so
    87. #LoadModule deflate_module modules/mod_deflate.so
    88. LoadModule dir_module modules/mod_dir.so
    89. #LoadModule disk_cache_module modules/mod_disk_cache.so
    90. #LoadModule dumpio_module modules/mod_dumpio.so
    91. LoadModule env_module modules/mod_env.so
    92. #LoadModule expires_module modules/mod_expires.so
    93. #LoadModule ext_filter_module modules/mod_ext_filter.so
    94. #LoadModule file_cache_module modules/mod_file_cache.so
    95. #LoadModule filter_module modules/mod_filter.so
    96. #LoadModule headers_module modules/mod_headers.so
    97. #LoadModule ident_module modules/mod_ident.so
    98. #LoadModule imagemap_module modules/mod_imagemap.so
    99. LoadModule include_module modules/mod_include.so
    100. #LoadModule info_module modules/mod_info.so
    101. LoadModule isapi_module modules/mod_isapi.so
    102. #LoadModule ldap_module modules/mod_ldap.so
    103. #LoadModule logio_module modules/mod_logio.so
    104. LoadModule log_config_module modules/mod_log_config.so
    105. #LoadModule log_forensic_module modules/mod_log_forensic.so
    106. #LoadModule mem_cache_module modules/mod_mem_cache.so
    107. LoadModule mime_module modules/mod_mime.so
    108. #LoadModule mime_magic_module modules/mod_mime_magic.so
    109. LoadModule negotiation_module modules/mod_negotiation.so
    110. #LoadModule proxy_module modules/mod_proxy.so
    111. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    112. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    113. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
    114. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    115. #LoadModule proxy_http_module modules/mod_proxy_http.so
    116. #LoadModule reqtimeout_module modules/mod_reqtimeout.so
    117. #LoadModule rewrite_module modules/mod_rewrite.so
    118. LoadModule setenvif_module modules/mod_setenvif.so
    119. #LoadModule speling_module modules/mod_speling.so
    120. #LoadModule ssl_module modules/mod_ssl.so
    121. #LoadModule status_module modules/mod_status.so
    122. #LoadModule substitute_module modules/mod_substitute.so
    123. #LoadModule unique_id_module modules/mod_unique_id.so
    124. #LoadModule userdir_module modules/mod_userdir.so
    125. #LoadModule usertrack_module modules/mod_usertrack.so
    126. #LoadModule version_module modules/mod_version.so
    127. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    128.  
    129. <IfModule !mpm_netware_module>
    130. <IfModule !mpm_winnt_module>
    131. #
    132. # If you wish httpd to run as a different user or group, you must run
    133. # httpd as root initially and it will switch.  
    134. #
    135. # User/Group: The name (or #number) of the user/group to run httpd as.
    136. # It is usually good practice to create a dedicated user and group for
    137. # running httpd, as with most system services.
    138. #
    139. User daemon
    140. Group daemon
    141.  
    142. LoadModule php5_module c:/php-5.3.5/php5apache2_2.dll
    143. PHPIniDir "c:/php-5.3.5/"
    144.  
    145. </IfModule>
    146. </IfModule>
    147.  
    148. # 'Main' server configuration
    149. #
    150. # The directives in this section set up the values used by the 'main'
    151. # server, which responds to any requests that aren't handled by a
    152. # <VirtualHost> definition.  These values also provide defaults for
    153. # any <VirtualHost> containers you may define later in the file.
    154. #
    155. # All of these directives may appear inside <VirtualHost> containers,
    156. # in which case these default settings will be overridden for the
    157. # virtual host being defined.
    158. #
    159.  
    160. #
    161. # ServerAdmin: Your address, where problems with the server should be
    162. # e-mailed.  This address appears on some server-generated pages, such
    163. # as error documents.  e.g. admin@your-domain.com
    164. #
    165. ServerAdmin admin@test.ru
    166.  
    167. #
    168. # ServerName gives the name and port that the server uses to identify itself.
    169. # This can often be determined automatically, but we recommend you specify
    170. # it explicitly to prevent problems during startup.
    171. #
    172. # If your host doesn't have a registered DNS name, enter its IP address here.
    173. #
    174. #ServerName test:80
    175.  
    176. #
    177. # DocumentRoot: The directory out of which you will serve your
    178. # documents. By default, all requests are taken from this directory, but
    179. # symbolic links and aliases may be used to point to other locations.
    180. #
    181. DocumentRoot "C:/Apache2.2/htdocs"
    182.  
    183. #
    184. # Each directory to which Apache has access can be configured with respect
    185. # to which services and features are allowed and/or disabled in that
    186. # directory (and its subdirectories).
    187. #
    188. # First, we configure the "default" to be a very restrictive set of
    189. # features.  
    190. #
    191. <Directory />
    192.     Options FollowSymLinks
    193.     AllowOverride None
    194.     Order deny,allow
    195.     Deny from all
    196. </Directory>
    197.  
    198. #
    199. # Note that from this point forward you must specifically allow
    200. # particular features to be enabled - so if something's not working as
    201. # you might expect, make sure that you have specifically enabled it
    202. # below.
    203. #
    204.  
    205. #
    206. # This should be changed to whatever you set DocumentRoot to.
    207. #
    208. <Directory "C:/Apache2.2/htdocs">
    209.     #
    210.     # Possible values for the Options directive are "None", "All",
    211.     # or any combination of:
    212.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    213.     #
    214.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
    215.     # doesn't give it to you.
    216.     #
    217.     # The Options directive is both complicated and important.  Please see
    218.     # http://httpd.apache.org/docs/2.2/mod/core.html#options
    219.     # for more information.
    220.     #
    221.     Options Indexes FollowSymLinks
    222.  
    223.     #
    224.     # AllowOverride controls what directives may be placed in .htaccess files.
    225.     # It can be "All", "None", or any combination of the keywords:
    226.     #   Options FileInfo AuthConfig Limit
    227.     #
    228.     AllowOverride None
    229.  
    230.     #
    231.     # Controls who can get stuff from this server.
    232.     #
    233.     Order allow,deny
    234.     Allow from all
    235.  
    236. </Directory>
    237.  
    238. #
    239. # DirectoryIndex: sets the file that Apache will serve if a directory
    240. # is requested.
    241. #
    242. <IfModule dir_module>
    243.      DirectoryIndex index.php index.html
    244. </IfModule>
    245.  
    246. #
    247. # The following lines prevent .htaccess and .htpasswd files from being
    248. # viewed by Web clients.
    249. #
    250. <FilesMatch "^\.ht">
    251.     Order allow,deny
    252.     Deny from all
    253.     Satisfy All
    254. </FilesMatch>
    255.  
    256. #
    257. # ErrorLog: The location of the error log file.
    258. # If you do not specify an ErrorLog directive within a <VirtualHost>
    259. # container, error messages relating to that virtual host will be
    260. # logged here.  If you *do* define an error logfile for a <VirtualHost>
    261. # container, that host's errors will be logged there and not here.
    262. #
    263. ErrorLog "logs/error.log"
    264.  
    265. #
    266. # LogLevel: Control the number of messages logged to the error_log.
    267. # Possible values include: debug, info, notice, warn, error, crit,
    268. # alert, emerg.
    269. #
    270. LogLevel warn
    271.  
    272. <IfModule log_config_module>
    273.     #
    274.     # The following directives define some format nicknames for use with
    275.     # a CustomLog directive (see below).
    276.     #
    277.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    278.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
    279.  
    280.     <IfModule logio_module>
    281.       # You need to enable mod_logio.c to use %I and %O
    282.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    283.     </IfModule>
    284.  
    285.     #
    286.     # The location and format of the access logfile (Common Logfile Format).
    287.     # If you do not define any access logfiles within a <VirtualHost>
    288.     # container, they will be logged here.  Contrariwise, if you *do*
    289.     # define per-<VirtualHost> access logfiles, transactions will be
    290.     # logged therein and *not* in this file.
    291.     #
    292.     CustomLog "logs/access.log" common
    293.  
    294.     #
    295.     # If you prefer a logfile with access, agent, and referer information
    296.     # (Combined Logfile Format) you can use the following directive.
    297.     #
    298.     #CustomLog "logs/access.log" combined
    299. </IfModule>
    300.  
    301. <IfModule alias_module>
    302.     #
    303.     # Redirect: Allows you to tell clients about documents that used to
    304.     # exist in your server's namespace, but do not anymore. The client
    305.     # will make a new request for the document at its new location.
    306.     # Example:
    307.     # Redirect permanent /foo http://test/bar
    308.  
    309.     #
    310.     # Alias: Maps web paths into filesystem paths and is used to
    311.     # access content that does not live under the DocumentRoot.
    312.     # Example:
    313.     # Alias /webpath /full/filesystem/path
    314.     #
    315.     # If you include a trailing / on /webpath then the server will
    316.     # require it to be present in the URL.  You will also likely
    317.     # need to provide a <Directory> section to allow access to
    318.     # the filesystem path.
    319.  
    320.     #
    321.     # ScriptAlias: This controls which directories contain server scripts.
    322.     # ScriptAliases are essentially the same as Aliases, except that
    323.     # documents in the target directory are treated as applications and
    324.     # run by the server when requested rather than as documents sent to the
    325.     # client.  The same rules about trailing "/" apply to ScriptAlias
    326.     # directives as to Alias.
    327.     #
    328.     ScriptAlias /cgi-bin/ "C:/Apache2.2/cgi-bin/"
    329.  
    330. </IfModule>
    331.  
    332. <IfModule cgid_module>
    333.     #
    334.     # ScriptSock: On threaded servers, designate the path to the UNIX
    335.     # socket used to communicate with the CGI daemon of mod_cgid.
    336.     #
    337.     #Scriptsock logs/cgisock
    338. </IfModule>
    339.  
    340. #
    341. # "C:/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
    342. # CGI directory exists, if you have that configured.
    343. #
    344. <Directory "C:/Apache2.2/cgi-bin">
    345.     AllowOverride None
    346.     Options None
    347.     Order allow,deny
    348.     Allow from all
    349. </Directory>
    350.  
    351. #
    352. # DefaultType: the default MIME type the server will use for a document
    353. # if it cannot otherwise determine one, such as from filename extensions.
    354. # If your server contains mostly text or HTML documents, "text/plain" is
    355. # a good value.  If most of your content is binary, such as applications
    356. # or images, you may want to use "application/octet-stream" instead to
    357. # keep browsers from trying to display binary files as though they are
    358. # text.
    359. #
    360. DefaultType text/plain
    361.  
    362. <IfModule mime_module>
    363.     #
    364.     # TypesConfig points to the file containing the list of mappings from
    365.     # filename extension to MIME-type.
    366.     #
    367.     TypesConfig conf/mime.types
    368.  
    369.     #
    370.     # AddType allows you to add to or override the MIME configuration
    371.     # file specified in TypesConfig for specific file types.
    372.     #
    373.     #AddType application/x-gzip .tgz
    374.     #
    375.     # AddEncoding allows you to have certain browsers uncompress
    376.     # information on the fly. Note: Not all browsers support this.
    377.     #
    378.     #AddEncoding x-compress .Z
    379.     #AddEncoding x-gzip .gz .tgz
    380.     #
    381.     # If the AddEncoding directives above are commented-out, then you
    382.     # probably should define those extensions to indicate media types:
    383.     #
    384.     AddType application/x-compress .Z
    385.     AddType application/x-gzip .gz .tgz
    386.     AddType application/x-httpd-php .php
    387.     AddType application/x-httpd-php-source .phps
    388.  
    389.     #
    390.     # AddHandler allows you to map certain file extensions to "handlers":
    391.     # actions unrelated to filetype. These can be either built into the server
    392.     # or added with the Action directive (see below)
    393.     #
    394.     # To use CGI scripts outside of ScriptAliased directories:
    395.     # (You will also need to add "ExecCGI" to the "Options" directive.)
    396.     #
    397.     #AddHandler cgi-script .cgi
    398.  
    399.     # For type maps (negotiated resources):
    400.     #AddHandler type-map var
    401.  
    402.     #
    403.     # Filters allow you to process content before it is sent to the client.
    404.     #
    405.     # To parse .shtml files for server-side includes (SSI):
    406.     # (You will also need to add "Includes" to the "Options" directive.)
    407.     #
    408.     #AddType text/html .shtml
    409.     #AddOutputFilter INCLUDES .shtml
    410. </IfModule>
    411.  
    412. #
    413. # The mod_mime_magic module allows the server to use various hints from the
    414. # contents of the file itself to determine its type.  The MIMEMagicFile
    415. # directive tells the module where the hint definitions are located.
    416. #
    417. #MIMEMagicFile conf/magic
    418.  
    419. #
    420. # Customizable error responses come in three flavors:
    421. # 1) plain text 2) local redirects 3) external redirects
    422. #
    423. # Some examples:
    424. #ErrorDocument 500 "The server made a boo boo."
    425. #ErrorDocument 404 /missing.html
    426. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    427. #ErrorDocument 402 http://test/subscription_info.html
    428. #
    429.  
    430. #
    431. # EnableMMAP and EnableSendfile: On systems that support it,
    432. # memory-mapping or the sendfile syscall is used to deliver
    433. # files.  This usually improves server performance, but must
    434. # be turned off when serving from networked-mounted
    435. # filesystems or if support for these functions is otherwise
    436. # broken on your system.
    437. #
    438. #EnableMMAP off
    439. #EnableSendfile off
    440.  
    441. # Supplemental configuration
    442. #
    443. # The configuration files in the conf/extra/ directory can be
    444. # included to add extra features or to modify the default configuration of
    445. # the server, or you may simply copy their contents here and change as
    446. # necessary.
    447.  
    448. # Server-pool management (MPM specific)
    449. #Include conf/extra/httpd-mpm.conf
    450.  
    451. # Multi-language error messages
    452. #Include conf/extra/httpd-multilang-errordoc.conf
    453.  
    454. # Fancy directory listings
    455. #Include conf/extra/httpd-autoindex.conf
    456.  
    457. # Language settings
    458. #Include conf/extra/httpd-languages.conf
    459.  
    460. # User home directories
    461. #Include conf/extra/httpd-userdir.conf
    462.  
    463. # Real-time info on requests and configuration
    464. #Include conf/extra/httpd-info.conf
    465.  
    466. # Virtual hosts
    467. #Include conf/extra/httpd-vhosts.conf
    468.  
    469. # Local access to the Apache HTTP Server Manual
    470. #Include conf/extra/httpd-manual.conf
    471.  
    472. # Distributed authoring and versioning (WebDAV)
    473. #Include conf/extra/httpd-dav.conf
    474.  
    475. # Various default settings
    476. #Include conf/extra/httpd-default.conf
    477.  
    478. # Secure (SSL/TLS) connections
    479. #Include conf/extra/httpd-ssl.conf
    480. #
    481. # Note: The following must must be present to support
    482. #       starting without SSL on platforms with no /dev/random equivalent
    483. #       but a statically compiled-in mod_ssl.
    484. #
    485. <IfModule ssl_module>
    486. SSLRandomSeed startup builtin
    487. SSLRandomSeed connect builtin
    488. </IfModule>
    без изменений((((((((((,,,,,,,,,,,,,,

    Добавлено спустя 6 минут 42 секунды:
    [​IMG]

    при вызове index.php с html тегами работает нормальна
    при записи php кода предлагать скачать чето
     
  23. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    направления дайте куда дальше гуглить
     
  24. VampiR_WAR

    VampiR_WAR Активный пользователь

    С нами с:
    19 авг 2009
    Сообщения:
    409
    Симпатии:
    1
    Адрес:
    Нижний Новгород
    Я бы начал все с начала. =)
    Наткнулся на такое)) В порядке бреда.
    http://habrahabr.ru/post/78946/
    Тут вроде все правильно пишут. Недавно с знакомым админом разбирали эту тему, аналогичная проблема как у тебя, решилась повторной устаановкой. Где то что то пропусстили.
    http://www.q2w3.ru/2011/01/12/3093/#p3

     
  25. nusweb

    nusweb Активный пользователь

    С нами с:
    20 мар 2011
    Сообщения:
    29
    Симпатии:
    0
    Адрес:
    Россия Тула
    займусь этим вопросам чуток позже, что получиться обязательно потешусь)