![](/img/trans.png)
[英]uploading large files (mp4) to IIS 7.5 gives 500 Internal Server Error
[英]IIS FastCgiModule returns 500 when uploading large files
我正在服务器2008年上运行IIS服务器。我正在使用的PHP是5.6.0
上载1-2 mb左右的小文件可以正常工作,但是一旦我尝试上载较大的文件,IIS就会返回500错误。
我的php设置如下所示:
Post_Max_Size: 800M
Max_Input_time: 300
Upload_max_filesize: 800M
File_uploads: on
IIS中似乎存在一般错误。我已经尝试了所有方法,并通过web.config将其设置为处理大文件
<system.web>
<globalization uiCulture="en-US" />
<customErrors mode="Off" />
</system.web>
<system.webServer>
<httpErrors errorMode="Detailed" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1000000000" />
</requestFiltering>
</security>
</system.webServer>
我现在正在使用此脚本使用aspx进行测试,但是失败:
<%@ Page Language="C#" %> <!DOCTYPE html> <script runat="server"> protected void btn1_Click(object sender, EventArgs e) { if (upload1.HasFile) { btn1.Text = upload1.FileName + ":" + upload1.PostedFile.ContentLength; } else { btn1.Text = "No File..."; } } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>IIS upload debug</title> </head> <body> <form id="form1" runat="server" enctype="multipart/form-data"> <asp:FileUpload runat="server" ID="upload1" /> <asp:Button runat="server" ID="btn1" OnClick="btn1_Click" Text="Start Uploading" /> </form> </body> </html>
IIS已损坏,需要重新安装。
当客户尝试上传内容时,它甚至触发了“蓝屏死机”。
约阿基姆
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.