Re: ISE 500 due to overloading / time-out



windandwaves (winandwaves@xxxxxxxxxxxx) decided we needed to hear...
> Dave wrote:
> > windandwaves (winandwaves@xxxxxxxxxxxx) decided we needed to hear...
> >> Hi Folk
> >>
> >> I have a long script that sends a bunch of emails (between 5 and
> >> 20). At the end of the script, it creates a Internal Server Error
> >> 500 - sometimes only. The more emails I send , the more likely it
> >> seems that I get the error. The whole script runs though - it
> >> seems (error occurs somewhere near or at the end).
> >>
> >> I imagine it either to be server overload OR a time-out (it takes
> >> about 30 seconds for the script to run (which I think relates the
> >> email send part...)
> >>
> >> Any hints? I am a little lost.
> >
> > Sounds likely that this is a script timeout. Your server error log
> > would confirm that for you. Even so you might find this page
> > useful - http://www.php.net/set_time_limit
>
> Hi Dave,
>
> Thank you for your answer. I tried it, but it unfortunately it did not
> solve the problem.
>
> This is what I added to my script:
>
> ini_set('max_execution_time', 120);
> set_time_limit(120);
>
> But still ISE500....
>
> I even changed the same parameters on the php.ini file, but still no luck.
>
> What do else can it be, or how can i find out?

I was betting on timeout since PHP's default is 30 seconds and thats
the time you mentioned it usually failed at, but if its *not* that
then I'm afraid I couldn't really guess at anything else.

In order to find out more you should first look at the server error
log (for apache on unix the file is usually something like
/var/log/httpd/error_log). Have you also tried increasing the
level of error reporting (see http://www.php.net/error-reporting)

HTH
--
Dave <dave@xxxxxxxxxxxxxxxxx>
(Remove REMOVE for email address)
.



Relevant Pages

  • Re: ISE 500 due to overloading / time-out
    ... >> I have a long script that sends a bunch of emails (between 5 and ... At the end of the script, it creates a Internal Server Error ... Hi Dave, ...
    (comp.lang.php)
  • Re: OneCare Virus definitions
    ... | Dave, plase! ... however I have to write the script. ... if the "customer" is a company or corporation the product should not ... it would be professional malpractice NOT to point out these facts ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Commonly Trojaned Linux services
    ... >> the script was to have a very fast, ... > Dave Wreski ... There is no administration of reports unless there is a problem. ... w33n3r: Yeah. ...
    (comp.os.linux.security)
  • Re: Rewritten play
    ... playwright is the soul of the theatre and the writer's script is at the heart of what we do. ... To alter it to fit one's own concept is to be a traitor to the theatre. ... Dave: So, you'd be willing to give up evil for Lisa? ... Johnny Johnson: Teaching English as a second language. ...
    (rec.arts.theatre.plays)
  • Re: Check directory permissions
    ... The script is producing a few hundred little text files, ... while other suggested using GetAtrr(). ... only seems to want to tell me that the specified directory is in fact ... Dave Peterson- Hide quoted text - ...
    (microsoft.public.excel.programming)