Extending PHP Apache timeout

  • clifffrog
  • Novice
  • Novice
  • No Avatar
  • Joined: Jan 12, 2004
  • Posts: 24
  • Status: Offline

Post January 16th, 2004, 6:29 pm

Hi,

I'm currently playing with PHP using it to do more complex stuff, but am having trouble configuring the Apache server so that it doesn't timeout after 30 seconds.

I've got Apache 2.0 installed as a localhost on my machine (i.e., I access it with http://localhost).

From what I understand, I need to set the variables using:

RLimitCPU seconds|max [seconds|max]

but _where_ do I actually put this line? In the .htaccess file in the local directory I'm running from? That doesn't seem to work!

Any help would be much appreciated!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 16th, 2004, 6:29 pm

  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post January 16th, 2004, 9:27 pm

Try setting max_execution_time in the php.ini file.

If you don't have access to the php.ini file on a remote server I think you can also call the function set_time_limit(int seconds).
Free Programming Resources
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Joined: Jan 14, 2004
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada
  • Status: Offline

Post January 17th, 2004, 8:45 pm

What are you doing that takes PHP 30+ seconds to think about?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 296 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.