Extending PHP Apache timeout

  • clifffrog
  • Novice
  • Novice
  • clifffrog
  • Posts: 24

Post 3+ Months Ago


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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

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).
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

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 138 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

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.