dsyrdwdbo47282676 2013-11-22 05:33
浏览 157
已采纳

运行脚本30秒后,我收到500内部服务器错误

The production server has CentOS 6.4 with Plesk 11.0.9. It is a dedicated server.

Server configuration:
* max_execution_time is set to 500 from Plesk and it shows up correctly in phpinfo

Problems:
* I get 500 Internal Server Error after 30 seconds of running any script

Is there any way I get a workaround this problem?

LE:
* the script I want to do this downloads from a remote location a file to user's browser. It might require even hours to complete the operation (for very slow internet connection clients). I really need this. And one more thing, the user must not see the source url.

  • 写回答

1条回答 默认 最新

  • douyuan1752 2013-11-22 07:04
    关注

    I think you run Fast CGI. The CGI process has a maximum execution time. In fastcgi its the idle-timeout. After that you get an 500 Error because the backend is not responding in that time.

    I don't know which module you use. But normally you can set the idle-timeout in your configuration.

    mod_fastcgi idle timeout not work

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?