How to install IIS6.0 and configure asp.net/php environment in Windows2003

Source: Internet
Author: User
Tags phpinfo

IIS6.0 installation

First, select "add/delete Windows components" of "add or delete programs" in the control panel ";

Double-click "Application Server"

Double-click "Internet information service" and select "Internet Information Service (IIS)" (note: This option can be further selected, as shown in the following figure ), click OK to complete the installation.

 
Click OK to complete the installation.
 

Configure IIS6.0

1. Like other windows platforms, the default Web site has been started. However, please note that IIS6.0 initially supports only static content (that is, ASP-based Web content cannot be displayed normally). Therefore, the first thing to do is to enable its dynamic content support function. Choose Start> Program> Administrative Tools> inter information service manager, and click web service extension on the left of the IIS management window, as shown in the following figure, place the cursor in the "ASP. NET v.1.1.4322 and Active Server Pages are enabled (click to allow.

ASP. NET: this is a new generation of Microsoft server script environment. It provides a new programming mode and structure that enables Web developers to build and deploy enterprise-class Web applications that are safer, more flexible, and more stable than before.

Make IIS support PHP

1. Decompress php-5.2.6.zip to D:/php5, find php. ini-dist and change it to php. ini and put it in the C:/WINDOWS directory.
2. Set libmcrypt under the D:/php5 directory. dll and libmysql. dll and php5ts. dll to C:/WINDOWS/system32 (this is to make these three files be called by IIS to facilitate loading the corresponding modules)
3. Open php. ini in the WINDOWS directory,
Locate the short_open_tag option and assign it to on (short tags are supported)
Change display_errors = On to display_errors = Off (indicating no error information is displayed. It is best to set it in the launch environment so that the program error information is not displayed to the viewer)
Change extension_dir = "./" to extension_dir = "D:/php5/ext" (Change the extension module path)
Find
; Extension = php_gd2.dll (this is used to support the GD Library)
; Extension = php_mbstring.dll)
; Extension = php_mysql.dll (required to support MYSQL)
Remove ";" in front of the text. You can also remove the previous text if you need it. Then, close and save the file.
4. Open control panel & rarr; administrative tools & rarr; Internet Information Service (IIS) manager, expand the local computer & rarr; website, right-click the default website, and select Properties.
5. Click the "ISAPI filter" tab, and then click the "add" button. In the "filter attributes" dialog box that appears, enter the filter name "php" and the executable file "D: /php5/php5isapi. dll and click OK to exit.
6. Click the "main directory" tab and select the "configuration" button. Enter "D:/php5/php5isapi. dll" in the executable file, and enter ". PHP" in the extension"
7. Click the "document" tab to add index. php as the default homepage"
8. In the IIS Manager, right-click "Web service extension", click "add a new Web service extension", and set the extension to ". PHP. The required file is D:/php5/php5isapi. dll, and select the "set extension status to allow" check box.
9. Restart IIS and create a file named "phpinfo. php" under the IIS root directory. The content is as follows:
  1. <? Php
  2. Phpinfo ();
  3. ?>

10. Open IE and enter "http: // localhost/phpinfo" in the address bar. php ", as shown in the figure below, PHP configuration is successful. If not, you can check whether the website directory permission and IIS permission are configured.

Related Article

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.