ITS Home at The University of West Georgia

Log On

Using "CGI" with your Website

Note: This feature is NOT compatible with the student web server!

CGI is the abbreviation of Common Gateway Interface. CGI programs are still a common way for Web servers to interact dynamically with users. Many HTML pages that contain forms, for example, use a CGI program to process the form's data once it's submitted.

At UWG, you can take advantage of a pre-installed CGI script known as Form Mail. Make forms and get results emailed to you with ease. An on-Line tutorial explains the tags required, and provides an example. A basic knowledge of HTML is required for setup.

Users are also free to use other CGI scripts by creating your own CGI-BIN. Instructions for creating and using your own CGI-BIN are listed below.

Before you attempt to install your own CGI scripts or use Form Mail, it's required that you have a web page already set up, or that you at least already have a public_html directory.

Creating your own cgi-bin directory

This tutorial will walk you through the process of creating your own cgi-bin at UWG.

  1. Log on via SSH to sun.westga.edu.
  2. Move to your public_html directory by typing: cd public_html.
  3. List all files and directories in the directory you're currently in by typing: ls -a.
  4. If cgi-bin is not listed, type: mkdir cgi-bin.
  5. Make sure file permissions for your cgi-bin directory are set correctly by typing: chmod 755 cgi-bin.


Congratulations: you have successfully created your own cgi-bin. Below are a few tips for using cgi at UWG.