PHP script timed out, or otherwise killed on Apache under CentOS (shared host)

Posted by MarkS on Server Fault See other posts from Server Fault or by MarkS
Published on 2012-08-30T22:18:03Z Indexed on 2012/08/31 3:40 UTC
Read the original article Hit count: 518

Filed under:
|
|

When trying to run a PHP script (CentOS, Apache, PHP 5.2), that may take a long time, it is apparently killed after 45 minutes.

PHP script is invoked from a web browser, and in certain situations, it will do a lot of work processing a POP3 mailbox and sending emails as part of an automated monitoring system.

Running the PHP script from the command line might be a better option, but I want to understand what is going on so far.

I ran a test script, and it appeared to finally give an internal server error (500?) after 45 minutes.

Where is this limit set and what is killing the script, if that is what is happening?

It's running on a shared host on Hostgator.com.

© Server Fault or respective owner

Related posts about apache2

Related posts about centos