Administrative Tasks


Creating a CGI Directory

You are not able to access the CGI directly, so you must register (if you have not done so already for another course) with OIT. This will enable you to access the CGI on campuscgi.princeton.edu. To get set up, see Princeton University Campus CGI Facility .


Getting Ready for COS 444, Assignment #4

#1) If you don't already have one, create a directory called auction as a sub-directory in your public_html directory on Arizona machines with the commands:

cd ~/public_html
mkdir auction
chmod 755 auction

#2) If you don't already have one, create a directory called auction under /usr/campuscgi/your_netid/ as follows:

cd /usr/campuscgi/your_netid
mkdir auction
chmod 755 auction

where your_netid is your OIT network ID (often called your username)

#3) Copy these files as follows:

After copying each file, you must set the permissions of the file with the command:
chmod ### filename

The appropriate permission "###" is listed after each file.


Into your ~/public_html/auction directory:
index.html 644
agree.html 644
register.html 644

Into your /usr/campuscgi/your_netid directory:
Register.cgi 711 (For technical reasons, this is called Register.cgi~, but download it as Register.cgi.)

Into your /usr/campuscgi/your_netid/auction directory:
Bid.cgi 711 (For technical reasons, this is called Bid.cgi~, but download it as Bid.cgi.)
list.html 644
ferris.html 644
ferris.jpg 644 
.htaccess 644

#4) Most of the files that you have just copied need only be slightly modified with simple changes that have already been marked for you. This means that you will need to skim through the code and replace the highlighted words with the description, i.e. replace occurrences of *YOUR NETID* with your OIT network id.

Changes such as these will need to be made in the files:
register.html
index.html
agree.html
ferris.html
.htaccess

#5) After above steps, you should now have a preliminary web site up and running just like the example. Open a web browser and view your auction pages at http://www.princeton.edu/~your_netid/auction and try it out. 


Back to Assignment Page