Script timed out before returning headers

cesarlwh

Well-Known Member
Sep 23, 2008
63
0
56
On some servers, all scripts afeter a x minutes stop and show Internal Server error 500 on the erro log show:

[Wed Apr 27 11:11:06 2011] [error] [client 201.89.14.92] Script timed out before returning headers: limpar-tickets.php

Why? The tiem out in php.ini is 3600, memory limit is 256M
 

cesarlwh

Well-Known Member
Sep 23, 2008
63
0
56
After the internal server erro, the process continue running... only on browser stop...
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
What is the TimeOut directive in your Apache configuration? You can see it in WHM > Apache Configuration > Global Configuration area. You might have this set too low and it's causing the error to occur.