I'm running Apache2 and PHP5 on a dedicated VPS.
I have a script that should finish anywhere from 20-50 seconds. It works just fine, but if it takes over 30 seconds due to the rows it selected, it instantly kills the script and says:
"Service Unavailable - The service is temporarily unavailable. Please try again later."
I have max_execution_time=60
, max_input_time=60
and memory_limit=256M
in my php.ini.
In apache2.conf, I have Timeout=300
.
In the script itself, I'm also using set_time_limit(0);
ignore_user_abort(true);
ini_set('max_execution_time', 0);
ini_set('memory_limit', '512M');
No matter what I change the script dies anytime the loading takes over 30.00 seconds and nothing is appearing in any of my logs.
Any suggestions on what other settings to try?
This script is for internal use only and will eventually be running from command line, but I prefer to debug/test from the browser.