Installation configuration for win2003+iis6+fastcgi+php5.4.30

Source: Internet
Author: User
Tags register php

Original: win2003+iis6+fastcgi+php5.4.30 Installation configuration

Note: PHP5.5 has not supported Win2003, Win2003 can install PHP5.4.30.

Install the system properly and install the IIS6.

Specific installation methods can be viewed: http://down.chinaz.com/server/201102/11_1.htm.

Download and install IIS FastCGI

: http://www.iis.net/download/fastcgi. Select x86 or download x86 to download the name Fcgisetup_1.5_x86_rtw.msi. After installation, there are 5 more files in the C:\WINDOWS\system32\inetsrv\ directory:

Fcgiconfig.js,fcgiext.dll,fcgiext.ini,fcgilicense.rtf,fcgireadme.htm

This time in the IIS6 "Web service Extension" There is a fastcgi Handler.

Installing the PHP Environment

I have not intentionally installed PHP in my environment, I have directly installed a xampp; You can go to the next xampp online. And then install it directly, it is not detailed here to write the installation process.

Configuring the PHP Environment
    • Environment variable Modification

System variables--environment variable----property-------Properties-----------add to the last side of path: D:\Program Files (x86) \xampp\php\ This link is not written to death; it depends on where you put the XAMPP.

    • Register PHP to FastCGI

Open the C:\WINDOWS\system32\inetsrv\fcgiext.ini file and add the following statement at the end of the file:

    1. [Types] (This is the original file, in [Types] after adding the following statement on it, to all oh otherwise will be an error. )
    2. php=php
    3. [PHP]
    4. Exepath=e:\php\php-cgi.exe
    5. instancemaxrequests=10000
    6. environmentvars=php_fcgi_max_requests:10000
    7. activitytimeout=3600
    8. requesttimeout=3600

Remember! Is the last side of the loading file! Because generally Fcgiext.ini files will have two [Types] nodes.

Modification of PHP.ini

PHP installation directory is not php.ini this file, only Php.ini-development and php.ini-production, we changed php.ini-development to PHP.ini. But if you install XAMPP, you will always bring one, which saves us a lot of things.

First build a folder named TMP, location arbitrary, I put here in E:\PHP\tmp. (Upload_tmp_dir will use, Upload_tmp_dir is used to define the temporary path of the upload file storage, where you can modify and define an absolute path, you need to have read, write permission). Use the search (shortcut key: ctrl+f) to change the following keywords to the current value:

Short_open_tag = Off (This is the default, so let's not change it.) )

Upload_tmp_dir = changed to Upload_tmp_dir= "D:\Program Files (x86) \xampp\php\tmp"

Cgi.force_redirect = 1 Changed to Cgi.force_redirect=0

Fastcgi.impersonate = 1; change to fastcgi.impersonate=1;

Extension_dir = "ext" changed to extension_dir= "D:\Program Files (x86) \xampp\php\ext"

Date.timezone = changed to Date.timezone =PRC (if you do not modify Date.timezone, it is quite possible to prompt for a 500 error when opening a webpage.) Some people change the value to Asia/shanghai, I haven't tried you can try it. )

Changes to Internet Information Services (IIS) Manager

Add an ISAPI extension to the configuration, properties----web site.

Executable file Fill C:\WINDOWS\system32\inetsrv\fcgiext.dll

The extension is populated with. php.

Action---limited to Get,head,post.

Add default content index.php, documents, properties----web site. It's all configured here, so be sure to restart the IIS service.

Test it.

Create a new TXT file and write the following:

<? PHP Phpinfo ();? >

Save as: default.php put the file at the root of your site, access it, or OK if you can access it.

Common error

If an error like the following appears, your computer does not have the VC9 runtime installed, Visual C + + 2008

Microsoft Visual C + + Redistributable Package (x86)

: HTTP://WWW.MICROSOFT.COM/DOWNLOADS/ZH-CN/DETAILS.ASPX?FAMILYID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&DISPLAYLANG=ZH-CN

After downloading, install it.

Error diagram:

FastCGI errorthe FastCGI Handler was unable to process the Request.-------------------------------------------------------Error details:error number:14001 (0X800736B1). Error Description:???????????????????????????? HTTP Error 500-server error.internet information Services (IIS)

Transferred from: http://www.destlive.com/478.html

Installation configuration for win2003+iis6+fastcgi+php5.4.30

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.