PHP5.3 diagram of Fastcgi configuration in IIS in Windows2003

Source: Internet
Author: User
1. Download
1. Download: Microsoft FastCGI Extension for IIS 5.1 and 6.0
2. Download: php-5.3.28.tar.zip
3, download: mysql-5.5.28-win32.msi
4. Download: vcredist_x86.exe (optional)
Package download: http://pan.baidu.com/s/1dDgQJG9
II. Installation
1. IIS6.0 environment configuration. I believe everyone will.
2. Install fcgisetup_1.5_rtw_x86.msi
3. Unzip the downloaded php-5.3.28.tar.zip file to D:/wamp/php5.3/(you can modify the directory by yourself)
4. Install mysql

III. Configuration

1. Modify PHP. ini
Find extension_dir = ". /"changed to extension_dir =" C: wampphp5.3ext ". Point to the php folder and place" php _*. dll "extension library file path (modified according to the self-extracted PHP path)
Next, continue to search for extension. Find extension = php _ *. dll in a format similar to this. Enable the extension you need and remove the semicolon from the extension.


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

Extension_dir = "D: phpext" 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

2. Configure fcigext. ini

The path of the fcigext. ini file is C: WINDOWSsystem32inetsrvfcigext. ini.
Add the following lines to the last line to open the file:
Php = PHP

[PHP]
ExePath = C: wampphp5.3php-cgi.exe (PHP working directory)

Save

3. Configure the FastGGi extension in IIS to enable PHP to work collaboratively.
Control panel-> Internet Information Service (IIS)-> Website-> Properties-> Home Directory-> configuration-> ing-> Add-> select C: WINDOWSsystem32inetsrvfcigext in the executable file. dll file with the extension. limit php to "GET, POST, HEAD", and click OK.
IV. Test
Restart IIS, create the file test. php under the root directory of the website, and enter the following code:
 
 

Echo phpinfo ()

Enter the site address in the browser, for example, http: // localhost/test. php. The following information indicates that PHP has been configured.

Note: The file has been shared in the online storage.


Note that some people say that VC9 should be installed in windows2003. In fact, we try to install x86 32-bit systems. If you are a 64-bit system, you can install 64-bit systems, if v9 is installed, we need vs2008 of windows 2008 for compiling and parsing, or you cannot complete the php configuration. Do not believe it.

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.