Customer Support Center


CGI Scripts Information

Contents:

General Information
More Technical Information
suexec
CGI Library
Server Side Includes
Trouble-shooting
Example Script
Links to Other Resources

General Information:

Our servers have the capability to run CGI scripts based on Perl, Unix SH, BASH, KSH, CSH, and C/C++ languages. Perl is a our language of choice for most applications as it is a world standard and is well suited to CGI. In addition, Perl code does not require manual compilations whereas C/C++ code must be compiled on our web servers prior to use.*

If you have a custom CGI script that you need to use, simply upload it to your personal
"cgibin". Here are some helpful tips to follow when installing Perl scripts:

Utilize any directory except "cgi-bin" for your own scripts.
We recommend placing them in your cgibin directory to help consolidate them.

Upload in ASCII transfer mode (and NOT BINARY mode)
Those using Fetch should use Text mode (not Raw Data)

The first line of each script should read: #! /usr/local/bin/perl
(please also see below)

One exception is if you are using PerlShop, it should read:

#! /usr/local/bin/perl5.003

Reference the script using "cgibin", NOT using "cgi-bin"

Use ".cgi" extensions for all scripts

If a script calls another file within your account, but the script does NOT
require a URL, you need to use the system path.

/web/guide/<domainname>/...
<- if file resides in root
/web/guide/<domainname>/cgibin/...
<- if file resides in cgibin

Substitute the path to the file beginning with your domain name. Your domain name is the
directory name of your account.

More Technical Information:

        Long Winded
        Really Long Winded

                    /usr/local/bin/perl5.001
                    /usr/local/bin/perl5.002
                    /usr/local/bin/perl5.003
                    /usr/local/bin/perl5.00307
                    /usr/local/bin/perl5.00404   =  /usr/local/bin/perl

*Some newer servers will not have these earlier versions available. In this case, use the default:

        /usr/local/bin/perl

suexec and permissions:

CGI Library:

Server Side Includes:

            http://www.apache.org/docs/mod/mod_include.html

Trouble-shooting:

            perl -w   file.cgi