Script timed out before returning headers

mbsmt

Verified User
Joined
Jul 24, 2013
Messages
138
Location
Mashhad, Iran
Hi. Recently I changed my DA settings to use suPhp. My VPS has a dual-core CPU and 2GB of RAM, and running CentOS.
But during this time, I saw many delays and endless loading on processing my websites. When I see the logs, I always find this error:

Script timed out before returning headers

I searched the web and found this article. I did everything mentioned here. But the problem did not solve!
What do I have to do?
 
I have no information on what kind of a script times out and why. So you do this on your own risk. If you need a PHP script to parse and/or import much data, then you'd better run the script in a console.

I'm using suPHP since years with Timeout 300, and rare operations and scripts times out. Regular PHP scripts and CMS work fine with this. If I need to import a big XML file into my site I run an import script as:

Code:
php /path/to/script.php
 
I have no information on what kind of a script times out and why. So you do this on your own risk. If you need a PHP script to parse and/or import much data, then you'd better run the script in a console.

I'm using suPHP since years with Timeout 300, and rare operations and scripts times out. Regular PHP scripts and CMS work fine with this. If I need to import a big XML file into my site I run an import script as:

Code:
php /path/to/script.php

Thank you zEitEr for your replies. I'll increase time out to 300. I hope this change can solve my problem.
 
Back
Top