“End of script output before headers” in Apache + PHP

The issue was that the request was timing out before the script completed, due to a long-running database query.

So that generic End of script output before headers error can be caused by server timeouts as well as file permissions issues.

Leave a Comment