hermanG has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

I am a novice, newbie so bare with me.

I wrote a perl script, which runs with the command prompt, it produces the print output.
$> perl -w myFirstPL.pl works okay.

However when I use it when called from a browser I get an error in the error log. The error is the following:
No such file or directory: couldn't spawn child process: c:/apache/cgi-bin/myFirstPL.pl

Can anyone point me in the direction on where the error is?

Regards,

Herman

Replies are listed 'Best First'.
Re: Couldn't spawn child process
by idsfa (Vicar) on Oct 18, 2003 at 17:05 UTC

    Wild guess, you don't have a shebang line at the top of your perl script. Try this resource for a walkthrough in getting this working.

    A shebang line:

    #!C:\Perl\bin\perl.exe

    (And for anyone curious, yes, you do need a shebang for apache on windows, unless you configure Handlers to use the extension.)


    Remember, when you stare long into the abyss, you could have been home eating ice cream.
Re: Couldn't spawn child process
by Anonymous Monk on Oct 19, 2003 at 06:17 UTC