Updating WordPress on local server (max execution time)

for temporarily increasing your max execution time you can use ini_set() in your php page

ini_set('max_execution_time', 300); //300 seconds = 5 minutes

otherwise, you will need to do it in php.ini

max_execution_time = 30

Change the value (in seconds) or set to 0 for infinite time and restart Apache for the setting to take effect.