Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Running ASP on Your Own PC

Running ASP on Your Own PC


You can run ASP on your own PC.


Turning Your Windows PC into a Web Server


IIS - Internet Information Server (Internet Information Services)

IIS is a collection of Internet-based services developed by Microsoft for use on the Microsoft Windows platform.

IIS is provided with Windows 2000, XP, Vista, and Windows 7. IIS is also available for Windows NT.

IIS is easy to install and is an ideal tool for developing and testing web applications.


PWS - Personal Web Server

PWS is used on older Windows systems, such as Windows 95, 98, and NT.

PWS is easy to install and can be used to develop and test Web applications containing ASP.

We do not recommend using PWS except for training. It is outdated and has security issues.


Windows Web Server Versions


How to Install IIS on Windows 7 and Windows Vista

Follow these steps to install IIS:

  1. Open Control Panel from the Start menu
  2. Double-click "Programs and Features"
  3. Click "Turn Windows features on or off"
  4. Select the checkbox for "Internet Information Services (IIS)" and click OK

After installing IIS, make sure you install all service packs (run Windows Update).


How to Install IIS on Windows XP and Windows 2000

Follow these steps to install IIS:

  1. On the Start menu, click Settings, and select Control Panel
  2. Double-click "Add or Remove Programs"
  3. Click "Add/Remove Windows Components"
  4. Click "Internet Information Services (IIS)"
  5. Click "Details"
  6. Select the "World Wide Web Services" checkbox and click OK
  7. In the Windows Components dialog, click "Next" to install IIS

After installing IIS, make sure you install all service packs (run Windows Update).


Testing Your Installation

After installing IIS or PWS, follow the steps below to test whether the installation was successful:

  1. Search your hard disk for a folder named Inetpub Inetpub
  2. Open the Inetpub folder and find the folder named wwwroot Inetpub
  3. Create a new folder under wwwroot, for example "MyWeb"
  4. Use a text editor to write a few lines of ASP code, name the file "test1.asp", and save it in the "MyWeb" folder
  5. Make sure your Web server is running. Confirm its status as follows: go to Control Panel, then Administrative Tools, then double-click the "IIS Manager" icon.
  6. Open your browser, type "http://localhost/MyWeb/test1.asp" in the address bar, and you will see your first ASP page.

**Note:** Look for the IIS (or PWS) icon in your Start menu or taskbar. The program provides options to start and stop the Web server, enable and disable ASP, and much more.


How to Install PWS on Windows 95, Windows 98, and Windows NT

Windows 98: On your Windows CD, open the Add-ons folder, and find the PWS folder and run the setup.exe file inside it to install PWS.

Windows 95 or Windows NT: Download "Windows NT 4.0 Option Pack" from Microsoft's site to install PWS.

Test your installation as described earlier.


How to Install IIS on Windows Server 2003

  1. When you start Windows Server 2003, you will see theManage Your Server wizard
  2. If the wizard does not appear, openAdministrative Tools, and then selectConfigure Your Server Wizard
  3. In the wizard, click Add or Remove a Role, and click Next
  4. ChoiceCustom Configuration, and click Next
  5. ChoiceApplication Server role, and click Next
  6. ChoiceEnable ASP.NET, and click Next
  7. The wizard will now ask for Server 2003 CD. Insert the CD, continue the wizard until it finishes, and then click the Finish button
  8. The wizard should now display "Application Server Role Installed"
  9. ClickManaging This Application ServerOpenApplication Server Management Console (MMC)
  10. Expand Internet Information Services (IIS) Manager, then expand your server, and then the Sites folder
  11. You will see the Default Web Site, and its status should be Running
  12. IIS is running!
  13. in Internet Information Services (IIS) ManagerClick in Web Service Extensionsfolder in the window
  14. Here, you will see that Active Server Pages is Prohibited(this is the default configuration of IIS 6)
  15. Select Active Server Pages, and clickAllowedbutton
  16. This activates ASP!