Back to: Homepage > Homework & Projects

CSCI 217 Homework 4

Due in class (see homeworks page)--be there!!!

In this assignment you are to upload a single page to your student directory using FTP.

First create the following simple HTML page.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type" />
<!-- Replace Your Name with your name-->
  <title>Your Name</title>
  <style>h1
{
text-align: center
}
  </style>
</head>
<body>
<!-- Replace "your name" with your name-->
<h1>Welcome to the page of "your name".</h1>
</body>
</html>

Second, save the page with the file name index.html

Third, using the FTP instructions below, upload the file index.html to your directory public_html in your account on the department server: mathcs.citadel.edu. (If the directory public_html doesn't exist, we'll create it.)

FTP instructions.
These instructions assume you are using Filezilla FTP application to upload files to your account.

  1. Open Filezilla.
  2. Choose File --> Site Manager...
  3. Click the "New Site" button.
  4. Fill in a name for the site, and press Enter.
  5. hostname: macs.citadel.edu
    port: 22
    servertype: SFTP using SSH2
    logontype: Normal
  6. Enter your username and password, which is the same as your regular login for the account.
  7. Press the "Connect" button.
  8. If you connect successfully, you should see a list of directories and files in your account in the right hand file panel. If you don't connect, fix any problems you might have, then try again to connect.
  9. Double-click on the public_html folder to open it.
  10. Drag your index.html file into the file panel -- it should then transfer.
  11. To make your files visible on the web, you have to make sure that all of your webpages, your public_html directory, and your home directory have the correct read-write-execute permissions. You (the owner) should be able to read-write-execute everything. Everyone else in the world (any "group" or "public" users) should only be able to read everything. Note that folders usually require read and execute permissions.
    1. After your index.html file has downloaded, right-click, choose "file attributes" and verify that it has permissions 644.
    2. Go up one directory level (double-click the folder with two dots after it...), right-click on the public_html folder, and change the permissions to 755.
    3. Go up one directory level (double-click the folder with two dots after it...), right-click on your home folder, and change the permissions to 755.
  12. Verify that the file uploaded correctly, and the correct permissions set, by going to the student list from the course home page and clicking on your name.