ispCP - Board - Support
How to change script timeout settings? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: How to change script timeout settings? (/thread-3167.html)



How to change script timeout settings? - zabersoft - 04-30-2008 02:25 AM

Hi,

I thought I'd create a new thread as the other one was getting rather large and the headline no longer fit the question.
(http://www.isp-control.net/forum/curl-crashes-how-do-i-update-curl-t-3082.html)

Here's the problem:

- Server is killing a slow script (it's performing a lengthy curl request) after 30 seconds. All the end user sees is a HTTP 500 error - And there is no indication of what happened in the Apache error log.

All other possibilites have been investigated however - and I am fairly certain the script is simply timing out.

What I have tried:

php.ini
max_execution_time = 300

httpd.conf
Timeout 300

and setting
curl_setopt($curl_session, CURLOPT_CONNECTTIMEOUT, 300);
curl_setopt($curl_session, CURLOPT_TIMEOUT, 600);

I'm using the standard fastcgi and I have changed php ini for both php4 and php5 on the domain in question in /var/www/fcgi etc.

In addition to this I changed php.ini for mod_php just for safety sake.

Result:

Nothing I have done is working. The script still dies after 30 seconds. Also, as a side question I get this when I run phpinfo()

Configuration File (php.ini) Path /etc/php5/cgi
Loaded Configuration File /var/www/fcgi/xxxx.dk/php4/php.ini
Scan this dir for additional .ini files /etc/php5/cgi/conf.d

Why is it using php4 ini when php5 is loaded?


Thanks! Smile

- Zaber


RE: How to change script timeout settings? - zabersoft - 11-20-2008 02:38 AM

Ping! ... I'm still wondering about this one ...