#AskMe

Maximum execution time of 60 seconds exceeded [Drupal]

The error:

Maximum execution time of 60 seconds exceeded

When you execute some PHP script that spends longer time than the configuration of php.ini (which is sometimes is 30 or 60 seconds).

With drupal, you might need much in your local development so let’s change in php.ini at:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; 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=5000

The solution above would apply for PHP application but of course, your adaption to use less time execution in the application is very important for your production environment (hosting).