All CGI scripts must be placed in your cgi-bin directory. The cgi-bin folder is located in your public_html directory (e.g. public_html/cgi-bin). If you want to run CGI script in a subdomain, put the script the subdomain's cgi-bin directory.