CoE Home | computing | web |

Setup public_html for CGI scripting

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

  1. Read all about CGI and understand the security issues
  2. Create a directory called cgi-bin in your public_html directory.
  3. From the terminal, do 'chmod o+rx ~/public_html/cgi-bin'
  4. Place any CGI programs in your cgi-bin directory.
  5. Call your cgi programs from your html files in one of the following formats:
    • /cgi-bin/cgiwrap/user/prog
    • /cgi-bin/cgiwrap/~user/ prog
    • /cgi-bin/cgiwrap/~user/ prog?FOO BAR BAR

Article Information:

Date Created: Aug 22, 2003
Last Modified: Wed, Jul 25, 2007 1:58 PM
Views: 10665