Solve IIS7 php http 500 Internal Server Error

Source: Internet
Author: User
Tags parse error

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.