Home>Article>Backend Development> How to display php iis7 500 error message
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.
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!