运行脚本 30 秒后,我收到 500 内部服务器错误 [英] I get 500 Internal Server Error after 30 seconds of running a script
问题描述
生产服务器具有 CentOS 6.4 和 Plesk 11.0.9.这是一个专用服务器.
The production server has CentOS 6.4 with Plesk 11.0.9. It is a dedicated server.
服务器配置:
* max_execution_time
从 Plesk 设置为 500,它在 phpinfo
Server configuration:
* max_execution_time
is set to 500 from Plesk and it shows up correctly in phpinfo
问题:
* 运行任何脚本 30 秒后,我收到 500 Internal Server Error
有什么办法可以解决这个问题吗?
Is there any way I get a workaround this problem?
LE:
* 我想要执行此操作的脚本从远程位置将文件下载到用户的浏览器.完成操作甚至可能需要数小时(对于非常慢的互联网连接客户端).我真的需要这个.还有一件事,用户不能看到源网址.
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.
推荐答案
我认为您运行的是 Fast CGI.CGI 进程有一个最长的执行时间.在 fastcgi 中,它是 空闲超时.之后,您会收到 500 错误,因为后端在那段时间内没有响应.
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.
我不知道你用的是哪个模块.但通常您可以在配置中设置 idle-timeout.
I don't know which module you use. But normally you can set the idle-timeout in your configuration.
这篇关于运行脚本 30 秒后,我收到 500 内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!