Home > Backend Development > PHP Problem > What should I do if IIS does not parse PHP?

What should I do if IIS does not parse PHP?

藏色散人
Release: 2023-03-04 18:54:01
Original
2323 people have browsed it

Solution to IIS not parsing PHP: First open and modify the "php.ini" file; then select "Processing Mapping Function" in the functions of the website homepage and add the phpcgi module; then click "Document" , and add the index file to the default content document; finally click "OK".

What should I do if IIS does not parse PHP?

Recommendation: "PHP Video Tutorial"

Step 1: Then open Windows with Notepad In the "php.ini" file under the folder, change "extension_dir = "./"" to "extension_dir = "D:\php\ext"" (your own path), and finally save it, as shown below:

Step 2: Configure php in IIS so that the site supports the use of php

1. Control Panel-"Management Tools-"Information Service Manager, Select "Processing Mapping Function" in the functions of the website homepage, add the phpcgi module, and click OK to complete.

2. Click the "Document" tab, add the three files index.htm, index.html, and index.php to the default content document, and set all the default Sort the documents as far forward as possible. After completion, click "OK" to close the site property configuration window and return to the IIS Manager main interface. (If there is no default index, you can add it yourself).

The above is the detailed content of What should I do if IIS does not parse PHP?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template