Home  >  Article  >  Backend Development  >  What should I do if iis cannot open the php program?

What should I do if iis cannot open the php program?

藏色散人
藏色散人Original
2021-11-26 09:08:592717browse

Solution to the problem that iis cannot open the php program: 1. Turn off the firewall and install PHP5.3.6; 2. Create a new website under IIS and store the php website file; 3. Add index.php in the document tab As the default document; 4. Restart IIS.

What should I do if iis cannot open the php program?

#The operating environment of this article: Windows 7 system, PHP5.3.6, Dell G3.

What should I do if iis cannot open the php program?

How to run PHP under IIS:

1. Install PHP5.3.6

1) Turn off the firewall and unzip php5.zip to D:\PHP\php5

2) Copy the php.ini file to the D:\PHP\php5 and C:\WINDOWS directories respectively

3) Assign the php installation directory (D:\PHP\php5) Read and execute permissions on the users group

4) Find the files named php_mysqli.dll,php_mysql.dll,libmysql.dll,libmcrypt.dll in the D:\PHP\php5 folder and copy them Go to the C:\windows\System32 folder (Note: IIS requires this file to process PHP and MYSQL).

2. Configure IIS

1) Create a new website under IIS, where your php website files can be stored. For example, the new virtual directory jihetuan points to the E:\jihetuan directory on the computer.

2) Click "Add" on the "Mapping" tab to open the "Add/Edit Application Extension Mapping" dialog box, click "Browse" after "Executable File", and navigate to D: \PHP\php5\php5isapi.dll, enter ".php" in the text box after "Extension" (Note: Be sure to pay attention to the period before the extension), and click OK.

3) Add index.php as the default document in the Document tab. You don’t have to add it.

4) Click "OK" again to exit the "Application Configuration" dialog box, and click "OK" again to exit the PHP Properties dialog box.

5) Restart IIS to take effect.

3. Installation of Mysql

Completed

Recommended study: "PHP Video Tutorial"

The above is the detailed content of What should I do if iis cannot open the php program?. 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