Publishing Your Web Pages

CS 29

Mar. 20, 1997

Your Web pages will be ``published'' to the web server on unix1. There are two steps involved. The first step is creating the directory on unix1 where your HTML, GIF, and JPEG files will be stored. This step is only done once. The second step is transferring your files from your folder on your N: drive to the server. This is done each time you want to make changes to you pages.

Creating Your Web Directory

You only do this once.

  1. Telnet to unix1.psych .

  2. Type the command mkdir wwwdocs .

  3. Type the command chmod go+rx . wwwdocs .

  4. Type the command ls -ld . wwwdocs . You should see something similar to:
    [3] % ls -ld . wwwdocs
    drwxr-xr-x   6 kelliher student     1024 Mar 18 12:22 .
    drwxr-xr-x   2 kelliher student     1024 Mar 18 12:58 wwwdocs
    
    What matters here is the first string of the output, drwxr-xr-x. If that doesn't look right, call me over.

  5. You've now created your Web files directory on the Web server.

Publishing Your Files to Unix1

You need to follow these instructions each time you want to update your pages.

Before starting an editing session in Navigator, do the following:

  1. Open Navigator's Options menu, choose Editor Preferences and select the Publish tab.

  2. Make sure that Maintain Links and Keep Images with Document are both selected.

  3. Fill-in the Publish To location: ftp://unix1.psych/users/<YourUserName>/wwwdocs/ . For example, I set mine to ftp://unix1.psych/users/kelliher/wwwdocs/ .

  4. Fill-in Username with your username.

  5. For security reasons, don't fill-in your password.

  6. Press Ok.

Before publishing your HTML files, I want you to check something. Open each Web page you've created which has images in it. Right-click the mouse button on each image and choose Image Properties. If the Image Filename starts with file://N|/web/, your images will be ``broken'' on the server. Remove that ``junk'' at the beginning of each filename so that you're left with nothing but football.gif, for example.

Here's how to publish the files you've created so far:

  1. From the Navigator editor, click the Publish button on the Toolbar or open the File menu and choose Publish.

  2. If you want to publish all the pages in your web directory (most likely, you will want to do this), select Include Files. The highlighted files are the ones which will be published.

  3. Verify that the Upload Location is what you set it to be earlier.

  4. Verify your username.

  5. Press Ok. You will be asked to enter your password.

  6. If the files were successfully published, you'll be told how many files were published.

Your Internet URL

Your Internet URL will be:

http://unix1.psych.westminster.edu/~<YourUserName>/
(E.g., http://unix1.psych.westminster.edu/~kelliher/ .) On campus, you can leave out the .westminster.edu . Using the browser, test your pages by ``surfing'' to your URL.

Thomas P. Kelliher
Tue Mar 18 14:37:24 EST 1997
Tom Kelliher