上传100KB + zip文件会导致内部服务器错误 [英] Uploading 100KB+ zip files gives an Internal Server Error

查看:315
本文介绍了上传100KB + zip文件会导致内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的HTML代码虽然我认为这是无关的:

Here's my HTML code although I think it's irrelevant:

<form enctype="multipart/form-data" action="../developers/submit.php" method="post">
<input name="product_zip" type="file" /><input type="hidden" name="MAX_FILE_SIZE" value="20000">
</form>

我说这不重要的原因是我可以上传100kb下的zip文件。我得到一个500内部服务器错误在zip文件超过100kb。其他一切工作超过100kb,png,gif,新创建的zip文件等。

The reason I say it's irrelevant is that I can upload zip files under 100kb. I get a 500 internal server error on zip files over 100kb. Everything else works over 100kb, png, gif, newly created zip files, etc.

我已经检查了所有的PHP ini设置。一切都是正确的,包括最大上传大小,执行时间等。

I've checked all my PHP ini settings. Everything is right including max upload size, execution time, etc.

我在这一个很困惑,不知道为什么我的服务器不会上传某些zip文件。这不是我的PHP代码,因为我已经完全注释它,仍然得到一个500。

I'm baffled on this one and can't figure out why my server won't upload certain zip files. It's not my PHP code, because I have completely commented it out and still get a 500.

服务器信息:


  • Cpanel / WHM

  • Cpanel / WHM

CentOS 5

PHP / w mySQL

PHP /w mySQL

解决方法:

解决方案在这里:

The MaxRequestLen needs to be set higher.

需要设置更高的MaxRequestLen。 href =http://pivica.me/blog/500-internal-server-error-while-uploading-files-bigger-then-100kb-modfcgid-problem =nofollow> http://pivica.me / blog / 500-internal-server-error-while-uploading-files-greater-then-100kb-modfcgid-problem

The solution is here: http://pivica.me/blog/500-internal-server-error-while-uploading-files-bigger-then-100kb-modfcgid-problem

推荐答案

这是mod_fcgid的问题。

It was a problem with mod_fcgid.

MaxRequestLen需要设置得更高。

The MaxRequestLen needs to be set higher.

解决方案在这里: http://pivica.me/blog/500-internal-server-error-while-uploading-files-bigger-then-100kb-modfcgid-problem

这篇关于上传100KB + zip文件会导致内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆