Windows2003 + IIS6.0 Environment to configure PHP in fastcgi mode 5.3.3

Source: Internet
Author: User
Tags iis ini memory usage phpinfo vc9 win32 zip

The first step: iis6.0 environment configuration, here is not much introduction

Step two: Download the php5.3.3 version of Windows compression: Php-5.3.3-nts-win32-vc9-x86.zip

1, download, select VC9 x86 Non Thread Safe.

2, Php-5.3.3-nts-win32-vc9-x86.zip decompression to d:php

3. Modify PHP.ini

Extension_dir = "D:phpext" points to the path to place the "Php_*.dll" file under the PHP folder

MAGIC_QUOTES_GPC = On if off, be sure to turn on, which is an important step in preventing SQL Attacks! version 5.0 is already default on

Register_globals=off is changed to Register_globals=on, which makes it effective to pass global variables;

Short_open_tag =off, change off to on, this can generally solve the running installation discuz! forum when there are gaps

Then look for the following string and remove the semicolon before the code.

Extension=php_mbstring.dll This is not a choice, with phpMyAdmin will appear red hint

Extension=php_dba.dll

Extension=php_dbase.dll

Extension=php_filepro.dll Optional

Extension=php_gd2.dll Support GD Library, the general to drop

Extension=php_imap.dll Optional

Extension=php_ldap.dll

Extension=php_mysql.dll support for MySQL

Next, some file uploads and maximum memory usage restrictions are modified:

Memory_limit = 20M Memory capacity

Post_max_size = 20M Flash capacity

Upload_max_filesize = 20M Attachment capacity

Step three: Download and install Microsoft FastCGI Extension for IIS 5.1 and 6.0

1, download

2. Installation Fcgisetup_1.5_rtw_x86.msi

3, configure Fcigext.ini (in the%windir%system32inetsrv directory)

Add the following at the end of Fcigext.ini:

[Types]

php=php

[PHP]

Exepath=d:phpphp-cgi.exe (PHP directory)

4, configure FASTCGI expansion and PHP work together

Right-click Web site to select Properties.

Click the Home directory option and click the "Configure" button,

Click the Add button,

Click "Browse" to find Fcgiext.dll in%windir%system32inetsrv.

In the extension, enter. PHP,

Action Select "Limit to" and enter "Get,head,post".

Verify that the script engine and check for files exist are selected,

If it is not selected, please select it.

When the confirmation is correct, click OK.

The fourth step: write a simple step to test whether the PHP FastCGI is working properly.

Create test.php files in the C:inetpubwwwroot directory, open test.php, and fill in the following:<?php phpinfo ();?>

Save test.php, restart IIS, and then enter http://localhost/Test.php in the browser's address bar to see if it is correct.

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.