Documentation

How to raise maximum execution time in WordPress?

One of the server security is setting a time limit for PHP processes so-called Maximum Execution Time. This limit allows canceling the PHP process after reaching the assumed time by the process. Unfortunately, in the case of complicated processes triggered by some WordPress plugins or even software updates, it turns out that the limits are set too low and the processes are not finished.

If in dashboard or debug.log file you will see the message, after launching an update or other processes, like this one:
Fatal error: Maximum execution time of 5 seconds exceeded in
Don't panic :) The problem can be frustrating, especially for less experienced WordPress users - but it is very easy to repair. Below is a way to deal with it.

.htaccess changing#

1. Connect to your FTP server using FileZilla, Total Commander, or another FTP client.
You can find the .htaccess file in the root directory of your site. This is the same directory where wp-content and wp-admin folders are located.
2. After opening the file, add the following line to it:
php_value max_execution_time 300
3. Save the file and make sure that the change has been made.

The code above sets the value of the maximum execution time of the PHP process for 300 seconds. If the error still appears, try to simply increase the value, e.g. up to 600.

There is no .htaccess in any directory#

If you have not found the .htaccess file, it may not have been generated by your website yet.
To create a file and the change described above, go to your Settings > Permalinks in your WordPress, then click Save Changes
Htaccessen
After saving the settings WordPress will create a .htaccess, which you can modify according to the above instructions.

Not the solution you are looking for?

Please check other articles or open a support ticket.

Cookies preferences

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Necessary

Necessary
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.