Maximum execution time of 120 seconds exceeded in yii2

Malki Mohamed picture Malki Mohamed · May 9, 2016 · Viewed 58.2k times · Source

I upload an excel file with 1000 rows, by default I have just 2 min in execution time, with that time I can upload 400 records. I get this error Maximum execution time of 120 seconds exceeded

How i can modify this period in yii2 framework ?

Answer

scaisEdge picture scaisEdge · May 9, 2016

You need to change that in the php.ini:

max_execution_time = 500

or in your php script:

set_time_limit(500); //