Site icon Experience Wordpress Developer Online – Design Develop and Maintenance Support

How to increase PHP Time Limit for WordPress sites

You may receive a message such as “Maximum execution time of 30 seconds exceeded” or “Maximum execution time of 60 seconds exceeded”. This means that it is taking to longer for a process to complete and it is timing out. There are a number of ways to fix this error.

1 : Edit wp-config.php file:
Add the following to wp-config.php

set_time_limit(300);

2 : Edit file .htaccess:
Make sure you back up .htaccess before you edit it.
Add the following to .htaccess:

php_value max_execution_time 300

3:Editing php.ini file
Add the following to php.ini file:

max_execution_time = 300

300 in the above code samples mean 300 seconds. Feel free to change this to any appropriate number

Important Note: Increasing the PHP Time Limit is complex and the process that differs from hosts to hosts. So it is always better to get it done from our Experience WordPress Developer who knows it well. So just get in touch with our WordPress Developer Online hosting company and they will be happy to do it for you.

Exit mobile version