WinXP Install IIS to build an ASP environment Tutorial [graphic]_win server

Source: Internet
Author: User

If you are using Windows 7, it is recommended to read the demo: Windows7 install IIS7 enable asp+access environment

Install IIS 5.1

1. Download IIS 5.1 (WinXP SP3 IIS 5.1)

2. Open Control Panel-> Add or Remove Programs, click Add/Remove Windows Components (A), tick "Internet Information Services (IIS)", and click "Next"

3. Prompt "Insert Disk", click "OK"

4. Pop-up "Required files", click "Browse"

5. Find the downloaded and extracted IIS 5.1 (here is the win XP IIS5.1 under D disk), select and open

Then open

6. Then click "OK" and the installation will begin.

Note: During the installation process, you may also pop up several times similar to the above "Required files" dialog box, all through the "browse" to open just the folder (here for the D disk under the win XP IIS5.1)

If it goes well, IIS will be installed soon.

Configuring IIS

1. Open "Control Panel"-> "Administrative Tools", double-click to open Internet information services

2. Expand the computer-> Web site-> The default Web site, right-click on the default Web site, and view properties.

Switch to home directory, check the following figure, and set "Execute Permissions" to "Scripts and executables" and click "Apply"

Switch to "document" Here you can add a default document, such as I add index.asp here, can also move up and down the order, according to your needs set.

Switch to "directory security" click "Edit", check "Allow IIS to control password", OK

3. On the "Default Web site" right click "Browse"

If you open the IIS 5.1 document normally in your browser, the IIS settings are successful.

Install Web site Programs

1. Copy your website program to the "Wwwroot" folder, you can delete other files under the folder, the source of the program to the root directory, you can also build a folder containing your program source files, such as here I set up a blog folder, which is the Z-blog installation files

Tip: At this point, the "Wwwroot" folder corresponds to the address http://localhost/ or http://127.0.0.1/

2. Visit Http://localhost/blog/install.asp (This is the Zblog installation file path, you have to according to your actual situation access), you can start installation program, if everything is smooth, that means no problem.

3. If there is an error in the installation process, or access to the site error, such as the prompt can not open/Unable to connect/database connection errors and other information, it is likely due to permissions issues, you will follow the following tutorial to operate.

User Rights settings

You should know that in a Windows system, NTFS-formatted partitions are more secure because the associated permissions are set. Due to the limitation of NTFS partition permissions, the permissions of different users in the NTFS partition are not the same, and they cannot read and write without obtaining the appropriate permissions.

IIS uses the anonymous user "IUSR_ computer name", when the program is installed, "IUSR_ computer name" to write and modify files, connect the database also through the C:WINDOWSTEMP directory for data exchange, so we give the user "IUSR_ computer name" appropriate permissions.

Check the format of the partition where your site Wwwroot folder is located, and if it is in NTFS format, give the user the appropriate permission to "IUSR_ computer name."

How do I view the partition format?

Right-click on the partition icon and view the properties to see if the file system corresponds to NTFS, as shown in the following figure

According to the above analysis, here we will give "IUSR_ computer name" user Set "C:windowstemp" and "C:inetpubwwwrootblog" Operation permissions.

1. Open c:windows, open the "Tools"-> "Folder Options", remove the "Use Simple File sharing" hook, determine

2. Locate the Temp folder in C:windows, right-click the attribute, "add" under "Security", and click "Advanced"

2. Click "Find Now", then select the user to start with IUSR_ , click "OK"

Are you sure

3. Select the user just added, according to the following figure given the "Full Control" permission to determine

4. Also on the Website Directory Blog folder on the right key properties, "Security", select the iuer_ user, also give "Full Control" permission

5. Visit the website at this time, if everything is normal, then everything OK!

Summary

This article, while demonstrating the Windows XP system, is actually similar to Windows 2003.

If the site root partition is NTFS format, during the Web site running, the various inaccessible errors, generally due to permissions issues, you can follow the above method, the folder to give IUSR_ users the appropriate permissions. FAT32 format partitions, there is generally no such problem.

If you have problems in the setup process, you can leave a message below and we will try our best to help you.

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.