Beginners must read the establishment of ASP Runtime Environment

Source: Internet
Author: User
Select the operating system. Because ASP is Microsoft, We need to select the MS operating system, Windows 98 or above (Windows ME and Windows XP Home do not work ).

The next step is to build a personal Web Server (Personnel Web serice), which depends on the operating system. The configuration is as follows: WIN98 + PWS (Personnel Web serice)/Win2000 Pro + IIS (Internet Information serice)/Win2000 Server + IIS (IIS is installed by default in Win2000 Server) /Win2000 advance SERVER + IIS (IIS is also installed by default)/WINXP + IIS/win2003 + IIS. the following describes how to install and configure PWS/IIS.

I. installation and configuration of PWS: PWS is included in a special disc of Win98. You can search for it on the Internet to find it and download it. Then click Install. Here we will not talk about the installation here, it is the same as installing other software. After the installation, a "publish" icon will be displayed on the Win98 desktop, and an icon will be placed next to the taskbar clock. In the start-> program, an item will be added, which is PWS, no matter where you start it, the default status is to start after installation. Click Open. Here we have several items to set. First, set the main directory. In "advanced", select the main directory for setting. The default value is X:/inetpub/wwwroot (X: indicates the system disk). You can change it, change to the directory you want. Set the document again. This is the file name that you open your site by default. . Now, set the virtual directory and click "virtual directory" to give the virtual directory a name that is more vivid. For example, your ASP program is a forum program, name it BBS (case-insensitive, it is best not to name it in Chinese). This name is, and then select the path of the virtual directory, where you choose the path of your own program, for example, D:/My Forum/BBS /. In this way, we have completed the basic configuration of PWS. Now you can browse your asp files in IE. Open IE and enter http: // XXX (your computer name, 127.0.0.1, or localhost)/XXXXX (your virtual directory name, that is, the name of your life when setting the virtual directory. If it is placed in X:/inetpub/wwwroot, do not use the virtual directory, for example, www.knowsky.com/wwww (file name, if it is default. ASP/default.html/index.htm/index. the file name such as ASP can also be omitted ). If there is an error in your ASP file, ie will report an error.

2. install and configure IIS. Win2000 Server/Win2000 advance server are installed by default. If you do not select it during installation, follow the steps below. Start from Win2000 Pro/WINXP Pro/win2003-> Control Panel-> Add/delete programs-> add and delete windows program components, and check Internet Information Service (IIS, insert the Windows installation CD and click "Next" to start IIS installation. The installation process is not too much. It is also the same as the installation of common software. Either click Next or click Finish and confirm. Now you have configured IIS. Start> Control Panel> Administrative Tools> Internet Information Service. After it is opened, it will go to the IIS console. Click the plus sign in front of the computer name to expand, and then click the plus sign in front of the website to expand. Then there is a default website, which is the key to IIS configuration. Right-click "default website" and select "attribute" in the pop-up menu. Then, the "attribute" top card selection will pop up. In general, do not change the "website/General" tab. Select the "main directory" tab, and the local path is your main directory path. Here you can click browse to change to the directory you want to set. The default value is: X:/inetpub/wwwroot (X: system Disk ). You can also set the user operation permissions for your website. After these settings are complete, go to the "documents" tab. First, check before "enable default document". The default setting is checked. Click "manage documents". For example, refer to "index.asp?index.htm=index.html". This is the default main file name opened on your website. You can also delete the file here. Click "delete" After selecting the document you want to delete. Now the "properties" tab is basically set, click application, and then return to the IIS console. Now you have set the virtual directory (If your file is placed under X:/inetpub/wwwroot, do not set it ), right-click "default website" and choose "New"> "virtual directory ". Enter the virtual directory name, next, select the file path, and next. Now we have basically completed the IIS configuration, and now we can use IIS + IE for ASP debugging. Open IE and enter http: // XXX (your computer name, 127.0.0.1, or localhost)/XXXXX (your virtual directory name, that is, the name of your life when setting the virtual directory. If it is placed in X:/inetpub/wwwroot, do not use the virtual directory.)/wwww (file name, if it is default. ASP/default.html/index.htm/index. the file name such as ASP can also be omitted ). If there is an error in your ASP file, ie will report an error.
Well, this is basically the case, and you have to explore it by yourself. You need to perform this operation on your own. If you try other advanced settings, you will understand them. Generally, these settings are enough.

Last, let's talk a little bit: If a PWS/IIS error occurs, the system can be restored only after the system is reinstalled. In WINXP pro, you are often unable to update (ADD, modify, or delete) The database. You can only perform read operations. You can reinstall IIS or reinstall WINXP pro of another version, therefore, we recommend that you use Win2000 Server + IIS (I have not used win2003 ).

Finally, I hope you can use PWS/IIS to build your own perfect ASP runtime environment and build your own beautiful website.

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.