If you have the permission to modify php.ini, please modify
max_execution_time = 30
to
max_execution_time = 300
The following snippet is copied from my php.ini.
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 300