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:
<?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!