[clug-talk] Apache web server with cgi / perl scipts
Dean Mah
dean.mah at gmail.com
Tue Dec 29 07:27:25 PST 2009
On 2009-12-28, at 10:06 PM, Darcy Brodie <darcy at canasc.ca> wrote:
> From the script for the password program, when I run it from the
> browser, I get
> (2)No such file or directory: exec of '/var/www/cgi-bin/
> batchsetup.cgi' failed
> Premature end of script headers: batchsetup.cgi
It sounds like something is in the wrong place. Try running perl -c
batchsetup.cgi from the command line. Also make sure that the path to
perl in batchsetup.cgi is correct. The path to perl should be the very
first line, beware of blank lines and any space preceding #. Check
spelling of script name and pathname. Make sure Apache is
executing .pl and .cgi scripts. Convert the script to Unix if it was
created or transferred from a DOS box.
Dean
More information about the clug-talk
mailing list