The software used in this article
FASTCGI: Http://download.microsoft.com/download/E/0/C/E0C0709A-66E5-4113-9A6C-A5F65BF6717D/fcgisetup_1.5_x86_rtw.msi
PHP 5.3:http://windows.php.net/downloads/releases/php-5.3.29-nts-win32-vc9-x86.zip
Preface: Version selection of PHP5.3
The PHP5.3 for Windows now has four versions: VC9 x86 Non thread safe, VC9 x86 thread safe, VC6 x86 Non thread safe, VC6 x86 thread safe, reference ph P official website provides download places to the left of the English to see what the difference between these versions.
I. How to select the VC9 version and the VC6 version of PHP5.3
The VC6 version is compiled with the visual Studio 6 compiler, and if your PHP is built with Apache, you choose the VC6 version.
The VC9 version is compiled with the visual Studio 2008 compiler, and if your PHP is built with IIS, you choose the VC9 version.
Second, how to choose the PHP5.3 thread safe and non thread safe version
In the first place, it is a thread safe to understand the literal meaning that thread security is performed in order to prevent the new requirements from exhausting system resources by starting the CGI execution of new threads. Non thread safe is non-threaded and does not thread (thread) security checks at execution time.
Let's look at two ways of executing PHP: ISAPI and fastcgi.
ISAPI execution mode is used in the form of DLL dynamic library, can be executed after the user request, after processing a user request will not disappear immediately, so the need for thread security check, so as to improve the execution efficiency of the program, so if it is to execute PHP with ISAPI, it is recommended to choose thread Safe version;
The fastcgi execution is performed with a single thread, so there is no need for thread security checks, and the removal of thread safety checks can improve execution efficiency, so if PHP is executed in fastcgi, it is recommended to choose the non thread safe version.
We use the Iis+fastcgi method to configure the server environment, so use the non Thread safe version.
Configure PHP
Unzip PHP to any location on your hard drive
Duplicate a copy of php.ini-production renamed PHP.ini
Cgi.force_redirect = 1 Changed to Cgi.force_redirect=0
Fastcgi.impersonate = 1; change to fastcgi.impersonate=1;
Extension_dir change to the corresponding ext path
Installing fastcgi
After the download, the next step is ready to install,
FastCGI related files and paths:
C:\WINDOWS\system32\inetsrv\fcgiext.dll
C:\WINDOWS\system32\inetsrv\fcgiext.ini
Change the configuration file
Add a new site
Installation configuration for win2003+iis6+fastcgi+php5.3