Setting Up CGI Scripts and Paths
CGI scripts written in Perl and other scripting languages often require that you
set the path to the interpreter (such as Perl) and may also require you to specify
your home directory directly. It is best that the file name extensions of
your scripts be .cgi although other extensions such as .pl and .py may
also work, depending on the scripting language you are using.
Use the path below if you need to specify the path to your Home Directory, replacing yourdomain.com with your actual domain name.
You will want to make sure the first line of your Perl script shows this:
If you would like to learn more about Active Web Hosting's Perl installation, try the Perl Test Script.
You will want to make sure the first line of your Python script shows this:
If you would like to see how Python works on our servers, try the Python Test Script.
You may also use Tk/TCL in your Python Scripts. If you would like to learn more about the Tk/TCL implementation, try the Tcl Test Script.
You will want to make sure the first line of your Ruby script shows this:
If you would like to see how Ruby works on our servers, try the Ruby Test Script.
You will want to make sure the first two lines of your script shows this:
#!/usr/bin/guile1.4 -s !#
The first line is the path to the interpreter and the flag(s) necessary to allow the script to run as a CGI script. The second line is necessary to actually run the script.
If you would like to see Guile/Scheme in action on our servers, try the Guile/Scheme Test Script.
Active Web Hosting has GD installed, which is a Graphics Development library. As a result, ImageMagick is also available. Below are the paths to the ImageMagick libraries. Please see the ImageMagick Command Line Tools Documentation for more information on using ImageMagick.
If you are having problems with the Active Web Hosting CGI server please email firstname.lastname@example.org.