IIS7, display PHP error (500 error not displayed, detailed error displayed)

Source: Internet
Author: User
Tags php error

Madeleine, IIS is a pit, I have been groping for so long, only to find a solution:

1, in addition to the php.ini configured as:

Display_errors = on;

error_reporting = E_all & ~e_notice;

2. Also create a new Web. config file under the root directory of the PHP Web site:

For IIS configuration, note that you first need to add a Web. config file to your site's root directory:

The code is as follows:

<?xml version= "1.0" encoding= "UTF-8"?>

<!--

For more information on how to configure your ASP. Application, please visit

http://go.microsoft.com/fwlink/?LinkId=169433

-

<configuration>

<system.web>

<compilation debug= "true" targetframework= "4.5"/>

</system.web>

<system.webServer>

</system.webServer>

</configuration>

IIS7, display PHP error (500 error not displayed, detailed error displayed)

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.