1, first PHP from 5.2 has been modified to fastcgi mode installation, so install the latest version of the php5.4 need to install fastcgi,fastcgi the following:
Http://www.iisboy.com/iis_down/552.html
Run the installation directly after download
2. Download the latest PHP code
: http://windows.php.net/download/
Download non-thread-safe, can download the corresponding version according to the actual needs
3, want to run php5.4 need VC9 run library, as follows
http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID= 9b2da534-3e03-4391-8a4d-074b9f2bc1bf
Run the installation directly after download
4, unzip the downloaded Php-5.4.0-nts-win32-vc9-x86.zip file, and put it in any location such as: D:\PHP5
Modify one of the php.ini-development to PHP.ini
5. Modify the php.ini file as follows:
; On Windows:
Extension_dir = "D:/php5/ext"
(remove the preceding semicolon)
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_gettext.dll
Extension=php_mbstring.dll
Extension=php_exif.dll
Extension=php_mysql.dll
Extension=php_pdo_mysql.dll
Extension=php_xmlrpc.dll
Extension=php_zip.dll
Fastcgi.impersonate = 1
6. Modify the Fcgiext.ini file
This file appears in the following directory after the first step of installation: C:\WINDOWS\system32\inetsrv
Add the following code at the end of the Fcgiext.ini file
[Types]
php=php
[PHP]
Exepath=d:\php5\php-cgi.exe
instancemaxrequests=10000
activitytimeout=300
requesttimeout=600
Environmentvars=php_fcgi_max_requests:10000,phprc:d:\php5\
Get it done.
Seven Steps to teach you windows under php5.4 installation