You should upload your CGI scripts to cgi-bin folder that is located under htdocs.
Files that are located in cgi-bin folder are recognized by web-server as CGI programs and run from the shell. To make CGI scripts run at your account you should do the following:
Copyright © Intermedia, Inc. 1995 - 2013. All Rights Reserved.
Users of this site agree to be bound by the Intermedia Service Agreement,
Service Level Agreement, and Acceptable Use Policies.