简体   繁体   English

IIS 7.5 500 大文件上传错误

[英]IIS 7.5 500 Error with Large File Uploads

I'm having some trouble with a php upload script when trying to upload large files ( > 9-10Mb).我在尝试上传大文件(> 9-10Mb)时遇到了 php 上传脚本的问题。 The problem I'm running into can be seen on the screenshot here:我遇到的问题可以在这里的屏幕截图中看到:

http://thecreativefloor.com/capture.jpg http://thecreativefloor.com/capture.jpg

I've changed all the usual areas (php ini settings, web.config settings, although I've posted them below for reference) but this one now has me stumped (and if it was one of those areas I am guessing it wouldn't be showing a 500 error anyway).我已经更改了所有常用区域(php ini 设置、web.config 设置,虽然我已经将它们发布在下面以供参考)但是这个现在让我很难过(如果它是这些区域之一,我猜它不会'无论如何都不会显示 500 错误)。

I think it has to be due to some problem in IIS, or maybe a script timeout.我认为这必须是由于 IIS 中的一些问题,或者可能是脚本超时。 The script works for anything else below 9Mb, just once I go above that it crashes.该脚本适用于 9Mb 以下的任何其他内容,只要我在 go 上面崩溃时。

Any help much appreciated非常感谢任何帮助

Nick缺口


PHP ini settings: PHP ini 设置:

memory_limit = 256M memory_limit = 256M

post_max_size = 800M post_max_size = 800M

upload_max_filesize = 800M upload_max_filesize = 800M


Web.config addition: Web.config 添加:

    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="524288000"/>
        </requestFiltering>
    </security>

You might wanna look into this web.config setting, although it might only be applicable for ASP.NET:您可能想查看此 web.config 设置,尽管它可能仅适用于 ASP.NET:

<httpRuntime maxRequestLength="16384" />

http://msdn.microsoft.com/en-us/library/e1f13641%28v=vs.71%29.aspx http://msdn.microsoft.com/en-us/library/e1f13641%28v=vs.71%29.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM