Configure IIS to support PHP

Source: Internet
Author: User
Tags what php
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.