IIS installation and solutions to common problems

  
        

First Step: IIS Installation

A. Select “Add/Remove Programs in the Control Panel, and select “Add/Remove Windows Components> in the dialog box that appears.

B. In the checkbox that appears, choose to install Internet Information Services (IIS). This component requires about 19MB.

C. Click on “Next” and insert the Win2000 installation CD into the CD-ROM drive. The installation program can copy the program files to the hard disk and click “End” to complete.

Step 2: Basic configuration of Web server in IIS

The basic configuration of Web server in IIS mainly includes the following parts:

A. Open the configuration window of IIS server , select “Start”→“Program”→“Administrative Tools”→“Internet Service Manager>, or “Select”→“Control Panel”→&ldquo Management tools & rdquo; & rarquo; & ldquo; Internet Service Manager & rdquo; Also, open the window shown in Figure 3.

B. Right-click on the "Default Web Site" in the window that opens and select the "Properties" menu.

C. In the “Default Web Site Properties” window that appears, select the “Main Directory” tab to set the location of the Web content on the hard disk. The default directory is “C:/Inetpub/Wwwroot”, you can set it yourself as needed (Figure 4).

D. Select the "document" tab in the Properties window and set your default home page name, for example, “Myfirstweb.htm”, add it and move it to the top of the list (Figure 5) ).

E. Confirm that the default Web site has been started. If there is no right mouse click, click “Default Web Site” and select “Start” to enter the IP of the machine in the open IE address bar. Address, you can see that the home page you have specified has started to be published on the Internet.

Here is just the most basic setup options for IIS. You can also configure the above mentioned "Default Web Site Properties" as needed to configure IIS security and other parameters.

IIS is easy to use, but in the case of default installation, it also has a lot of security vulnerabilities, including the famous Unicode vulnerability and CGI vulnerability, so after the IIS installation is completed, it is recommended to continue to download and install on the Microsoft homepage. They provide security vulnerability patches SP1 and SP2. In addition, it is recommended to convert the disk file system to NTFS format. The partition of the installation system can be converted in the system installation, or can be converted by tools such as PQMagic after the system is installed.

What is the number of IIS connections?

The number of IIS connections refers to the number of accesses to the 80 ports accessed by the IP, which is the number of times the website file is called, which is not the same as the number of simultaneous users.

IIS connection number, I can introduce: If a door is 4 meters, each person is 0.5 meters wide, then 8 people can be allowed to pass at the door at the same time, that is, the IIS of this door is 8, In 10 minutes, maybe 100 people will pass this door, then the online number of this forum may be 100, then IIS is 8, is it to allow 8 people to request data at the same time? No, because the program is different The number of IISs used by each program is different. Maybe it is a 2 meter wide fat person, then only 2 people can be allowed to pass at the same time. That is:

(1), IIS is the number of units requested at the same instant, this is not equal to IP.

(2), an IP may occupy more than one IIS at a time, such as a fat man, accounting for 4 individuals IIS.

(3), IIS is the number of simultaneous concurrent, and online statistics is the amount of throughput, one is the number of people allowed to pass at the door, one is said at this time How many people entered this doorway.

IIS can't run ASP programs?

Before analyzing the problem, try to access the pure static web page (the suffix with htm or html) in the website. If it is not displayed properly, the problem itself is not on the ASP.

Check the IIS settings to see if the settings are set to "Execute Settings - Execute Permissions - Pure Scripts", "Configure - Map" has an asp extension. After the IIS settings are checked, proceed to the next steps.

1. If the website itself has Global.asa, rename it to Global.old and restart the website. Write the code in Notepad and save it as a test.asp file, which is accessed in the browser. If it can be displayed normally, the problem is in the Global.asa file.

<%Response.Write "This is a test ASP page."%>

2, set the application protection to "low", restart the IISadmin thread, If the ASP page can be read in the browser at this time, there is a problem with the IWAM account. If you still can't access the ASP page, check the “Administrative Tools>component service” to make sure you can see the IIS package.

Attachment: If you encounter component service can not open (may be caused by the application full CPU), add and delete in the control panel, re-add the remove component service, and then restart the computer.

3, return the application protection to "in" or "high", add the IWAM account to the Administrator group, if the ASP page can be browsed at this time, IWAM has a permission problem. If ASP still does not display properly, run the Synsiwam.vbs tool in the DOS window using the command line.

C:/Inetpub/adminscripts>cscript synciwam.vbs

4, Solve the IWAM account permissions problem, um, this is a long story, and then publish a separate article.

5, Re-establish the IIS packages method:

Delete the following packages in the component service

IIS In-Process Applications

IIS Out-of- Process Pooled Applications

IIS Utilities

Re-create the package by typing the following command in the DOS window

%windir%/system32/inetsrv rundll32 wamreg.dll, CreateIISPackage

Turn off the component manager and re-open it. After seeing the three newly created packages, restart IIS (IISRESET) to check if the ASP page can be browsed normally.

Copyright © Windows knowledge All Rights Reserved