Management Information Systems

Web Publication Help

 

This document is intended to serve as a guide for students to publish their web pages once the necessary HTML files have been created. If you have any questions, please call computer help at 268-HELP.

You will create all your HTML files on a local disk, which could be a subdirectory in your personal PC or a diskette. Once you are finished creating your Web pages, you need to transfer all the necessary files to the Andrew File System using FTP. But, before you can do that, you need to establish a subdirectory for your Web files. This will keep all your Web files in one directory so that they don't get confused with some of your other files. You will also need to establish access permissions to this subdirectory so that others can browse your page.

I have created the following guide to help you publish your Web files using guides from Computer Help. If have problems following the guides below or if you prefer to follow their guides directly you can call them at 268-HELP or visit their Web sites:

http://www.contrib.andrew.cmu.edu/usr/moose/usrpage.html

http://www.cmu.edu/computing/documentation/webpublish/

 

Steps to publish your Web Page:

  1. Create a subdirectory called "www" in your Andrew account. You can do this using FTP or Telnet. Run Telnet, select "Connect" and enter "unix.andrew.cmu.edu" for the host. Then enter your Andrew user ID <Enter> to login and then your password <Enter> when prompted. Then, ensure you are at the top directory by typing:
  2. cd ~ <Enter>

    Then, create the www directory by typing

    mkdir www <Enter>

    Note: be aware the Unix is case sensitive. So, please use lower case for the w's and be consistent in using lower case when you type URL's.

  3. Now you need to give access permissions to this directory so that other people can see your page. You do this by giving "read-only" access to anyone. This will not allow others to modify your page, just to read it. Only you can modify your page. To do this, enter the following:
  4. fs sa ~/www system:anyuser rl

  5. You should now have a "www" directory in your Andrew account with read-only access for other users. Once you have your Web files ready, you can transfer them to this directory using FTP. To do this, run FTP and transfer your Web files from the local disk to the following Andrew directory:
  6. /afs/andrew/usr/{user id}/www

    Just replace {user id} with your actual User ID.

  7. Once you have placed your files in this directory you will be able to browse any HTML file in that directory simply by typing the file's URL. Files stored in that directory can be accessed using the following URL form:

http://www.contrib.andrew.cmu.edu/usr/{user id}/{HTML file}

Alternately, you may shorten this to

http://www.contrib.andrew.cmu.edu/~{user id}/{HTML file}

Just replace {user id} with your actual User ID and {HTML file}the actual page you want to browse.

Note: the server considers the name index.html to be the default page. So, you may want to name your top home page "index.html". If you do this, you will not need to specify the HTML file name in the URL. All you will need to do is type:

http://www.contrib.andrew.cmu.edu/usr/{user id, or

http://www.contrib.andrew.cmu.edu/~{user id}