Increase Maximum execution time for wordpress website

While updating WordPress OR themes and plugins, sometimes code takes too much time to execute on the server you will face the below error,

Fatal error: Maximum execution time of xx seconds exceeded


You can increase this maximum execution time by following ways.

From wp-config.php file:

You have to open the wp-config.php file from your site root folder and need to paste below code.

set_time_limit(300);

From php.ini file:

If you can access the php.ini file then you can update the below code.

max_execution_time = 300;

From .htaccess file:

You can increase the execution time from .htaccess file as well, by default it is hidden you have to unhide it from your site root folder
and need to paste below code.

max_execution 300

 

Note: we have mentioned max execution time 300 just for example, you can set time as per your requirement.



  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL server- network related or instance-specific error happened while connection establishing

  Instance-specific or network related error happening while connecting to SQL server   Please...

OleDB connection string examples

OleDB connection string examples MS Access (Jet) "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA...

Do you allow custom COM components?

Do you allow custom COM components? We are not offering to install the custom COM components...

Error when accessing a WCF services

Error when accessing a WCF services Error when accessing a WCF service: "IIS specified...

How to cache static contents to client with UseMaxAge?

You can consider to caches static contents to the client with UseMaxAge if your website has too...

Powered by WHMCompleteSolution