Using FTP for Web Site
Maintenance
Module NA31i
* About this document... * Audience
and Objectives *
- For information about FileZilla, see module W55h.
- For information about
setting up and maintaining Web sites, see moduleW50c.
This assignment consists
of two tasks:
- Use a Visual
FTP Client
- 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
- 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.
- 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.
- 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
- 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.
- class.htm
- sample.htm
- tim.gif
- 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:
- Right-click in the Message
Log window.
- From the pop-up menu,
select Copy to Clipboard. This puts the entire contents in the computer's
memory.
- Open any simple text editor,
such as MS Notepad.
- Paste into the empty document
window, and the entire log will be dumped there.
- 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
- Run command-line FTP in Windows
- To start the command-line FTP in Windows:
- From the Start menu, choose Run
- Type FTP and click OK
- 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.
- At the User... prompt, type in:
anonymous
- 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:

- Read the login screen information.
- Change directories on the server to get to the file you'll download.
The command is:
cd pub/apache
- Get a directory listing by typing the dir command. It should
look like this:
To understand the directory, see the explanation of Unix directories in the
"Unix Survival Guide," module Q02cu,
under "Interpreting a Full Listing".
- 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:\
- Get the file using the FTP get command:
get HEADER.html
(Notice which letters are capitalized? It makes a difference!)
- Close the connection with the public server. Simply type:
close
Step 2: Transfer the files to your WCC student server space
- Open a connection to the WCC student server. To log in to the WCC student
server:
- Type
open stu.wccnet.edu
(or use any of the other names for the student server)
- When asked for a user name, type in your email user id
- Type in your password when asked
- Change directories on the server to your space for this class - for example:
cd public_html/inp160
- 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
- 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!
- Capture the result.
Here's how, if you're using Windows FTP. (If you're using Unix you may use
any method you prefer.)
- 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.
- Open Windows
Paint from Start
> Programs > Accessories > Paint
(or you may use any other graphics program you're familiar with).
- Use Paint's Edit
> Paste to retrieve the screen shot from the clipboard.
The result should look something like this:
Submit
Logs to your Instructor
|
You now have two logs
to send to your instructor:
- The FileZilla log created
when you made directories on your server space and copied files to them;
- 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:
- Classroom sections:
Print a copy of each; put your name, class, and section number on the
printouts and turn them in to the instructor.
- Distance Learning
sections: Save the files on your disk. Email them as attachments to
your instructor - for example, krieg@wccnet.edu

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...
-
Run FileZilla and log on to a remote server
-
Upload files to a remote server
-
Change file names and delete files on a remote server
-
Create and populate directories on a remote server
-
Retrieve a file from a remote server and move it to another directory on
the server.
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.