Why don't my CGI scripts work?
The largest problem by far is that a Perl file is not uploaded
as an ASCII text file but rather as a binary file which prevents
the correct conversion of the Line Feeds. Be sure to upload your
scripts as ASCII text!
Other Common problems:
1) If the scripts are not world executable, type chmod o+x *.cgi
in the directory your scripts are in.
2) If scripts are named .pl, Rename them .cgi
3) If the script writes to a file that isn't world writeable or
doesn't exist:
- create the file (e.g. touch data.txt)
- set permissions (e.g. chmod o+w data.txt)
4) It may be a problem when you adjusted a common script to your
needs you forgot to add a semicolon after every line or added characters
like ", ', . etc. Those chars all need an escape (\) char before
them.
I did all the above and my scripts still don't work!
You'll need to telnet in and debug them.
From the Telnet prompt, type perl -w yourscript.cgi and see what
you get!
|