Re: ISE 500 due to overloading / time-out



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?



.



Relevant Pages

  • RE: Problem with use strict;
    ... > "Internal Server Error ... Typically means your script has an error and won't compile, ... Apache error log is, now's the time to find it. ...
    (perl.beginners)
  • Re: How to make Apache (2.2.4) less greedy, or Sendmail less polite? [semi-solved]
    ... Firstly, I took some measures to figure out where the issues came from, and using Apache's "server-status" handler, I noticed the script that caused Apache to choke up, was a PHP script that shows entries of photographic events that I organise from time to time. ... I then wondered why, as this script never caused trouble before, and while checking the server status I did already notice that the "store comments" script was called very often. ... For now, I have configured the webserver so, that ANY call to this "store comments" script is forbidden, and will simply generate a standard server error, while I am looking into a better solution when posting a comment). ... the machines that were used for this, and I will report them to the proper anti spam authorities, such that they will be blacklisted Internet wide. ...
    (freebsd-questions)
  • running CGI from a subdomain
    ... for instance, if I want to run a script for www.subdomain.domain.com, ... Internal Server Error ... More information about this error may be available in the server error ... an ErrorDocument to handle the request. ...
    (comp.infosystems.www.authoring.cgi)
  • Re: ISE 500 due to overloading / time-out
    ... At the end of the script, it creates a Internal Server Error ... Your server error log ... > Hi Dave, ...
    (comp.lang.php)
  • Re: ISE 500 due to overloading / time-out
    ... > Hi Folk ... > the end of the script, it creates a Internal Server Error 500 - sometimes ... The whole script runs though - it seems (error occurs somewhere ...
    (comp.lang.php)