"Brett W. McCoy" wrote:
>
> On Tue, 8 May 2001, Chip Wiegand wrote:
>
> > - server log -
> > [error](2)No such file or directory. exec of /usr/local/apache/cgi-bin/
> > formparser.cgi failed
> > [error][192.168.1.8] Premature end of script headers: /usr/local/apache/
> > cgi-bin/formparser.cgi
> > - I see the file DOES exist as formparser.cgi in the directory path shown
> > in the errors.
> > - I run perl -c formparser.cgi and get the response Syntax OK
>
> It seems to me that the problem isn't that it can't find formparser.cgi,
> but there is some other file that formparser.cgi depends on to run that
> can't be found (the perl executable perhaps?). Checking the syntax isn't
> enough -- you need to see if the program will *run*. If it's executable,
> you should be able to at least do ./formparser.cgi and see where it's
> failing.
>
> -- Brett
> http://www.chapelperilous.net/btfwk/
> ------------------------------------------------------------------------
> Gibble, Gobble, we ACCEPT YOU ...
Chip,
Briet is right. But also do perl -d ./formpargser.cgi that
will put you in
debug state and should bring up a prompt. See below:
Loading DB routines from perl5db.pl version 1.0402
Emacs support available.
Enter h or `h h' for help.
main::(suggestion.cgi:6): $mailprog =
'/usr/lib/sendmail';
DB<1>
The DB<1> is a prompt and by type and N means to step thru the
code watch it execute.
That may also help trouble shoot the problem further.
--
************************************************************
*** Phillip B. Bruce ***
*** http://pbbruce.home.mindspring.com ***
*** [EMAIL PROTECTED] ***
*** ***
*** "Have you ever noticed? Anybody going slower than ***
*** you is an idiot, and anyone going faster than you ***
*** is a maniac." - George Carlin ***
************************************************************