In the IIS7 PHP environment, an "HTTP 500 Internal Server Error" occurs when a website is opened ":
The solution is as follows:
Modify the php. Ini file as follows:
Log_errors = Off
In addition, if php disables warning, an error is returned. Modify error_reporting in the php. Ini file. The default value is:
Display_errors = Off
Error_reporting = E_ALL &~ E_NOTICE
If the system still reports an error in the event of a warning error, remove the warning:
Error_reporting = E_ALL &~ E_NOTICE | E_WARNING
Often seen error_reporting (7) meaning: Set the error message return level.
Restart iis
Value constant
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING
64 E_COMPILE_ERROR
128 E_COMPILE_WARNING
256 E_USER_ERROR
512 E_USER_WARNING
1024 E_USER_NOTICE
2047 E_ALL
2048 E_STRICT
However, 7 = 1 + 2 + 4
Then it will come out.
Later, the above modification was made, and an error message was displayed on the page:
Parse error: syntax error, unexpected '{' in C: inetpubwwwrootindex. php on line 15
This error reminds me