To gain access to the ability to use CGI support within your sever you have to first create a CGI alias. What a CGI alias is really doing is specifying a CGI file extension and a CGI handler for it to use. A great example of this is Perl. When using Perl you would specify that all .cgi files are to be treated as executable Perl scripts.
How to add a CGI alias