On Tue, Feb 20, 2001 at 11:20:11AM -0500, John May wrote:
> I am using Apache 1.3.17 (compiled from source) on Debian Woody.  When I
> try to exec some CGI scripts, by typeing in the URL, ex.
> http://www.cybergeek.org/cgi-bin/newspro/newspro.cgi, I get an an
> Internal Server Error with the following error in Apache's error log:
> 
> [Tue Feb 20 08:55:23 2001] [error] (2)No such file or directory: exec of
> /home/www/cgi-bin/newspro/newspro.cgi failed
> 
> [Tue Feb 20 08:55:23 2001] [error] [client (ip address)] Premature end
> of script headers: /home/www/cgi-bin/newspro/newspro.cgi
> 
> I have made sure that the path to Perl is correct in the scripts and
> that the correct permissions are set.  I also made sure that my
> ScripAlias directory was correct.  I can run other scripts, like the
> test-cgi script and the printenv script, but not any others.  Also if I
> add a (-w) to the Perl statement at the begginning of the script, i.e.
> #!/usr/bin/perl -w  then the script will run, but a whole lot of
> debugging information fills up the error logs.  I have scoured the
> maillist archives for any solution, but came up empty handed.  Any help
> would be appreciated.

Can you run the script normally outside of apache -- it may not do
what you want it to do, then, but does it start properly?

It might also be useful if you would post the info you get in the error
log when using "-w".

Erdmut


-- 
Erdmut Pfeifer
science+computing gmbh

-- Bugs come in through open windows. Keep Windows shut! --

Reply via email to