IIS installation and solutions to common problems

  
                  

How to install IIS

Step 1: IIS installation

A. Select “Add/Remove Programs” in the Control Panel and select “Add/Remove” in the dialog box that appears. Windows components."

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

C. Click “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 “Finish” 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" → "Programs" → "Administrative Tools" → "Internet Service Manager", or "Select" → "Control Panel" → "Administrative Tools" → "Internet Service Manager" can also open the window as image 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 "Home 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 "Documents" tab in the Properties window, set your own default home page name, such as "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 button, click “Default Web Site”, select “Start”, and type the IP address of the machine in the open IE address bar. I saw that my designated homepage has started to be published on the Internet.

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

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. In other words:

(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 concurrent 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 webpage in the website (the suffix with htm or html). If it is not displayed properly, the problem itself is not on the ASP.

Check the IIS settings to see if "Application Settings - Execute Permissions - Pure Script" is set. There is an asp extension in "Configuration - Mapping". 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 this can Read the ASP page in the browser to indicate that there is a problem with the IWAM account. If you still can't access the ASP page, check the "Component Services" of the "Administrative Tools" and 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 "Medium" or "High" and 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. Resolve the permissions of the IWAM account. Well, this is a long story, and an article will be published separately.

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

Use the DOS window to type the following command to re-create the package

%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