- If you do not have a public.html directory, create one:
mkdir public.html
- You must then make the directory world-readable and
world-executable:
chmod o+rx public.html
- If you want to use cgi2.cs.rpi.edu, you must create a cgi-bin
directory:
mkdir public.html/cgi-bin
- And make this directory world-readable and world-executable as well:
chmod o+rx public.html/cgi-bin
- Next, put your files in your public.html directory (or the cgi-bin
subdirectory, if you're using cgi2.cs)
- Make each of your HTML files world-readable, and each of your CGI
files user-executable:
chmod o+r public.html/*.html
chmod u+x public.html/*.cgi
For a review of how to see what the permissions are for a given file,
consult the manpage for ls, or review the Intro to Unix slides on the
main course webpage
- Finally, be sure that your she-bang is correct on all CGI
scripts. It must read
#!/usr/local/bin/perl
and it must be
the first line of the file (before any whitespace or comments). Don't
forget that first slash, immediately after the #!
If you are 100% sure you've followed all of these directions
correctly, and still "nothing's working!", then feel free to