Php | Fatal error: Maximum execution time of x seconds exceeded

Fatal error: Maximum execution time of 30 seconds exceeded

It’s  max_execution_time    30    30 (phpinfo)

You need to change in php.ini max_execution_time value.

sudo vi  /etc/php5/apache2/php.ini

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

max_execution_time = 300     ; Maximum execution time of each script, in seconds

sudo /etc/init.d/apache2 restart

Discussion Area - Leave a Comment