If you’re allowed to edit the PHP.inifile, update your max_execution_time in PHP.ini by modifying the below line:
max_execution_time = 300;
Otherwise try adding the script below to your .htaccess file:
php_value max_execution_time 300
If 300 seconds is not enough, try 400 or more.