• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

图片上传大于100k就出Internal server error

php 搞代码 4年前 (2022-01-23) 27次浏览 已收录 0个评论
文章目录[隐藏]

php图片上传大于100k就出错

各位好,我上传图片的时候只要图片大于100K就报下面的问题。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache http.conf配置文件里是设置的2M,搞不定了这里,望各位指点一二。

回复讨论(解决方案)

php.ini 里面的 display_errors 选项打开了吗?
要先显示出具体的错误,只有这个“Internal Server Error”是无法看出问题的

去看下apache的错误日志,检查下有什么错误信息。

httpd的日志最重要,看看先

去看下apache的错误日志,检查下有什么错误信息。

httpd 日志里报的HTTP request length 134804 (so far) exc/本2文来源[email protected]搞@^&代*@码2网搞gaodaima代码eeds MaxRequestLen(131072)

意思是说最大长度是131072我传的图片超过了,我之前装了个Apache 后来又装了个phpStudy.
php.ini配置里upload_max_filesize = 2M运行最带上传文件为2M啊远远没有超出啊,不知道为什么?

http://www.google.com.hk/search?newwindow=1&safe=strict&biw=1525&bih=741&noj=1&q=HTTP+request+length+exceeds+MaxRequestLen+php&oq=HTTP+request+length+exceeds+MaxRequestLen+php&gs_l=serp.12…16863.17338.0.117775.2.2.0.0.0.0.911.911.6-1.1.0….0…1c.1.27.serp..2.0.0.d6Blu54Sg9Y

http://www.nowamagic.net/librarys/veda/detail/104


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:图片上传大于100k就出Internal server error

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址