Tutorial on installing IIS to build an ASP environment in WinXP [Image and text]

Source: Internet
Author: User

If you are using Windows 7, we recommend that you read the demo: Install IIS7 in Windows 7 to enable ASP + Access environment.

Install IIS 5.1

1. Download IIS 5.1 (winxp sp3 IIS 5.1)

2. open Control Panel> add or delete programs, click Add/delete Windows Components (A), check Internet Information Service (IIS), and click Next]

3. The message "Insert disk" is displayed. Click "OK]

4. Click Browse in the displayed dialog box]

5. Find the IIS 5.1 downloaded and decompressed (Win XP IIS5.1 under drive D), select and open

Then open

6. Click OK to start installation.

Note: during the installation process, the dialog box similar to the preceding [required files] may pop up several times, open the folder just now through [browse] (here Is Win XP IIS5.1 under drive D)

If it succeeds, IIS will be installed soon.

Configure IIS

1. Open Control Panel> Administrative Tools and double-click to open Internet Information Service]

2. Expand computer> website> default website, right-click the default website, and view properties ].

Switch to the main directory, select the check box, set "execution permission" to "script and executable file", and click "application]

Switch to [document] Here, you can add the default document. For example, here I add index. asp, you can also move up and down the order and set it as needed.

Switch to Directory Security, click Edit, and select allow IIS to control the password, OK

3. Right-click the default website and Click Browse]

If the IIS 5.1 document is opened normally in the browser, the IIS settings are successful.

Install website programs

1. copy your website program to the [wwwroot] folder, delete other files in the folder, place the program source code to the root directory, or create a folder containing your program source code file, for example, here I create a blog folder containing the Z-Blog Installation File

Tip: the address of the [wwwroot] folder isHttp: // localhost/OrHttp: // 127.0.0.1/

2. access http: // localhost/blog/install. asp (this is the path of the zblog installation file. You need to access it based on your actual situation). You can start to install the program. If everything goes well, it means no problem.

3. If an error occurs during installation or a Website access error occurs, such as a promptUnable to open/cannot connect/database connection ErrorAnd other information, probably because of permission issues, you need to follow the tutorial below.

User permission settings

In Windows, partitions in the NTFS format are relatively safe because related permissions are set. Due to the NTFS partition permission restrictions, different users have different permissions in the NTFS partition. If they do not have the corresponding permissions, they cannot perform read/write operations.

IIS uses an anonymous user [IUSR _ computer name]. When installing the program, [IUSR _ computer name] needs to write and modify files. When connecting to the database, it also needs to pass C: the Windowstemp directory is used as a cache for data exchange. Therefore, we need to grant the user the permission to [IUSR _ computer name.

Check the format of the partition where the wwwroot folder of your site is located. If it is in NTFS format, you must grant the user the permission to [IUSR _ computer name.

How can I view the partition format?

Right-click the partition icon and check the attributes to see if the file system corresponds to NTFS, as shown in

According to the above analysis, here we will set the operation permissions for [C: Windowstemp] and [C: Inetpubwwwrootblog] for the [IUSR _ computer name] user.

1. Open C: Windows, open tools> Folder Options, remove the hooks for using simple file sharing, and click OK.

2. Find the Temp folder in C: Windows, right-click to view properties, click Add under security, and click Advanced]

2. Click search now and selectIUSR _Start with "user" and click "OK]

OK

3. Select the user you just added and confirm according to the permission granted to [full control ].

4. Also, right-click the "blog" folder in the website directory and choose "security" from the context menu.IUER _The user is also granted the [full control] Permission

5. visit the website at this time. If everything is normal, everything will be OK!

Summary

Although this article demonstrates the Windows XP system, It is similar in Windows 2003.

If the root directory partition of the website is in the NTFS format, various inaccessible errors occur during website operation, which are generally caused by permission issues. You can follow the above method to grant the folderIUSR _The corresponding permissions of the user. Partitions In the FAT32 format do not have this problem.

If you encounter problems during 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.