Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Impossible to run a script.

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


shakin at ilco

May 14, 2008, 1:19 AM

Post #1 of 6 (714 views)
Permalink
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.


jens-petter.salvesen at experian-da

May 14, 2008, 1:33 AM

Post #2 of 6 (692 views)
Permalink
RE: Impossible to run a script. [In reply to]

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[at]ilco.ru]
Sent: 14. mai 2008 10:19
To: modperl[at]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.


shakin at ilco

May 14, 2008, 1:52 AM

Post #3 of 6 (691 views)
Permalink
Re: Impossible to run a script. [In reply to]

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" <jens-petter.salvesen[at]experian-da.no>
To: "Alexey Shakin" <shakin[at]ilco.ru>; <modperl[at]perl.apache.org>
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[at]ilco.ru]
Sent: 14. mai 2008 10:19
To: modperl[at]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.


torsten.foertsch at gmx

May 14, 2008, 2:15 AM

Post #4 of 6 (693 views)
Permalink
Re: Impossible to run a script. [In reply to]

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[at]gmx.net


shakin at ilco

May 14, 2008, 11:52 PM

Post #5 of 6 (660 views)
Permalink
Re: Impossible to run a script. [In reply to]

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[at]gmx.net


torsten.foertsch at gmx

May 15, 2008, 1:56 AM

Post #6 of 6 (667 views)
Permalink
Re: Impossible to run a script. [In reply to]

On Thu 15 May 2008, Alexey Shakin wrote:
> 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.

А как ты думаешь, мы должны знать? Вероятно какие-то предпосылки на одном
сервере даны, а на другом нет. Попробуй вызвать программу от коммандной
строки и посмотри, что она печатает на обоих машинах.

Дальше было бы неплохо знать, как программа вызывается, через modperl или как
обычная CGI-программа, если modperl, то mp1 или mp2, Windows или Linux
или ... итд. Короче, без более подробной информации мы не можем помочь.

So, please provide more detailed information about your setup. A
simple "premature end of script headers" is not enough.

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foertsch[at]gmx.net

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.