title: Apache notice caught SIGTERM, shutting down php loop script
body: <p>I have a DV 4.0 from MediaTemple.</p>
  
  <p>I got a "500 internal server error" when I run a php file script that it need to loop a while Over 5000 time.</p>
  
  <p>The code seems to be because when I execute with a 200 time loop, the result is printed.</p>
  
  <p>my "max_input_time", "max_execution_time", "default_socket_timeout" and all others php parameters are not the problem (I guess, all is set at 9000 and memory_limit is -1)</p>
  
  <p>I got this:</p>
  
  <pre><code>[Sat Jan 11 19:25:22 2014] [notice] caught SIGTERM, shutting down
  </code></pre>
  
  <p>It's because apache restart. 
  My question is:
     how I can loop more than 5000 times in my script without crashing my systems ;-)</p>
  
  <p>Thank you</p>