How do you increase the PHP time limit?

To protect web servers from abuse, a time limit is set for how long a PHP script can be executed. The actual time limit varies by hosting company, but usually the maximum execution time is set between 30 and 60 seconds.
When a script reaches the maximum execution time limit, it results in a maximum execution time exceeded error. There are a number of ways to resolve this error:

Method 1 - edit file wp-config.php

Add the code below to the file wp-config.php:

set_time_limit(300);	

Method 2 - edit file .htaccess

Add the code below to the file .htaccess:

php_value max_execution_time 300	

Method 3 - edit php.ini

Add the code below to php.ini:

max_execution_time = 300	

Need support?

Still experiencing problems or having questions? Please don't hesitate to contact us via woosa.com/support or by phone via +31 (0)320 - 33 77 77.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.