Have you ever encountered a maximum execution time of 30 seconds when uploading a high-volume file or updating a WordPress theme?
This error is caused by an improper server configuration, in this tutorial we will fix a maximum execution time of 30 seconds exceeded.
Reason for maximum execution time of 30 seconds exceeded
This problem occurs when the processing time for the php file request exceeds the value specify by the server administrator, which is define to prevent serious problems such as server downtime.
A specific timeout is set for each php process if runtime exceeds the setting limit.
Error-solving steps exceeded 30 seconds maximum execution time
There are several ways to fix a maximum execution time of 30 seconds,
the first is when you are the server administrator and have access to the server. In this case,
simply log in with your root server and look for the file.
Browse to your server php.ini then open it with a nano-like editor and increase the value of the following statement inside it.
The value of 300 is reasonable for php requests,
an increase is not recommend because it may cause DDoS attacks, so you should look for ways to prevent ddos attacks .
The next 2 ways are for those of you who do not have access to a server
and are simply using a web hosting service where you can easily and safely manage the htaccess file. use.
This is just a htaccess file. Open your site, located in the public_html path, and insert the following value to fix a maximum execution time of 30 seconds exceeded.
php_value max_execution_time 300
The second method fixes a maximum execution time of 30 seconds
If you don’t want to for any reason through the .htaccess file. Fix this issue You can fix this error with WP Maximum Execution Time Exceeded plugin just search for add-ons and then add this name and then install it, everything will be done automatically after the plugin is installed And there is no need for changes within this plugin, and the default value will be 300 seconds.
If for any reason you can’t fix a maximum execution time of 30 seconds exceeded by yourself,
you should contact your web host and ask them to fix the problem through the php.ini server
in the first way we trained.