How to set up your own CGI scripts and/or programs:

  1. Create a directory called cgi-bin in your public_html  directory.
  2. From the terminal, do 'chmod o+rx ~/public_html/cgi-bin'
  3. Place any CGI programs in your cgi-bin directory.
  4. Call your cgi programs from your html files or directly via URL in one of the following formats:
    • /cgi-bin/cgiwrap/user/prog
    • /cgi-bin/cgiwrap/~user/prog
    • /cgi-bin/cgiwrap/~user/prog?FOO BAR BAR - where "FOO BAR BAR" is an argument passed to your script.

Scripts need to be chmod 755 (-rwxr-xr-x) in order to execute on the webserver.