PHP在上传文件的时候出现错误Internal Server Error

InternalServerErrorTheserverencounteredaninternalerrorormisconfigurationandwasunablet... Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@phpStudy.net 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.
我用的是phpstudyadmin搭建的运行的环境,在上传图片的时候出现这个错误,不知道是什么因素造成的。各位大神那个知道是怎么个事情,如果是环境的问题该怎么修改和配置,请给与指点,谢谢!!!
展开
 我来答
百度网友689acdf
2013-04-13
知道答主
回答量:75
采纳率:0%
帮助的人:24.8万
展开全部
我也遇到这个问题,当上传图片大于100K的时候就会出现这种状况!
打开Apache 的httpd.conf
找到<IfModule mod_fcgid.c>
在里面添加如下三行即可!
<IfModule mod_fcgid.c>
FcgidConnectTimeout 20

# to get around upload errors when uploading images increase the MaxRequestLen size to 15MB
MaxRequestLen 15728640
</IfModule>
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
清友灵0cJ
2013-03-15 · TA获得超过251个赞
知道小有建树答主
回答量:450
采纳率:100%
帮助的人:284万
展开全部
1、修改下上传文件的那个目录权限,再试。
2、如果上传的文件过大就修改PHP.ini的上传文件大小限制,默认是2M。
本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
信捷网络工作室
2013-03-15 · TA获得超过111个赞
知道答主
回答量:311
采纳率:100%
帮助的人:160万
展开全部
找到你的错误日志!把那里面错误信息发出来!
才能知道到底是什么问题。
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式