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.