===============================================================

Using FTP for Web Site Maintenance

Module NA31i

* About this document... * Audience and Objectives *
 
===============================================================

This assignment consists of two tasks:

  1. Use a Visual FTP Client
  2. Use a Command Line FTP Client

When you're done, you'll submit a log file and a screenshot to your instructor.

Task 1: Use a Visual FTP Client

Step 1: Run FileZilla

    1. If you're using a WCC lab computer, check Windows Start menu under Programs, and see if there is an entry for FileZilla.
      • If so, run the program and proceed to Step 2.
    2. If you don't find FileZilla and are using a WCC lab computer, you can install the program via the Netware Applications Launcher (NAL). NAL runs when you log into a Novell Local Area Network account on a WCC computer. You must be logged in to an INP or CIS class account to see FileZilla on the NAL window. Double-click the FileZilla icon in the NAL window. When the process is comlete, FileZilla will not run immeditately, but will be installed on the Start...Programs menu.
    3. If you don't find FileZilla and are not logged in to the WCC local area network, you can get FileZilla as freeware from many software download sites, such as ZDnet.com. Click here to download, or if the link doesn't work, go to http://prdownloads.sourceforge.net/filezilla/FileZilla_2_2_8d_setup.exe?use_mirror=umn and search for another download site.

FileZilla is a Windows program. For Macintosh users, other alternatives are available, including Fugu for OS X (http://rsug.itd.umich.edu/software/fugu/) and MacSFTP from MacSSH.com (http://pro.wanadoo.fr/chombier/MacSFTP/SFTP_info.html). This module does not have specific directions for these programs, but the information here can be generalized to any software.

Step 2: Attach to your WCC Web site

Use the QuickConnect windows by filling them out as shown here:

(Substitute your own WCC stucent email user name for sstrong.)

For details on how to do this, see module W55h.

Step 3: Copy a file from a local disk to the server

    1. You'll need three files for this part of the exercise. You can get them by clicking on the links below and using your browser's File > SaveAs command to save them (temporarily) on your disk.
      1. class.htm
      2. sample.htm
      3. tim.gif
    2. Use FileZilla to copy the first file, class.htm to the root directory on your server space (that is, not inside any of your other directories).
      • The left-hand window in FileZilla shows files on your computer - it's labelled "Local".
      • The right-hand window shows files on the server - also known as the "Remote" computer.
      • Double-clicking the name of a directory opens that directory.
      • To transfer a file (or a group of selected files) from one computer to the other, right-click on the file or group name and select Upload or Download on the popup menu.
      • WCC servers - and most others - have a time limit. If you don't have FileZilla do anything for 300 seconds (5 minutes) the server may disconnect you. If that happens, click theQuickConnect button to re-connect.

Step 4: Create a folder for Web service (if you haven't already)

If you haven't already created one, you'll need a folder named public_html. This is the folder name used by many Web servers as the default for the directory within your server-space that is to be open to the public. It must be at the root of your server-space (not in another folder) and spelled exactly as shown above, including no capital letters.

To create a folder using FileZilla, right-click in or on the folder where you want the new folder. From the pop-up menu, select Create Directory. When the dialog box appears, type in the name of the new folder, and click OK.

Step 5: Create a Web folder for this class

The class directory should be inside your public_html directory. Keep the name simple: make the letters all lower-case. Also, do not put a space in the folder name. Example:

inp160

Step 6: Copy two files from your computer to your class Web directory

Move sample.htm and tim.gif to the class folder inside your public_html directory.

Step 7: Save the FileZilla log information

FileZilla keeps a log of your transactions with the server. This appears by default in the upper "Message Log" window of FileZilla, where you see text scrolling past while you're connected to a server. Here's what you need to do to save this log:

  1. Right-click in the Message Log window.
  2. From the pop-up menu, select Copy to Clipboard. This puts the entire contents in the computer's memory.
  3. Open any simple text editor, such as MS Notepad.
  4. Paste into the empty document window, and the entire log will be dumped there.
  5. Save the file as ftp.txt.

You'll need to turn this file in to your instructor as discussed below.

Task 2: Use a Command-Line FTP Client

Step 1: Get a file from a public FTP server

    1. Run command-line FTP in Windows
      1. To start the command-line FTP in Windows:
      2. From the Start menu, choose Run
      3. Type FTP and click OK
    2. Open the Oregon State University FTP server by typing the command:
      open ftp.oregonstate.edu
      Note: you will ALWAYS need to press the Enter or <Return> key when you're done typing, to let FTP know when you're ready.
    3. At the User... prompt, type in:
      anonymous
    4. Enter your email address as your password (but you won't see it). This is just to help the FTP server's administrators keep statistics - you won't get spam from them! Here is a screen shot:
      Logging in to ftp.oregonstate.edu
    5. Read the login screen information.
    6. Change directories on the server to get to the file you'll download. The command is:
      cd pub/apache
    7. Get a directory listing by typing the dir command. It should look like this:
      dir command in pub/php
      To understand the directory, see the explanation of Unix directories in the "Unix Survival Guide," module Q02cu, under "Interpreting a Full Listing".
    8. Change directories on your local computer so the file goes where you want it to be. Use the lcd command, which would look something like this, depending on where you want the downloaded file to be saved temporarily:
      lcd d:\
    9. Get the file using the FTP get command:
      get HEADER.html
      (Notice which letters are capitalized? It makes a difference!)
    10. Close the connection with the public server. Simply type:
      close

Step 2: Transfer the files to your WCC student server space

    1. Open a connection to the WCC student server. To log in to the WCC student server:
      1. Type 

      2. open stu.wccnet.edu
        (or use any of the other names for the student server)
      3. When asked for a user name, type in your email user id
      4. Type in your password when asked
      Figure 2: Logging in using DOS FTP
    2. Change directories on the server to your space for this class - for example:
      cd public_html/inp160
    3. Put the HEADER.htmlt file into your class Web directory:
      put HEADER.html

Step 3: Make a listing of all your directories using command line FTP

    1. To list all the files in all the directories, type 
      dir -aR
      Notice the capital R? These systems are case-sensitive, so be sure to type the commands exactly as shown here!
    2. Capture the result. Here's how, if you're using Windows FTP. (If you're using Unix you may use any method you prefer.)
      1. While the FTP window is active, hold the <Alt> key and press <PrintScreen | SysRq> to create a "screen shot" and put it on the clipboard.
      2. Open Windows Paint from Start > Programs > Accessories > Paint
        (or you may use any other graphics program you're familiar with).
      3. Use Paint's Edit > Paste to retrieve the screen shot from the clipboard. The result should look something like this:
Figure 3: FTP file listing

Submit Logs to your Instructor

 

You now have two logs to send to your instructor:

  1. The FileZilla log created when you made directories on your server space and copied files to them;
  2. The DOS or Unix FTP log of which you did a screenshot.

Use one of these two methods, depending on what kind of class you are in, or on what your instructor tell you to do:

Audience: This is for people who have a basic understanding of FTP (see NA30c) and have a basic level of facility with computers and the Internet (see NG20h).
Objectives: When you successfully complete this lesson, you will be able to...
===============================================================

About this document...
Module NA31i: This document is part of a modular instruction series in computer technology. For more information, see the overview or the list of modules in this series, NA: Network Applications. This document has been used in the following classes: INP 160/220

Author: Laurence J. Krieg
Institution: Internet Professional Department, Washtenaw Community College
History: Original: September 2000; This revision posted Monday, 31-Aug-2009 11:47:59 EDT
Copyright © 2004, Laurence J. Krieg, Washtenaw Community College
Instructors: You may point to this file in your Web-based materials.
Students: you may make a copy for your personal use.
All other uses: contact the author, Laurence J. Krieg for permission.
===============================================================