Home>Article>Backend Development> How to display php iis7 500 error message

How to display php iis7 500 error message

藏色散人
藏色散人 Original
2020-07-30 10:59:51 3686browse

Solution to the php iis7 500 error message: First open the "php.ini" file; then modify the content to "display_errors = on;"; then create a new "web.config" in the root directory of the php website file; finally, you can solve it according to the detailed errors.

How to display php iis7 500 error message

Recommended: "PHP Video Tutorial"

Under IIS7, PHP error is displayed (500 is not displayed Error, and detailed errors are displayed)

Mader, IIS is a trap, which made me fumble for so long before I found a solution:

1. In addition to php The .ini configuration is:

display_errors = on; error_reporting = E_ALL & ~E_NOTICE;

2. Create a new web.config file under the root directory of the PHP website:

iis configuration. Note that you first need to create a new web.config file in the root directory of your website. Add web.config file:

The code is as follows:

          

The above is the detailed content of How to display php iis7 500 error message. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn