December 2002
Intermediate to advanced
496 pages
9h 40m
English
Many of the errors that can occur with CGI programs produce a page displayed in the browser as shown in Figure 7.6. Pretty helpful, huh?

There could be many causes of this condition. The following are some common things to check.
The script is syntactically incorrect (try perl -c script.cgi).
The first line is not #!/usr/bin/perl.
There are incorrect file permissions (try chmod a+rx script.cgi or ls-l).
There are incorrect directory permissions (be sure the cgi-bin directory has 755 permissions).
You can also run the program from the command line:
$ ./error.cgi syntax error at ./error.cgi line ...Read now
Unlock full access