tags:

views:

214

answers:

3

Running a mysql intensive php script that is failing. Apache log reports this:

[Wed Jan 13 00:20:10 2010] [error] [client xxx.xx.xxx.xxxx] (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed, referer: http://domain.com/script.php

Tried putting set_time_limit(0) at the top.

Also tried set_time_limit(0)

Neither fixed the timeout.

Is there some specific timeout limit I can up in http.conf (or elsewhere) to prevent this?

A: 

There is a timeout in the php.ini as well.

Jeff Beck
+2  A: 

There's also the php max_execution_time directive. Note that the web server's timeout settings may also be limiting your script:

Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.

Actually, this looks like an Apache error, it also effects Python scripts. Have you tried googling it yet?

pygorex1
Did try googling it - could not find a clear answer (that worked).
Susan
A: 

I played around with these resource limits in php.ini to correct the problem.

max_execution_time = 300
max_input_time = 300
memory_limit = -1
Susan
Scratch that, it's still doing it.
Susan