dongwuli5105 2011-08-07 02:23
浏览 51
已采纳

上传100KB + zip文件会产生内部服务器错误

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>

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.

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

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.

Server Info:

  • Cpanel / WHM

  • CentOS 5

  • PHP /w mySQL

SOLUTION FOUND: It was a problem with mod_fcgid.

The MaxRequestLen needs to be set higher.

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

  • 写回答

4条回答 默认 最新

  • doumeng1143 2012-02-29 18:09
    关注

    It was a problem with mod_fcgid.

    The MaxRequestLen needs to be set higher.

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序