Tutorial on configuring FastCGI php In IIS6

Source: Internet
Author: User

FastCGI's IIS module enables popular application frameworks to support the FastCGI protocol on IIS to provide high-performance and available access services. FastCGI provides high-performance CGI substitution standards for existing network servers. I have recorded the specific PHP installation methods, including an error.
Environment:
Operating System: Windows 2003 Server
PHP version: php5.25

1. Download FastCGI for IIS6
Http://www.microsoft.com/downloads/details.aspx? Familyid = 2d481579-9a7c-4632-b6e6-dee9097f9dc5 & displaylang = en

After downloading the SDK, double-click it to install it.

2. Download php5.25 for Windows
Http://www.php.net

Download the. Zip version, decompress it to the D: \ PHP Directory, and grant the read and run permissions to the account group or users who start IIS.

3. Register PHP to FastCGI
Run
Cscript fcgiconfig. js-add-Section: "php"-Extension: PHP-path: "D: \ PHP \ php-cgi.exe"

The default directory of fcgiconfig. JS is c: \ windows \ system32 \ inetsrv.

4. Set
Rename D: \ PHP. ini-recommended to D: \ PHP. ini.
Open D: \ PHP. ini and modify:
Extension_dir = "D: \ PHP \ Ext"
FastCGI. Impersonate = 1
CGI. fix_pathinfo = 1
CGI. force_redirect = 0

Other settings and modifications to PhP. ini as needed
Then execute:
Cscript fcgiconfig. js-set-Section: "php"-instancemaxrequests: 500
Cscript fcgiconfig. js-set-Section: "php"-environmentvars: php_fcgi_max_requests: 1000
You can set the maximum pool and number of response connections based on the hardware configuration and usage of the running machine.

After everything is done, restart IIS and enter a test page.

When I first installed wsshell for server security, the following error occurs in step 3rd:
Microsoft JScript runtime error: the Automation server cannot create an object
And then re-register the command: regsvr32 wshom. ocx
Problem Solving

After IIS is restarted, the following prompt is displayed on the test page:

FastCGI Error
The FastCGI handler was unable to process the request.
--------------------------------------------------------------------------------

Error details:

Error number: 5 (0x80070005 ).
Error Description: Access denied.
HTTP Error 500-server error.
Internet Information Services (IIS)

This error is caused by the failure to grant the directory read and run permissions to the IIS startup account after extracting PHP. Modify the Folder Security Attribute and solve the problem.

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.