I am trying to run a long php process and it ends with the 500 internal server error. It executes fine for about 8 mins. I have rebooted the machine after changing the php settings.
After around 10 mins ps ax|grep php:
19007 ? S 0:08 /usr/bin/php /home/gypsy/public_html/index.php
I have set the ignore_user_abort true.
The process gets stuck at 00:08(8th minute) and isn't executed further.
Apache error log shows the error:
Script timed out before returning headers: index.php
It seems somehow the max_execution_time isn't working. Any suggestion would be a great help.
I have been able to detect the problem. It's the firewall that was blocking the process. the server is using iptables with configserver as firewall. Disabling the firewall works fine. But I am not sure which settings to change to allow the long running process in the firewall