I am trying to run a WordPress plugin which imports a bunch of entries from a CSV file and converts them to WordPress posts. I have already taken care of setting the following in the script:
ini_set(‘memory_limit’, -1);
ini_set(‘max_execution_time’, 0);
Even then the script stops after around 3 minutes.
I have already tried adding the following to /etc/apache2/mods-available/fcgid.conf:
FcgidBusyTimeout 604800
FcgidIdleTimeout 999999999
FcgidMaxRequestsPerProcess 999999999
MaxRequestsPerProcess 999999999
IdleTimeout 999999999999999
FcgidMaxRequestsPerProcess 999999999
FcgidIOTimeout 999999999
That didn’t help either.
Anyone here has an idea what’s required to make sure a script run indefinitely?
PS: PHP script execution mode is set to FCGId