Home >Backend Development >PHP Problem >What should I do if IIS does not parse PHP?
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".
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!