Attention:
The PHP5.3 version is not allowed to run through ISAPI extensions on IIS6, and there is no php5isapi.dll in the php file, replaced by Php5nsapi.dll, in other words, PHP5.3 later versions are no longer running in IIS with ISAPI extensions, is there What way to let PHP5.3 run in IIS, of course, that is fastcgi.
So many tutorials on the web that use ISAPI extensions to configure PHP you don't have to look because you can't configure it.
Select the version of PHP:
FastCGI execution is done with a single thread, so there is no need for thread security checks, the removal of thread security checks can improve execution efficiency, so fastcgi to execute PHP, it is recommended to select non thread safe version.
The first part: preparation work.
Because there is no windows2003 environment, I use the same configuration as the Windows XP sp3,2.
1.windows Install the IIS component, skip here.
2. Install fastcgi.
Web version of the online installation (and of course there are downloaded version of, find their own): Http://www.iis.net/downloads/microsoft/fastcgi-for-iis
3. Download php5.4.8.
VC9 x86 Non Thread safe:http://windows.php.net/download/#php -5.4-nts-vc9-x86
Part II: Installation configuration PHP.
1. Unzip the download back of the PHP Zip compression package. Like putting it in the d:/.
Copy the Php.ini-development file under 2.d:/php and change the file name to PHP.ini.
3. Modify the PHP configuration file php.ini, save it.
Line No. 730; Extension_dir = "ext" First go to the previous semicolon and then to Extension_dir = "D:/php/ext"
Line No. 919;d Ate.timezone = go to the previous semicolon and change to Date.timezone = Asia/shanghai
Line No. 743; cgi.force_redirect = 1 First go to the previous semicolon and then to Cgi.force_redirect = 0
Line No. 771; fastcgi.impersonate = 1 Remove the preceding semicolon
Line No. 783; cgi.rfc2616_headers = 0 first go to the previous semicolon and then to Cgi.rfc2616_headers = 1
Other configurations Please change according to your requirements.
Part III: Configure FASTCGI.
1. Modify the configuration file Fcgiext.ini, installed by default under the C:/windows/system32/inetsrv folder.
At the end of this file add the following code to save.
php=php
[PHP]
Exepath=d:/php/php-cgi.exe2. Configure IIS to support fastcgi.
Site---Properties---home directory---Configuration to add a new ISAPI entry.
Executable file: C:/window/system32/inetsrv/fcgiext.dll
Name extension:. php
Support index.php Default page
To this configuration Wencheng, restart IIS. Other MySQL and so on configuration skipped.
Create a new index.php, and enter the following to see if the PHP 5.4.8 information is available
? php phpinfo (); ?>
I have successfully configured myself to appear as shown in the illustration: