Script timed out before returning headers: script.php


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Apache Related Information » Php

Script timed out before returning headers: script.phpLast Modified: Aug 3, 2013, 11:39 am
If you're running suPhp and have a script that takes time to run, and get a 500 internal server error, and your logs say:

Script timed out before returning headers: script.php, refererer http://....

then edit:

/etc/httpd/conf/extra/httpd-default.conf

Find this line:

Timeout 60

and change it to a larger value, such as:

Timeout 300

and restart httpd.  You'll need to lock the file to prevent CustomBuild from changing it:

chattr +i /etc/httpd/conf/extra/httpd-default.conf

and you can use -i to unlock it.
 
Related Helpfiles
Locking files at the system level

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST