
http://polaris.umuc.edu/~flazarus/
Installing cgi-bin access
In order to put a 'commercial' page up you will need access to a
cgi-bin directory for loading CGI scripts on our server. The
instructions for creating this directory are provided below:
- cd (Makes sure you are in your Home directory)
- mkdir www (Create a www directory as a child of your Home directory)
- cd www (Change to your www directory)
- mkdir cgi-bin (Create a cgi-bin directory as a child of your www directory)
- chmod 700 cgi-bin (Make sure group and world have no
access to the cgi-bin directory)
- Place your CGI scripts in the cgi-bin directory. (The permissions
on the scripts MUST be 700. For example: chmod 700 myscript.cgi)
- Use a URL in the following format to reference a CGI-SCRIPT:
http://nova.umuc.edu/cgi-bin/cgiwrap/username/script_name
For example, if Godzilla had a CGI script called "smash.cgi", he'd
reference it with the following URL:
http://nova.umuc.edu/cgi-bin/cgiwrap/godzilla/smash.cgi
The 'cgiwrap' above maybe replaced with 'cgiwrapd' to be run with full
debugging output. Also, one may use 'nph-cgiwrap' and 'nph-cgiwrapd' for
normal and debugging use of CGI's that output binary data (e.g. GIFs).
Return to Index