Add to Favourites Add to Favourites    Print this Article Print this Article

Script timed out before returning headers: script.php

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.

Was this answer helpful?

Also Read