Home>Article>Topics> iis configuration php failed

iis configuration php failed

王林
王林 Original
2019-10-16 16:10:24 3002browse

iis configuration php failed

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 tutorial

The above is the detailed content of iis configuration php failed. 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
Previous article:Can iis parse php? Next article:Can iis parse php?