can't get my CGI script to work!
are some common reasons:
If the script
still can't be found, contact
us, providing us with the address of the script as just described
and we'll check into it.
- The server seems
to find the script file, but an "Internal Server Error"
appears. This means there is an error in the CGI code itself. Make
sure that all the references to local resources are correct:
- The first
line should read:
and not something else, such as:
any reference to the unix date command should read, "/bin/date";
and any reference to the unix sendmail command should read, "/bin/sendmail".
- If for some
reason you need to provide a local file system reference to files
in your account, the full path is: "/usr/local/etc/httpd/htdocs/yourdomaincom".
That is, if your domain name is "jasper.com", then the
full path is "/usr/local/etc/httpd/htdocs/jaspercom".
- You can make
relative references to other web pages. Just remember that they
are relative to the location of your CGI script. So if the script
is in the cgi-bin directory, and the web page you want to refer
to is in a subling directory, mydir, and is called "file2.htm",
then you'll need to refer to it as, "../mydir/file2.htm".
If there is still
an "Internal Server Error", use the tool on your control
panel, "Check Perl scripts for common errors". This
should help you pin down where the error is in your script.
NOTE! DO NOT use the Perl checker on C/C++ compiled
CGI scripts! The Perl checker has been known to corrupt compiled
scripts and render them useless.
If you still
can't figure it out, contact
us and describe your problem. For a reasonable fee, our staff
will be able to help you.