-----Original Message----- From: "R. Joseph Newton" <[EMAIL PROTECTED]> To: Francesco del Vecchio <[EMAIL PROTECTED]> Date: Fri, 14 Mar 2003 13:45:08 -0800 Subject: Re: apache error
Francesco del Vecchio wrote: > I'm new to apache and linux. > > I'm trying to run the "Hello World" cgi that works perfectly from terminal but via > WebServer I > obtain this error: > > [Fri Mar 14 17:03:11 2003] [error] [client 127.0.0.1] Premature end of script > headers: hello.pl > > Do you have any idea about it? > > the source is the following > > #!/usr/bin/perl -w >The error message indicates that the problem occurs >right here. This looks good to >me, though. It is >pretty standard for perl scripts. Are you running on >Windows? >The ActiveState distribution ignores the >path information in the header line, but >Apache >servers may not. Is there a usr/bin/perl executable >on the system? Actually, if I remember correctly, you should use #!perl -w for your script to work. Hope that helps :) Etienne Rivard "Heaven knows we need never be ashamed of our tears, for they are rain upon the blinding dust of earth overlying our hard hearts" - C.Dickens (Great Expectations) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]