CGI Scripts
All CGI scripts must be placed in the directory public_html/cgi-bin.
Upload CGI scripts
When you upload through FTP, it is very important to "upload" script
files (e.g. .cgi and .pl) in ASCII mode. FTP clients will give
you the option to "upload" in ASCII, binary, or "auto." If "auto" is
selected, then make sure .cgi and .pl are considered ASCII files.
ATTENTION! Scripts will not be executed properly if they are uploaded in binary mode.
Paths
Path to perl: /usr/bin/perl
Path to sendmail: /usr/sbin/sendmail
CGI URL: http://www.yourdomain.com/cgi-bin/script.cgi
Subdomain CGI URL: http://subdomain.yourdomain.com/cgi-bin/script.cgi
Path to cgi-bin: /home/username/domains/domain.com/public_html/cgi-bin
Path to cgi-bin (subdomain): /home/username/domains/domain.com/public_html/subdomain/cgi-bin
Permissions
File permissions define who can read, write, and execute files
such as scripts. When the installation instructions ask you to
CHMOD a file, you are being asked to set file permissions. File
permissions can be modified by FTP clients or through
the control panel.
Some common permission levels for files are:
600 Makes a file inaccessible
644 Readable by everyone.
666 File can be read and modified by everyone.
755 File can be read and executed by everyone.
777 Writable and executable by everyone
Most CGI scripts need to be set to 755.
PHP scripts
PHP scripts are fully supported. PHP scripts may be placed and
executed in any folder within your public_html directory.
|