Set Timeout Default Setting

liunx

Guest
Hello...<br /><br />I'm very happy with your cpanel and webspace, speed of servers,...<br /><br />But I have one question. Problem is when running some scripts that generate files and the script works long time. <br />Default settings for setTimeout are 30 seconds. I was wondering if it would be possible to set this limit a bit higher (60 secs)?<br /><br />Than you...<!--content-->
<img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the family, alf__ <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /><br /><br />Don't know if that's possible and would be answered quickly by submitting a <a href="https://ssl.totalchoicehosting.com/supportdesk" target="_blank">Help Desk</a> ticket.<br /><br />Moving for organization.<!--content-->
If you have the possibility to modify the php.ini -file. Do that and somewhere in there you can change the time-out-'length'<!--content-->
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->If you have the possibility to modify the php.ini -file. Do that and somewhere in there you can change the time-out-'length'<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Individual users cannot modify the php.ini file on shared servers.<!--content-->
<img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the Family alf <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br />and your new home!<br /><br />We really are like family here.<br />So if you need anything,<br />just ask your new family!<br />We love to help <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Alf,<br /><br />Put this in your .htaccess file;<br /><br />php_value max_execution_time 300<br /><br />It should give you a 300 second shot at getting your files uploaded.<!--content-->
great!<br /><br />IT WORKS!<br /><br />Thanks for your answer, it helped me a lot <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /><!--content-->
Glad to see you got it working.<br /><br />Welcome to the family Thumbs Up<!--content-->
Just a word of warning. The server settings are designed to prevent problems. If you set a longer timeout on the script and for some reason it goes into a loop and runs the whole time it could well cause server loads to climb and result in suspension of your site. Scripts go beserk sometimes.<!--content-->
I guess I should have added that if one modifies the defaults set by TCH and it causes bad things then it will have adverse effects on your account. We have set those defaults to protect against overloading the servers. With the script above if you "have" to use it then set it to the longest you need it for and if it is a one time thing then remove it after you are finished.<!--content-->
Okay, I'm trying to do this, and it's not working. Whenver I put that line in my .htaccess file, the whole file won't work. I'm assuming I just missed something and I'm doing it wrong. What am I possibly missing?<br /><br />Here's the content of my .htaccess file:<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->ErrorDocument 404 /404.html<br />php_value max_execution_time 300<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />-Ryan<!--content-->
Welcome to your extended family alf <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
<!--QuoteBegin-TCH-Rob+Aug 14 2004, 03:51 AM--><div class='quotetop'>QUOTE(TCH-Rob @ Aug 14 2004, 03:51 AM)</div><div class='quotemain'><!--QuoteEBegin-->Alf,<br /><br />Put this in your .htaccess file;<br /><br />php_value max_execution_time 300<br /><br />It should give you a 300 second shot at getting your files uploaded.<!--QuoteEnd--></div><!--QuoteEEnd--><br /> interesting...does that actually work...<br /><br />So we are allowed to change the php ini settings through the .htaccess file but not through ini_set function?<br /><br /><a href="http://us2.php.net/manual/en/function.ini-set.php" target="_blank">http://us2.php.net/manual/en/function.ini-set.php</a><!--content-->
<!--QuoteBegin-section31+Nov 10 2004, 06:17 AM--><div class='quotetop'>QUOTE(section31 @ Nov 10 2004, 06:17 AM)</div><div class='quotemain'><!--QuoteEBegin-->interesting...does that actually work...<br /><br />So we are allowed to change the php ini settings through the .htaccess file but not through ini_set function?<br /><br /><a href="http://us2.php.net/manual/en/function.ini-set.php" target="_blank">http://us2.php.net/manual/en/function.ini-set.php</a><!--QuoteEnd--></div><!--QuoteEEnd--><br /> It should work. I dont recomend you change any of the settings if you dont need to. Keep in mind that overriding the default settings may cause issues.<!--content-->
 
Back
Top