Max_execution_time cannot be changed in php.ini after php upgrade to 5.5

Max_execution_time cannot be changed in php.ini after php upgrade to 5.5

by Paul Lindgreen -
Number of replies: 2
Picture of Particularly helpful Moodlers

I am now receiving time out errors after upgrading php from 5.3 to 5.5, the error message mostly look like this:
[08-Jan-2014 14:41:44 UTC] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in E:\xxxxx\yyyyy\lib\filelib.php on line 3188

The following script outputs 600 seconds for the max execution time: echo ini_get('max_execution_time'); 
The php.ini settings are max_execution_time =600 , max_input_time = 600

2 months ago I increased the value to 300 seconds and occasionaly got time out errors indicating 300 seconds were exceeded. I then bumped it up to 600 and everything seemed fine until this php upgrade.

My IIS server settings were not altered, the only change was with php upgrading (there were server restarts done after this, everything else seems fine).

Where is this 60 second limitation coming from? I didnt see any reference to it being set in filelib.php or see another php.ini file in that folder.

Why are my php.ini max_execution_time settings suddenly being ignored?

Thanks for your assistance.

============================

My environment is Moodle 2.4.5 Windows 2008 server, IIS 7.5 , php 5.5.6, 14gb Memory, 4 cpu
Mysql1 on seperate server, same specs as above: Mysql server 5.1, windows 2008 64 bit
Zend Extension Build API220090626,NTS,VC9 PHP Extension Build API20090626,NTS,VC9 Thread Safety disabled System Windows NT MOODLE2TEST 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 Build Date Aug 15 2012 19:57:50 Compiler MSVC9 (Visual C++ 2008) Architecture x86

Average of ratings: -
In reply to Paul Lindgreen

Re: Max_execution_time cannot be changed in php.ini after php upgrade to 5.5

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Site administration > Server > PHPInfo

Find the entry for the location of the php.ini file a few lines down. Is that definitely the php.ini file you are editing?

In reply to Howard Miller

Re: Max_execution_time cannot be changed in php.ini after php upgrade to 5.5

by Paul Lindgreen -
Picture of Particularly helpful Moodlers

re: Site administration > Server > PHPInfo

Yes, it does say 600seconds here too.

Based on the following 3 error logs (60, 600, 60 seconds timeouots) I'ld say Moodle is setting the max_execuction time for a couple functions only and I should probably leave things as they are?

[08-Jan-2014 14:41:44 UTC] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in E:\xxx\yyy\lib\filelib.php on line 3188

[18-Jan-2014 20:34:26 UTC] PHP Fatal error:  Maximum execution time of 600 seconds exceeded in E:\xxxx\yyy\repository\repository_ajax.php on line 27

[22-Jan-2014 14:37:41 UTC] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in E:\xxx\yyy\lib\filelib.php on line 3000