Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Oct 082010

Set the maximum execution time in PHP


The default maximum execution time in PHP is 30 seconds. If you want to change it, you need to edit the php.ini

vi /etc/php.ini

Locate and set

max_execution_time = 120;

Try it with the number you need.

Also, remember to restart web server such as Apache if needed.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>