PHP has been popular for many years, but I have never studied it carefully. It's okay for the past two days. I want to know what PHP is like. I found some information on the website and want to run it, after downloading the XMPP development test environment, I thought it was too big. I remembered using IIS as a web server to support PHP. There was nothing new. There was a lot of information on how to configure it on the Internet, most of them are about how ISAPI is configured. Here we record how to configure it to run FastCGI. FastCGI can Program The IIS running is not affected during the crash. Microsoft has always attached great importance to referencing PHP to the Windows platform. To better support PHP, FastCGI for IIS has also been specially developed to support other scripting languages such as ASP and Asp.net, I think it is Php, because the configuration examples of IIS websites are for PHP. Below is a simple record of your own configuration method, which is very simple.
1. Download PHP. You can download the zip package directly without installing it. Simply decompress it to a directory and I decompress it to c: \ PHP.
2. Download the FastCGI driver from iis.net and install it directly by double-clicking the MSI file of kb.
3. Open the properties page of IIS, find "main directory", select "configuration" below, and add an extension. PHP. the executable file points to: c: \ windows \ system32 \ inetsrv \ fcgiext. DLL. This file is installed on the FastCGI program.
4. Open the c: \ windows \ system32 \ inetsrv \ fcgiext. ini file and enter the following content in the download path:
[Types]
PHP = c: \ PHP \ php-cgi.exe
[C: \ PHP \ php-cgi.exe]
Queuelength = 999
Maxinstances = 20
Instancemax requests = 500
It is actually a specific processing program for specifying PHP files.
You can create a virtual directory, copy the PHP program, and directly enter http: // localhost/PHP/index. php.
Of course, to directly enter the virtual directory name to open the PHP file, you can add index. php In the default file type of the site attribute.
It is still very easy to make IIS support for PHP. After a simple trial, the speed is quite fast. It is said that Microsoft has made optimizations for PHP.