Make Apache take longer before delivering HTTP 408 request timeout
My config: Apache 2.2.4 PHP 5.2.4 (fastCGI) Windows XP pro
I have a script that takes over a minute to execute, but after exactly 60 seconds (tested by Fiddler), the server always throws 408 timeouts. PHP max execution time is 120 seconds. After some reading, I tried to set the "Timeout 120" directive in my Apache config file, although I'm not sure if the directive is relevant to what I'm trying to do. No cubes. Is there a way to make apache wait longer before returning 408? (Yes, I restarted the webserver in between making configuration changes). Thanks a lot for any recommendations.
+2
source to share
2 answers
I'm not sure which of these lines solves the problem; probalby runtime - but it solved my 408 problems (added to settings.php):
$conf['drupal_http_request_fails'] = FALSE;
ini_set('max_execution_time', '600');
ini_set('memory_limit', '512M');
ini_set('upload_max_filesize', '128M');
ini_set('post_max_size', '128M');
ini_set('query_cache_size', '128M');
0
source to share