CGS4854 Extra Credit 2

Due Thursday, 9/12 (late 6 am, 9/13).

Log onto ocelot.aul.fiu.edu using Putty. If you are new to Putty, try this Putty tutorial. Putty is installed in all the lab computers.

This command will not change the permission on existing files, so it is imperative that you set this before you create any other files or directories.

Create a folder for all your web applications

  1. On ocelot or weasel, change the permission of your ~ directory to 701. This could also have a permission of 705, but 701 is a tiny bit more secure for your home directory.
  2. Create a folder named cgs4854 and change its permission to 705
  3. Create a subdirectory of cgs4854 and name it webapps. Change its permissions to 705.

Create Two Web Apps

Create two web applications in the webapps folder. Create the complete folder and file structure that was described in class: More information about creating web apps.

  1. ROOT - make sure this is upper case. Use the secure web.xml file. Change your-user-name to your ocelot user name throughout the file. You may follow a tutorial for creating a web application using winscp.
  2. manager - use the manager web.xml file. This web.xml file is only to be used for the manager web application. Change your-user-name to your ocelot user name throughout the file.

Test Your Webapp Folder

Test your webapp folder by running my script from
Test Webapps Folder

Notify Me

When this is compete, send me an e-mail message. I will set up your host on Tomcat, and will let you know what your URL is to access your web application folder. They will all be similar. For example, I have a web application folder at student01.cgs4854.cs.fiu.edu on port 8008. You will be given a similar URL. The only thing that will be different is the two-digit or three-digit student number in the URL. You will use two URLs to access your folder:

  1. http://studentXX.cgs4854.cs.fiu.edu:8008/ - this is the URL for the ROOT web app.
  2. http://studentXX.cgs4854.cs.fiu.edu:8008/manager/html - this is the URL to manage your web applications.
A few of you will have three-digit student numbers and will these URLs.
  1. http://studentXXX.cgs4854.cs.fiu.edu:8008/ - this is the URL for the ROOT web app.
  2. http://studentXXX.cgs4854.cs.fiu.edu:8008/manager/html - this is the URL to manage your web applications.

After you notify me, I will tell you what your two-digit or three-digit student number is for your URLs.

Submitting the Assignment

Once you have received the host number from me, the assignment is done. Nothing else needs to be submitted.