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.

  1. First, bring up a command line prompt. Click on your xterm shortcut icon on the desktop.
  2. type:
    goapache
  3. type:
    cd htdocs
  4. You are now in the root directory for all your static html files.
  5. Now use the following command to create or edit your static web page named "helloworld.html":
    emacs helloworld.html
  6. Enter the desired content for this file. See bottom of this page for sample text.
  7. Save the file, exit the editor.
  8. Enter the following URL into your browser
    http://localhost/helloworld.html
  9. 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