How to configure php 5.3.3 in Fastcgi mode in windows and IIS

Source: Internet
Author: User
Tags vc9

I still feel that the configuration in MySQL 5.2 and earlier versions is more convenient. After I used the configuration in MySQL 5.3, My apache went down. I don't know where the problem is and I didn't find a solution, at last, only the ghost can be restored.
Step 1: configure the iis6.0 environment, which is not described here

Step 2: Download php5.3.3 windows compressed version: php-5.3.3-nts-Win32-VC9-x86.zip
1. http://windows.php.net/download/, select vc9 x86 Non Thread Safe. PHP version description
2. Decompress php-5.3.3-nts-win32-vc9-x86.zip to D: \ PHP
3. Modify PHP. ini

Extension_dir = "D: \ php \ ext" points to the path where the "php _ *. dll" file is placed in the php folder.
Magic_quotes_gpc = On if it is Off, it must be On, which is an important step to prevent SQL attacks! Version 5.0 is On by default.
Change register_globals = Off TO register_globals = On to make the passed global variable valid;
Short_open_tag = Off, change off to On, which can solve the problem of running and installing Discuz! Blank during Forum

Search for the following string and remove the semicolon before the code.
Extension = php_mbstring.dll. If this parameter is not selected, a red prompt will appear in phpMyAdmin.
Extension = php_dba.dll
Extension = php_dbase.dll
Extension = php_filepro.dll optional
Extension = php_gd2.dll supports the GD library.
Extension = php_imap.dll optional
Extension = php_ldap.dll
Extension = php_mysql.dll supports MySQL

Next, we modified some file uploads and the maximum memory usage limit:
Memory_limit = 20 M memory capacity
Post_max_size = 20 M flash capacity
Upload_max_filesize = 20 M attachment capacity

Step 3: download and install Microsoft FastCGI Extension for IIS 5.1 and 6.0
1 ,:
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
Http://www.jb51.net/softs/33559.html provided by the foot home
2. Install fcgisetup_1.5_rtw_x86.msi
3. Configure fcigext. ini (in the % WINDIR % \ system32 \ inetsrv directory)
Add the following content to the end of fcigext. ini:
[Types]
Php = PHP
[PHP]
ExePath = D: \ php \ php-cgi.exe (PHP Directory)
4. Configure FastCGI extension to work with PHP
Right-click "website" and choose "properties ",
Click the "main directory" option and click the "configuration" button,
Click Add,
Click Browse to find fcgiext. dll in % WINDIR % \ system32 \ inetsrv.
Enter. php In the extension,
Select "Limit" for the action, and enter "GET, HEAD, POST".
Check whether "Script Engine" and "check whether the file exists" are selected,
If not selected, select.
After confirming that the information is correct, click OK ".

Step 4: write a simple script to test whether PHP FastCGI works properly.
Create the test. php file in the C: \ Inetpub \ wwwroot directory, open Test. php, and enter the following content: <? Php phpinfo ();?>
Save Test. php, restart IIS, and enter http: // localhost/Test. php in the address bar of the browser to check whether 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.