Method 1:
1. We open the "Management Tools" in the "Control Panel" and open the iis Information Service Manager
2. After entering, we select the application pool and click "Set application pool default settings" on the right
3. Then in General, we set it to "Enable 32-bit applications" "True", set "Hosted Pipeline Mode" to "Classic", just confirm After that, a 500 error occurs. It may be because there is no php and the error prompt is not enabled, so we need to open "PHP.ini" and then set the display error:
display_errors=On
After setting it up, just restart FastCGI. .2. If there is an internal server error, the reason lies in the "require(./xxx.php)" statement in the "index.php" file, so we change "require(./xxx.php)" .php)" to "require(xxx.php)", and then give the iis user read permission to the upper-level directory of the website.
Recommended tutorial:
PHP video tutorialThe above is the detailed content of iis configuration php failed. For more information, please follow other related articles on the PHP Chinese website!