search ]

Increase Maximum Execution Time in WordPress

You may have encountered the message “Maximum execution time of 30 seconds exceeded“. This message means the operation you are performing takes longer to complete than allowed. There are several ways to handle this:

1. Edit wp-config.php

Add the following code to wp-config.php:

set_time_limit(200);

2. Edit the .htaccess file

Make sure you back up this file first and add the following code:

php_value max_execution_time 200

3. Edit the php.ini file

Add the following line to your php.ini file:

max_execution_time = 200

If this does not work, try consulting with your hosting provider…

For more tips and options you can perform via the wp-config.php file, take a look at the post Optimizing WordPress configuration with wp-config.php.

Join the Discussion
0 Comments  ]

Leave a Comment

To add code, use the buttons below. For instance, click the PHP button to insert PHP code within the shortcode. If you notice any typos, please let us know!

Savvy WordPress Development official logo