CPSCI 105: Explorations in Computer Science

Lab 3

January 30, 2007

Before doing anything on warp, we're going to learn some HTML and discuss some aspects of setting up a website on a Linux system with an Apache web server. At the end of lab today, review the topics listed below and make sure that you understand what they mean (or how to do them).

The Web

Basic HTML

Your Website

We'll go through the steps of setting up your website on warp together. Look over this list after class and make sure you know how to do each of these tasks, and why we did them.

  1. Set the permissions on your home directory so that anyone can execute it.
  2. Create a directory named public_html in your home directory.
  3. Set the permissions on this directory so that anyone can execute it.
  4. Create a file in this directory named index.html (the contents of this file are specified below).
  5. Set the permissions on this file so that anyone can read it.

Your First Homepage

Now we'll use emacs to use it to create the file index.html. (If you have trouble using emacs, re-read section 10 in the Basic UNIX Tutorial as soon as possible.)

Here's what we'll put in this file, which will be your homepage:

After we've done all that, we'll take a look at your new homepage using a web browser. Proofread your page in the browser (look for anything weird: missing text that you know you typed in, everything appearing in a large font, occasional extraneous greater-than or less-than symbols, your name not appearing in the title bar of the browser, etc.). If anything's incorrect, go back to your emacs window and look for what might cause the problem; if you can't figure it out, call me over for help.

Review

We'll have a quiz on Thursday. In addition to the points listed above for "The Web" and "Basic HTML", make sure you understand:

Note: The points listed above are specific to a Linux system with an Apache web server. They carry over, however, to other operating systems and other web servers. (You face these issues on any system; the solutions will be similar, but will differ in their details.)


[ Return to the CPSCI 105-01 homepage ]

Brian J. Rosmaita <contact me>
This page was last modified Wednesday, 24 January 2007 at 19:48 UTC.
Valid XHTML 1.0 ! Valid Cascading Style Sheets! This page is in AAA Conformance with the Web Content Accessibility Guidelines