Impossible to run a script.
Impossible to run a script.
am 14.05.2008 10:19:10 von Alexey Shakin
Hello ALL!
SUBJ!
In answer to any attempt to address
a script from the cgi-bin directory I am
getting the following message
The server encountered an internal error and was unable to complete your
request.
Error message:
Premature end of script headers: script.pl
I have checked all possible causes that I could think about, namely:
the ExecCGI param is on for the directory,
there is an proper alias for the directory,
the script works in itself (right path to the perl in the header),
on another server the script runs (from the same directory).
What other possibilities may there be?
Thanks for help.
RE: Impossible to run a script.
am 14.05.2008 10:33:03 von Jens Petter Salvesen
Hello, Alexey
The first thing to check is your error_log. It contains all output to
stderr from your script. "Premature end of script headers" usually means
the script terminated because of some error or was unable to start in
the first place.
Best regards,
Jens-Petter Salvesen
-----Original Message-----
From: Alexey Shakin [mailto:shakin@ilco.ru]=20
Sent: 14. mai 2008 10:19
To: modperl@perl.apache.org
Subject: Impossible to run a script.
Hello ALL!
SUBJ!
In answer to any attempt to address
a script from the cgi-bin directory I am
getting the following message
The server encountered an internal error and was unable to complete your
request.
Error message:
Premature end of script headers: script.pl
I have checked all possible causes that I could think about, namely:
the ExecCGI param is on for the directory,
there is an proper alias for the directory,
the script works in itself (right path to the perl in the header),
on another server the script runs (from the same directory).
What other possibilities may there be?
Thanks for help.
Re: Impossible to run a script.
am 14.05.2008 10:52:04 von Alexey Shakin
The error_log entry is an exact match of the string quoted by you,
added with date, time and client address information.
----- Original Message -----
From: "Jens Petter Salvesen"
To: "Alexey Shakin" ;
Sent: Wednesday, May 14, 2008 1:33 PM
Subject: RE: Impossible to run a script.
Hello, Alexey
The first thing to check is your error_log. It contains all output to
stderr from your script. "Premature end of script headers" usually means
the script terminated because of some error or was unable to start in
the first place.
Best regards,
Jens-Petter Salvesen
-----Original Message-----
From: Alexey Shakin [mailto:shakin@ilco.ru]
Sent: 14. mai 2008 10:19
To: modperl@perl.apache.org
Subject: Impossible to run a script.
Hello ALL!
SUBJ!
In answer to any attempt to address
a script from the cgi-bin directory I am
getting the following message
The server encountered an internal error and was unable to complete your
request.
Error message:
Premature end of script headers: script.pl
I have checked all possible causes that I could think about, namely:
the ExecCGI param is on for the directory,
there is an proper alias for the directory,
the script works in itself (right path to the perl in the header),
on another server the script runs (from the same directory).
What other possibilities may there be?
Thanks for help.
Re: Impossible to run a script.
am 14.05.2008 11:15:11 von torsten.foertsch
On Wed 14 May 2008, Jens Petter Salvesen wrote:
> "Premature end of script headers" usually means
> the script terminated because of some error or was unable to start in
> the first place.
No, it means that your script has failed to send a proper block of http
headers to the server. For example if the script sends the pure HTML page
you'll also see that message. See http://hoohoo.ncsa.uiuc.edu/cgi/out.html
Torsten
--
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net
Re: Impossible to run a script.
am 15.05.2008 08:52:09 von Alexey Shakin
The question is - why does the very same script run
on one server and does not on another. The both
servers is the same distribution kit.
> On Wed 14 May 2008, Jens Petter Salvesen wrote:
> > "Premature end of script headers" usually means
> > the script terminated because of some error or was unable to start in
> > the first place.
>
> No, it means that your script has failed to send a proper block of http
> headers to the server. For example if the script sends the pure HTML page
> you'll also see that message. See http://hoohoo.ncsa.uiuc.edu/cgi/out.html
>
> Torsten
>
> --
> Need professional mod_perl support?
> Just hire me: torsten.foertsch@gmx.net
Re: Impossible to run a script.
am 15.05.2008 10:56:54 von torsten.foertsch
T24gVGh1IDE1IE1heSAyMDA4LCBBbGV4ZXkgU2hha2luIHdyb3RlOgo+IFRo ZSBxdWVzdGlvbiBp
cyAtIHdoeSBkb2VzIHRoZSB2ZXJ5IHNhbWUgc2NyaXB0IHJ1bgo+IG9uIG9u ZSBzZXJ2ZXIgYW5k
IGRvZXMgbm90IG9uIGFub3RoZXIuIFRoZSBib3RoCj4gc2VydmVycyBpcyB0 aGUgc2FtZSBkaXN0
cmlidXRpb24ga2l0LgoK0JAg0LrQsNC6INGC0Ysg0LTRg9C80LDQtdGI0Yws INC80Ysg0LTQvtC7
0LbQvdGLINC30L3QsNGC0Yw/INCS0LXRgNC+0Y/RgtC90L4g0LrQsNC60LjQ tS3Rgt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