Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internal Server Error after long time running of php script

Tags:

php

I have some db query in my php file, approximately after 40 second, happened INTERNAL SERVER ERROR, though in php.ini file this settings are set:

memory_limit         8192M
max_execution_time   120

I think this settingst is enough, other what reason may causes INTERNAL SERVER ERROR after long time running of php script?

like image 773
Oto Shavadze Avatar asked Mar 12 '26 18:03

Oto Shavadze


1 Answers

set

ini_set('max_execution_time' ,0);       
ini_set('set_memory_limit', -1)
like image 90
chandresh_cool Avatar answered Mar 15 '26 09:03

chandresh_cool



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!