> -----Original Message-----
> From: Lllllll Gabor [mailto:[EMAIL PROTECTED]
> Sent: Montag, 1. August 2005 14:43
> To: users@httpd.apache.org
> Subject: RE: [EMAIL PROTECTED] Sometimes getting 'Premature end 
> of script...'
> 
> 
> Thx for the advices, Owen!
> 
> I use MySQL, I read and write files in these scripts. User input
> is not really intresting. It comes at the same values sometimes.
> 
> I also noticed that this error comes when I use Php-MyAdmin!
> Different requests make these errors.
> (Anyway I looked at its code and the header is correct.
> I am sure there should not be errors like this in the MyAdmin 
> scripts.)

Oh yeah? I wouldn't bet on it...

> So I guess that must be a problem of misconfiguration.

Actually unlikely. A "premature end of script headers" is almost always due to 
a coding bug in the CGI. It's actually a good sign because it means apache is 
set up correctly to execute the script - it's just that the script is bugged.

> 
> Anyway if someone can answear to me the following things it can
> be useful:
> 1, Is it possible that MySQL 5.0.0a (alpha!) makes the problem?
>     If so why I get php header error?
> 2, Can SafeMode solve such problems? If I turn it on makes the
>     scripts more reliable? (Speed is not really needed in my case.)
> 3, Can u suggest some links about how to make the server more
>     reliable? Programs would be also nice.

Already told you this:

        > > - Look in the access log and find the request which corresponds to 
        > the error (use the timestamp to cross-reference). Try to 
        > reproduce the 
        > fauilure by re-issuing the same request (ie, same user parameters).
        > > - If you need more information, activate ScriptLogging - 
        > see docs for 
        > details

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> Gabor
> 
> Boyle Owen <[EMAIL PROTECTED]> írta:
> > > Can someone help me to solve this?
> > > 
> > > Usually when I browse my php scripts they are fine.
> > > But sometimes I get an 500 (internal server) error because
> > > of 'Premature end of script headers: php.exe'.
> > 
> > This means that the PHP code failed before it got to the 
> bit where it 
> prints the response header ("content-type: text/html\n\n"). 
> There is an 
> occasional problem with your code which is not properly trapped. Do 
> you access a DB?, write to a file? read from a file? do any 
> calculations 
> using user input? Any of these (and others) can cause a failure which 
> depends on user input. To debug:
> > 
> > - Look in the access log and find the request which corresponds to 
> the error (use the timestamp to cross-reference). Try to 
> reproduce the 
> fauilure by re-issuing the same request (ie, same user parameters).
> > - If you need more information, activate ScriptLogging - 
> see docs for 
> details
> > - Generally, don't trust user input - they can submit 
> anything (words 
> instead of numbers, numbers instead of words, even entire programs!)
> > 
> > > 
> > > I read the faq but found only a few things about this.
> > > 
> > > How can I make it to work always?
> > 
> > You have to fix the bug in the PHP code.
> > 
> > Rgds,
> > Owen Boyle
> > Disclaimer: Any disclaimer attached to this message may be ignored. 
> > 
> > > I use these:
> > >   Apache 2.0.48
> > >   Win XP
> > >   Php 4.3.5
> > > 
> > > I already increased the "ThreadsPerChild" setting. Now it is 
> > > better but
> > > not perfect.
> > > I also have the following settings in httpd.conf:
> > > ScriptAlias /php/ "d:/Apache2/php/"
> > > AddType application/x-httpd-php .php
> > > Action application/x-httpd-php "/php/php.exe"
> > > 
> > > I would be happy about any ideas or comments about this.
> > > 
> > > Thanks,
> > >   Gabor
> 
> 
> 
> ______________________________________________________________
> _________
> [freemail] extra 1GB-os postafiókkal, Önnek már van? 
http://freemail.hu



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to