500 internal server error php long running process

Posted by Sabirul Mostofa on Server Fault See other posts from Server Fault or by Sabirul Mostofa
Published on 2012-03-29T05:11:30Z Indexed on 2012/03/29 5:31 UTC
Read the original article Hit count: 185

Filed under:
|
|

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.

© Server Fault or respective owner

Related posts about apache2

Related posts about php5