0
當我在我使用的是Server 2008的PHP捉迷藏一個IIS服務器返回500 5.6.0IIS FastCgiModule上傳大文件
上傳小文件大約1-2 MB工作正常,但只要我我試圖上傳更大的文件,IIS返回500錯誤。
我的PHP設置是這樣看:
Post_Max_Size: 800M
Max_Input_time: 300
Upload_max_filesize: 800M
File_uploads: on
似乎是在IIS.I的一般性錯誤已經嘗試一切,這是建立在我的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>
我現在TESTI與ASPX納克,這個劇本,但它失敗:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
\t protected void btn1_Click(object sender, EventArgs e)
\t {
\t \t if (upload1.HasFile)
\t \t {
\t \t \t btn1.Text = upload1.FileName + ":" + upload1.PostedFile.ContentLength;
\t \t }
\t \t else
\t \t {
\t \t \t btn1.Text = "No File...";
\t \t }
\t }
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
\t <title>IIS upload debug</title>
</head>
<body>
\t <form id="form1" runat="server" enctype="multipart/form-data">
\t \t <asp:FileUpload runat="server" ID="upload1" />
\t \t <asp:Button runat="server" ID="btn1" OnClick="btn1_Click" Text="Start Uploading" />
\t </form>
</body>
</html>
500也可能意味着您的腳本會引發錯誤。你的腳本中有什麼設置?請提供一些代碼 – Grumpy
我發現它與IIS相關,而不是PHP ..在原始文章中對我的更改 –