Start by selecting your operating system. Since ASP belongs to MS (Microsoft), we have to choose the MS operating system, Windows 98 or above is sufficient (Windows Me and Windows XP Home are not acceptable).
The next step is to build a personal WEB server (Personnel Web Service), which depends on the operating system. The configuration is like this: 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 here) /WinXP+IIS/Win2003+IIS. Let’s talk about how to install and configure PWS/IIS in detail.
1. Installation and configuration of PWS: PWS is included in the special disk of WIN98. You can also search the Internet to find the download, and then click to install. I will not go into the installation here, it is the same as the installation of other software. After installation, there will be a "Publish" icon on the desktop of WIN98, and there will also be an icon next to the clock on the taskbar. An item will be added to Start->Programs. This is PWS. You can start it no matter where you start it. , the default state is to start after installation. Click to open. We have a few things to set up here. First set the home directory. In "Advanced", select the home directory to set. The default is X:Inetpubwwwroot (X: represents the system disk). You can change it to the directory you want. Set the document again. This is the file name you use to open your own site by default. There are usually default.html and default.asp in it, but generally speaking we are used to using index.asp and index.htm as the homepage names, so here we also need to add index.asp and index.htm. Now we set up the virtual directory, click "Virtual Directory", and give the virtual directory a more vivid name. For example, if your ASP program is a forum program, name it BBS (uppercase and lowercase are not distinguished, it is best not to name it in Chinese). Just name it yourself, and then select the path of the virtual directory. Here you select the path where your own program is located, for example: d:My Forumbbs. In this way, we have completed the basic configuration of PWS. Now you can browse your ASP file in IE. Open IE and enter in the address bar: http://XXX (your computer name is either 127.0.0.1 or localhost)/XXXXX (your virtual directory name, which is the name you named when setting up the virtual directory. If If it is placed under X:Inetpubwwwroot, there is no need for a virtual directory, such as the URL: www.knowsky.com)/wwww (file name, if it is default.asp/default.html/index.htm/index.asp) The file name can also be omitted). If your ASP file has errors, IE will report an error.
2. Installation and configuration of IIS. WIN2000 server/WIN2000 advance server are installed by default. If you did not choose during installation, follow the steps below. Users of win2000 pro/winxp pro/win2003 start->Control Panel->Add/Remove Programs->Add and Remove WINDOWS Program Components, check Internet Information Services (IIS), then insert the WINDOWS installation CD, click Next, like this Let's start installing IIS. I won't go into details about the installation process. It's the same as ordinary software installation. You either click Next or Finish and OK. Now let’s configure IIS. Start->Control Panel->Administrative Tools->Internet Information Services. After opening it, you will reach the IIS console. Click the + sign in front of the computer name to expand it, and then click the + sign in front of the website to expand it. Then there will be a default website. This is the key place where we want to configure IIS. Right-click "Default Website" and select "Properties" in the pop-up menu. The "Properties" selection card will pop up. Under normal circumstances, the "Website/General" tab should not be changed. Select the "Home Directory" tab. The local path is your home directory path. Here you can click Browse to change to the directory you want to set. The default is: X:inetpubwwwroot (X: represents the system disk). Here you can also set user operation permissions for your website. After setting these settings, go to the "Document" tab. First, check "Enable default document". It is checked by default. Click "Add" to add default documents, such as index.asp, index.htm, index.html, etc. This is the name of the main file that your website opens by default. You can also delete it here. Select the document you want to delete. Then click "Delete". Now the "Properties" tab is basically set. Click Apply and OK to return to the IIS console. Now it's time to set up the virtual directory (if your files are placed under X:inetpubwwwroot, don't set it up), right-click "Default Website" and select "New" -> "Virtual Directory". Enter the virtual directory name, next step, select the file path, next step, complete. Now that we have basically completed the configuration of IIS, we can now use IIS+IE to debug ASP. Open IE and enter in the address bar: http://XXX (your computer name is either 127.0.0.1 or localhost)/XXXXX (your virtual directory name, which is the name you named when setting up the virtual directory. If If it is placed under X:Inetpubwwwroot, there is no need for a virtual directory)/wwww (file name, if it is a file name like default.asp/default.html/index.htm/index.asp, you can also omit it). If your ASP file has errors, IE will report an error.
Okay, that’s basically it, and it’s up to you to slowly explore it yourself. You still have to do it yourself to understand. You will understand other advanced settings by trying them yourself. Generally, these settings are enough.
Finally, let me say a little bit: Generally, if there is an error in PWS/IIS, it can only be recovered by reinstalling the system. In WINXP Pro, it often happens that the database cannot be updated (added, modified, deleted), and only read operations can be performed. The method is to reinstall IIS, or to reinstall another version of WINXP Pro, so it is recommended to use WIN2000 Server +IIS (I haven’t used Win2003 yet).
Finally, I wish you can use PWS/IIS to successfully build your own perfect ASP operating environment and build your own beautiful website.