EPM Timeout recreating templates

We have about 600 GXP-2130 phones using one template. When I make some changes to the template basefile I’m unable to regenerate the templates for all the phones since the PHP times out after 30 seconds.
Where do I change this timeout?

The actual error is Whioops\Exception\ErrorException Maximum execution time of 30 seconds exceeded.
File:/drbd/httpd/www/html/admin/modules/endpoint/functions.inc/functions_grandstream.php:156

Check /etc/php.ini for max execution time.

Spot one:-) I assumed incorrectly the timeout was set in the module somewhere. Changing the value in php.ini to 60 seconds fixes the problem.