加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php上传和内部服务器错误

发布时间:2020-12-13 17:24:53 所属栏目:PHP教程 来源:网络整理
导读:我正在使用带有php的html表单将数据上传到 mysql. 当我在我的笔记本电脑(wamp)上使用它时,表单工作正常但是当我在我的专用服务器(ispconfig)上传网站时出现此错误 Internal Server Error The server encountered an internal error or misconfiguration and
我正在使用带有php的html表单将数据上传到 mysql.

当我在我的笔记本电脑(wamp)上使用它时,表单工作正常但是当我在我的专用服务器(ispconfig)上传网站时出现此错误

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

我试着改变php.ini的值

post_max_size  64M
upload_max_filesize 64M
max_input_time 3000
max_execution_time 3000

而apache中的那些也在

memory_limit 96M
post_max_size 64M
upload_max_filesize 64M

但我仍然无法上传.

谢谢您阅读此篇.

解决方法

您需要在httpd.conf文件中增加FcgidMaxRequestLen

使用类似的东西

FcgidMaxRequestLen 67108864

从FcgidMaxRequestLen Directive起

Warning

Before 2.3.6,this defaulted to 1GB. Most users of earlier versions should use this directive to set a more reasonable limit.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读