Perl CGI: The Happy Path: Creating a Static Web Page
Prepared by Bill Kilgallon,
Bill@KilgallonFamily.com
Unfortunately for you, this type of stuff is inordinately painfull
on Windows machines. Albert Einstien said "Make things as simple as
possible, but no simpler". Microsoft was not paying attention.
Fortunately, we have installed a Unix toolkit, so we can simplify
things a great deal.
- First, bring up a command line prompt. Click on your xterm
shortcut icon on the desktop.
- type:
goapache
- type:
cd htdocs
- You are now in the root directory for all your static html files.
- Now use the following command to create or edit your static web
page named "helloworld.html":
emacs helloworld.html
- Enter the desired content for this file. See bottom of this page
for sample text.
- Save the file, exit the editor.
- Enter the following URL into your browser
http://localhost/helloworld.html
- You should see the rendered html for the page you entered.
Congratulations! You have published a static web page!
The following would be decent sample text for your static HTML
file. Customize as you wish.
<HTML>
<HEAD>
<TITLE> The obligitory first web page</TITLE>
</HEAD>
<BODY>
<H1> Hello, World! </H1>
<HR>
Prepared by Bill Kilgallon,
<A HREF="mailto:Bill@KilgallonFamily.com"> Bill@KilgallonFamily.com </A>
<HR>
</BODY>
</HTML>
Return to Index