ASP 101 - Active Server Pages 101 - Web03
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash



 Top ASP 101 Stories Top ASP 101 Stories
What is Adovbs.inc and Why Do I Need It?
An Overview of ASP.NET
Connections, Commands, And Procedures

QUICK TIP:
Server-Side vs. Client-Side Scripting
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates


Personal Web Server

  1. Intro

Personal Web Server 4.0 is a free ASP capable webserver for your Win95/98 or NT Workstation PC. Itís a reduced version of Microsoftís fullblown webserver IIS 4.0 (Internet Information Server) that is used on machines running Win NT Server. PWS is available as a free download from Microsoft, as a part of the NT Option Pack. In this lesson you will learn to download & install PWS, and get your first ASP pages running. There are differences between PWS for NT Workstation and PWS for Win95/98. Microsoft describes PWS for NT Workstation like this: "Full-featured site development or personal publishing on a corporate intranet" and PWS for Win95/98 like " Personal publishing on a low-volume corporate intranet". One example is that you donít have an FTP service in the Win95/98 version of PWS. In this article we will focus on the Win95/98 version.

  1. Download
  2. To run PWS you need IE 4.01 or later. Make sure you have downloaded and installed IE before you

    Start. IE 4.01 is free and can be downloaded from Microsoft (About 16MB).

    NT Option Pack can be downloaded from this site. The download is pretty big (31MB for a full install), so you should be sitting on a fast internet connection (or buy a good book to read :-) ). An alternative is to buy a magazine with a CD-ROM containing NT Option Pack (take a look in your local news store).

    The download wizard is pretty straight forward, and you shouldnít have any problems downloading PWS. Make sure that you choose the download site that is closest to you to make sure you get a fast download. If the download seems slow (e.g. under 2-3K/sec. on a standard 33.6 modem), you should cancel the download and try a differnet download site. If this doesnít help try downloading in of peak hours (e.g. early in the morning).

  3. Installation
  4. Go to the folder you specified in the download wizard, and run SETUP.EXE

    If you donít have Winsock 2.0 it will be automatically installed. Next you will be asked

    which components you want to install, just choose Typical (Or try custom if you are a control freak like me :-) ). The rest should be a piece of cake. Reboot and the PWS installation are done!

  5. Your first ASP site

Now itís time to get started. To check if things are OK, start up your browser. Type in this URL: http://yourmachinename (where yourmachinename is the name of your computer on the network. If it doesnít work, or if you donít know the network name of your computer use this address in stead: http://127.0.0.1/). You should now get the PWS 4.0 welcome page. But letís make our own, and check that ASP is enabled. Open a texteditor like Notepad, and cutín past the below code in to it:

<HTML>

<BODY>

<B>Welcome to my webpage hosted on PWS!</B><BR>

The time is now: <%=TIME%><BR>

</BODY>

</HTML>

Save the textfile in the INETPUB/WWWROOT/ directory on your machine and name it DEFAULT.ASP. Try accessing your website again (Type in the address again, and hit enter). The text: Welcome to my webpage hosted on PWS! should now show up. On the line under you should read "The time is now:" followed by the current time. If the time is showing up correctly you have a working ASP server running on your PC! (Run out and brag about it to all your colleagues/friends!).

No that wasnít so hard no was it?

No you can try making your own ASP pages and place them in the INETPUB/WWWROOT/ directory. If you donít specify a page name in the URL, then the page named default.asp will show up.

For more info on PWS 4.0 and troubleshooting tricks go to the START menu Programs/Microsoft Personal Web Server/Release Notes.

Good luck!

-Alexander Haneng

Email: webmaster@haneng.com

Website: haneng.com


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers