Where do I place my CGI files and what paths should I use?
CGI files must be placed in the /var/www/cgi-bin/ (or /home/username/mainwebsite_cgi) directory .
Listed below are some of the paths you may be required to use in your scripts.
Perl: /usr/bin/perl
Sendmail: /usr/sbin/sendmail
CGI-BIN: /var/www/cgi-bin/
HTML: /var/www/html/