I've being trying to increase the max_execution_time php variable for an EE site (EE 2.6.1, FastCGI on php 5.4.44, running on SiteGround's Managed Cloud hosting with cPanel) but it's not updating the local value, currently only 300. Only the global value changes to 800.

This is what I see in EE's CP > Tools > Utilities > PHP Info


Whereas another php info file that sits in the webroot for the site shows this

PHP Info in webroot directory

Using cPanel's PHP Variable Manager, I've increased the memory_limit and max_input_vars without issue: both the local and global values change.

My host's support say that it's an EE "thing". But I've never come across anything of the sort. How do I get the max_execution_time already set as a global value to be honoured by EE?

Any pointers?

2 Answers 2


Roll this:


into your main index.php file, and set your max_execution_time via that method. It only sets it for that script execution, so you may have to put it in your system index.php file as well, depending on your use case.

This really isn't an EE thing (unless someone manually set it like how I'm suggesting you fix it), so your host is being incompetent.

ini_set('max_execution_time', '800');
  • Thanks, but this made no difference.
    – Seb
    Commented Aug 25, 2015 at 16:07

Apparently to resolve this you have to hack the /system/expressionengine/libraries/Core.php file.


@set_time_limit((REQ == 'CP') ? 300 : 90);


@set_time_limit((REQ == 'CP') ? 800 : 90);

Not pretty nor advisable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.