INSTALLING YOUR OWN CGI SCRIPTS
Your cgi-bin directory
CGI can work with out a cgi-bin directory though security and administration are better with one.
Domain accts come automaticly with a cgi-bin directory. Directory accts can have one too for a one time charge of $10.00.
The URL path your cgi-bin directory is /hostnamecgi/
Example: the URL path for the Domain: www.foo.com is /foocgicom/
Example: the URL path for the Domain: foo.york.mi.us is /foocgiyorkmius/
Example: the URL path for a Directory acct: www.webaddesign.net/foo/ is /foocgi/
Common parameters to modify
When installing your own CGI scripts,
you will, most likely, need to modify some of the script's parameters.
In most scripts the parameters to modify will be located at the top of
the actual script file after any instructions or headers (most are clearly
marked and have concise instructions in the comments for modifying the
parameter, rule of thumb, though, READ THE INSTRUCTIONS before modifying
a script!)
Common paths to programs
Most CGI scripts need to know the location
of files to run properly (sometimes they even need to know where they are
located themselves!). Here are some common paths and tips about paths for
CGI scripts:
-
Absolute path refers to something's location
on the server itself. Standard absolute paths are:
-
'/www/htdocs/host_name/directory_Name/' (path to your web files)
Most times an absolute path will be asked
for when the script needs to find the directory of certain files (READ
THE DOCUMENTATION TO BE SURE!)
-
URL path refers to something's location
via the WWW. Standard URL paths are:
-
'http://www.example.com/' (path to your
web site/files)
Most times an absolute path will be asked
for to handle HTML directions and coding
-
A commonly requested path (also required
for Perl scripts) is the path to Perl, it is:
-
'/usr/bin/perl' -or- '/bin/perl'
-
Another commonly requested path is the
path to the sendmail program (for mail interfaces), it is:
-
Lastly, a commonly request path is to
the date program (for date and time tracking), it is:
If a path is requested and not covered
in the documentation for the script, feel free to e-mail us
and we will do the best we can to help you track down the path for your
script. (Be sure to READ the DOCUMENTATION FIRST!)
Tips for CGI Installations
-
Read the documentation for the script
you are trying to install!
-
If you don't find any documentation WITH
the script, check inside the script ITSELF, some scripts have the instructions
written in with the coding.
-
If you can't find any help, contact the
author of the script (most scripts have the author's information in the
header of the script)
-
Make sure you have properly set any permissions
for the file (most scripts require CHMOD 755, or read-execute permission
to properly execute on the server)
-
Make sure you have properly set all paths
and parameters!
-
Make sure (if it's a Perl script) you
transferred it as an ASCII file (Perl scripts are text files [ASCII] not
binary files like some compiled CGI scripts!)
Good Luck!
If you need help installing or writing
custom cgi scripts Webad Design can get you up and
running at a minimum cost.
Programmers receive $90.00 per hour with a minimum charge of 45.00 ($45.00
covers a majority of installation problems).
Copyright © 1998, 2009 Small World Tec All Rights Reserved.