Maximum run time of 120 seconds exceeded in yii2

I download an excel file with 1000 lines, by default I only have 2 minutes at runtime, and at this time I can load 400 records. I get this error Maximum execution time of 120 seconds exceeded

How can I change this period in yii2 structure?

+6
source share
1 answer

You need to change this in php.ini:

 max_execution_time = 500 

or in your php script:

 set_time_limit(500); // 
+11
source

All Articles