You should have a directory listed as the cgi directory. have a look at your httpd.conf file it should have a line like
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
This is the only directory that you can run cgi scripts from try moving the script into there and check the permissions for execute permission.
Mark.