500 internal server error php long running process
- by Sabirul Mostofa
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.
PHP Config:
max_execution_time: 3600
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 min 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.