Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
howto tweak php for maximum execution time scripts

HowTo: Tweak php for maximum execution time for scripts
#1
Php by default places resource limits on all php scripts using 3 directives:

* max_execution_time : Maximum execution time of each script, in seconds (default 30 sec)
* max_input_time : Maximum amount of time each script may spend parsing request data (60 )
* memory_limit : Maximum amount of memory a script may consume (default 8MB)

A php script might timed out because of resource limits. All you need to do is setup a new resource limits so that script will get executed.
Edit Php.ini file /etc/php.ini (or /usr/lib/php.ini) file and adjust the resource limits:

max_execution_time = 600
max_input_time = 120
memory_limit = 64M

Then restart Apache web server :
/sbin/services httpd restart



Dinesh Kumar Mohanty
Ultra Web Solutions®
Bhubaneswar, Odisha, India.

UltratechHost - Your One Stop Offshore & Onshore Hosting Provider
Server Locations : Netherlands, Germany, Russia, Singapore & USA
Service Offers: Shared hosting | Reseller hosting | Cloud server | Dedicated server | VPS Hosting



Forum Jump:


Users browsing this thread: 1 Guest(s)