Download the PHP component package
First to http://windows.php.net/download/download the PHP version you need, here I download is php5.3.
Below unzip the PHP component package to disk.
Install the Microsoft Visual C + + 2008 SP1 Redistributable Package x86 edition
In the address http://www.microsoft.com/zh-cn/download/details.aspx?id=5582 download installs Microsoft Visual C + + 2008 SP1 Redistributable Package x86 edition. Note that the VC + + Redistributable Package downloaded here should correspond to the version of the PHP package you are using.
When the download is complete, click Install.
Configuring IIS
First, make sure that you have a CGI module installed on IIS.
If it is not installed, in Server Manager, open the Role Management window and add modules and components for the IIS role.
Next, configure the application mappings. Select the site and open the handler mapping interface.
Windows Server 2008 builds a PHP run environment
Source: Site Reprint Author: Anonymous Time: 2013-12-19tag:
Click "Add Module Map" in the right-hand action tab and configure each option as shown in the diagram.
Click "Yes" and the module is installed successfully.
It is also important to note that the IIS process must have access to the PHP program directory and Execute permissions.
Configure the default document in the Site administration interface.
Open, add the new default document "Index.php", which is based on the actual situation of your Web application.
Configure PHP.ini
In the PHP extract directory, we can see that there are two profiles, php.ini.development and Php.ini.production
Save the Php.ini.production as a php.ini.
Open php.ini and look for "Extension_dir ="
Remove the semicolon and configure the extension path. Then search for "windows extension" and let go of the extensions you need.
The following configurations may be the ones you must configure.
"Extension=php_gd2.dll" "Extension=php_mbstring.dll" "Extension=php_mcrypt.dll" "Extension=php_mysql.dll" " Extension=php_pdo_mysql.dll "
After the configuration is complete, you need to copy the php.ini to the C:\Windows directory.
Now you can see the effect!