Purely manual configuration of the Php_win server under IIS 6 FastCGI

Source: Internet
Author: User
Tags download zend register php zend

Back to the implementation method under IIS 7 also post.

Environment:
Operating system: Windows 2003 Server SP2
PHP version: Php-5.2.6-win32

1. Download FastCGI for IIS6

http://www.microsoft.com/downloads/details.aspx?FamilyID=2d481579-9a7c-4632-b6e6-dee9097f9dc5&displaylang=en

After downloading, double-click to run for installation.

Five files were generated in the C:\WINDOWS\SYSTEM32\INETSRV directory after installation. The following figure:

FastCGI Handler is also in the Web service extensions for IIS.

2. Download PHP5.25 Windows Edition

http://www.php.net/downloads.php

Download the. zip format, download and extract to the D:\PHP directory, and give the IIS startup account group or user permission to read and run. The following figure:

You can extract it to a different directory according to your wishes.

3. Register PHP to FastCGI

Open the C:\WINDOWS\system32\inetsrv\fcgiext.ini file.

; This is the configuration file for the FastCGI handler for IIS 6.0.
; The FastCGI handler'll look for this file in the same directory as
; Fcgiext.dll. By default, the FastCGI installer'll place this file into
; The%windir%\system32\inetsrv directory.

My personal understanding is that as long as the FastCGI Handler in the WEB service extensions is allowed, the contents of the Fcgiext.ini configuration file are read when the Fcgiext.dll is loaded, and maps are provided for each site based on the configuration.

Under [Types], add the following configuration:

[Types]
php=php

[PHP]
Exepath=d:\php\php-cgi.exe

"PHP" is the extension, and "PHP" is the configuration section name, defined as "[PHP]".

4. Configure PHP.ini

Copy D:\PHP\php.ini-recommended and rename to D:\PHP\php.ini

Open D:\PHP\php.ini, modify:

Extension_dir = "D:\PHP\ext"
Fastcgi.impersonate = 1

Other according to the actual needs of the php.ini to set up changes, here only for the ability to run PHP, modify remember to restart IIS.

5. Configure the Web site

Right-click Site => Properties => home Directory => configuration => Add, as shown in the following figure configuration:

Executable Path: C:\WINDOWS\system32\inetsrv\fcgiext.dll

6. Write a PHP test

<?php
Phpinfo ();
?>

See the following effect to show that your server can run PHP.

If prompted after opening:

No input file specified.

It is estimated that fastcgi.impersonate is not configured.

If you still feel trouble, then to http://www.zend.com download Zend Core, this is nothing to configure, installation can be used, even MySQL has.

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.