NEW VPS Plans

ServerTune provides -- managed and un-managed -- VPS hosting solutions at affordable prices to accommodate your personal and/or businesses needs.

Click here for more info ...

NEW VPS Plans

Click to hideClick to view
ServerTune

Browse by category

Search    |    Advanced search

HowTo: Tweak php for maximum execution time for scripts

Php by default places resource limits on all php scripts using 3 directives:

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

Printer Friendly
 
email to a friend
Email to friend
 
Add comment
Add comment
 
Views: 3268
 
Votes: 2
 
Comments: 0
 
Posted: 09 Jun, 2007 by: Customer Service S.
Updated: 08 Mar, 2011 by: Customer Service S.

Other articles in this Category

Article
Article
Article
Article
Article
Article
Article
Article
Article
RSS