I have talked a lot about how to configure the php environment in iis before. Here we will introduce you to loading a php extension for iis In a Windows 7 32-bit system, so that iis can run the php environment.
Because the computer uses a Windows 7 32-bit system with built-in IIS and does not want to install more server software for PHP, I went online to find some methods to build IIS + PHP, the following is a summary by the bloggers Based on the online materials, which can be used in the future.
1. List of required software:
Php-5.2.0-Win32.zip
MySQL_5.6.10_win32.zip
Navicat_for_MySQL_10.1.7.exe (a practical MySQL view management software)
: Iis+php installation package. Zip
2. Set up the environment:
First, install IIS, PHP, and MySQL. (The installation method is not described here. There are many graphic tutorials on the Internet )! Php-5.2.0-Win32.zip is just a compressed package, can be directly decompressed to a drive letter directory, the master extraction directory is: D: \ PHP (you can customize the extraction directory, the directory name should not contain Chinese Characters
After the installation is decompressed, open the PHP decompression directory and find the file name: php. ini-dist file, copy it and try again to: php. ini, double-click to open the file and find the following characters and modify them:
Extension_dir = "../" to extension_dir = "D: \ PHP \ ext" (the double quotation marks are the ext folder path under the decompressed directory of the PHP file)
Find the following characters and remove the semicolon (;) at the top of the characters.
Extension = php_mbstring.dll
Extension = php_mysql.dll
Save and close the php. ini file after the preceding modification.
3. Copy or cut the following files to a specified location to complete PHP installation.
Php. ini → C: \ Windows
Php5ts. dll → C: \ Windows \ System32
Libmysql. dll → C: \ Windows \ System32
PHP installation is complete.
4. Complete IIS configuration
Open the IIS Control Panel (run [WIN + R] → Command [inetmgr]). A window is displayed. In the left-side list of the window, click the Default WebSite (Default site)
Some Function menus are displayed on the right menu bar. In the function menu, locate the handler ing and open the Add script ing in the Action column on the right. Single-point open
Input content
Request Path: *. php
Executable File: D: \ PHP \ php5isapi. dll
Name: can be entered by yourself
After entering the information, click Save and re-IIS to complete the environment configuration.
Next, create a PHP file in the IIS website directory to test whether the PHP file can run normally.
Personal Summary
If you are a beginner in php who does not understand the php environment configuration, you can download a phpstudy package online. Once you install the php + mysql + apache + phpmyadmin environment, you do not need to perform any operations. It is as convenient and convenient as installing software.