Method of configuring PHP 5.3.3 in fastcgi mode in Windows+iis environment _win server

Source: Internet
Author: User
Tags memory usage vc9 win32 zip
Or feel 5.2 and the previous version of the configuration is more convenient, using 5.3 configuration, my Apache unexpectedly hung, do not know where the problem, did not find a solution, the last can only ghost restore.
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 Address: http://windows.php.net/download/, choose VC9 x86 Non Thread Safe. About the PHP version description
2, Php-5.3.3-nts-win32-vc9-x86.zip decompression to D:\PHP
3. Modify PHP.ini

Extension_dir = "D:\php\ext" 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 the address:
http://www.iis.net/download/fastcgi
Http://download.microsoft.com/download/E/0/C/E0C0709A-66E5-4113-9A6C-A5F65BF6717D/fcgisetup_1.5_rtw_x86.msi
The cloud-dwelling community offers download addresses http://www.jb51.net/softs/33559.html
2. Installation Fcgisetup_1.5_rtw_x86.msi
3, configure Fcigext.ini (in the%windir%\system32\inetsrv directory)
Add the following at the end of Fcigext.ini:
[Types]
php=php
[PHP]
Exepath=d:\php\php-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%\system32\inetsrv.
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:\Inetpub\wwwroot 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.