Canadian web hosting at its best.  DotHost is a leading web hosting company based in Toronto, Ontario - Canada

Chat with a live representative
Order Web Hosting Today!
 








homesupportknowledge baseprogramming help  
 



CGI Questions & Answers

  1. Overview
  2. Paths to Mail, Perl, Web & CGI


What is CGI?
CGI stands for "Common Gateway Interface," a fancy name meaning computer programs running on the web server that can be invoked from a www page at the browser. The "bin" part alludes to the binary executables that result from compiled or assembled programs. CGI scripts need to be saved in ASCII format and uploaded to your server's cgi-bin in ASCII or text format.

Where should my CGI/Perl Scripts be placed?
All Perl and CGI files should be uploaded to the "mainwebsite_cgi" directory (or /var/www/cgi-bin as the path). This will ensure that all scripts are properly executed.

back to the top


Below are the paths to the common server resources:

Perl:/usr/bin/perl
Sendmail:/usr/sbin/sendmail
Web Document Path:/var/www/html
CGI Document Path:/var/www/cgi-bin

back to the top