Active Web Hosting Logo
FAQ Index Getting Started Your Account Domains Web Site & Hosting E-Mail
FTP CGI PHP Scripting MySQL Database Script Installation Legal Information

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.

CGI:

Use the path below if you need to specify the path to your Home Directory, replacing yourdomain.com with your actual domain name.

/var/www/sites/yourdomain.com

Perl:

You will want to make sure the first line of your Perl script shows this:

#! /usr/bin/perl

If you would like to learn more about Active Web Hosting's Perl installation, try the Perl Test Script.

Python:

You will want to make sure the first line of your Python script shows this:
#! /usr/bin/python

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.

Ruby:

You will want to make sure the first line of your Ruby script shows this:

#! /usr/bin/ruby

If you would like to see how Ruby works on our servers, try the Ruby Test Script.

Guile/Scheme:

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.

ImageMagick:

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.

/usr/bin/composite
/usr/bin/conjure
/usr/bin/convert
/usr/bin/identify
/usr/bin/mogrify
/usr/bin/montage
/usr/bin/animate
/usr/bin/display
/usr/bin/import

If you are having problems with the Active Web Hosting CGI server please email support@activewebhosting.com.



Home - Support - Management - About Us
... Active Web Hosting, 213 N Stephanie St G318, Henderson, NV 89074 ...
(702) 449-2337