How to display php iis7 500 error message
Jul 30, 2020 am 10:59 AMSolution 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:
<?xml version="1.0" encoding="UTF-8"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <system.web> <compilation debug="true" targetFramework="4.5"/> <httpRuntime targetFramework="4.5"/> </system.web> <system.webServer> <httpErrors errorMode="DetailedLocalOnly" existingResponse="PassThrough"></httpErrors> </system.webServer> </configuration>
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!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
