mod_fcgid: www.111cn.net http request length 132296 (so far) exceeds maxrequestlen (131072)
查了下资料,发现fastcgi默认的请求大小为131072,于是在apache配置中添加了maxrequestlen 配置就好了。如果你只需要修改单个虚拟主机的maxrequestlen,原来是fastcgi模式下的设置问题,需要在配置文件.htaccess或者直接在apache的配置文件http.conf 中指明,如下:
代码如下
addhandler fcgid-script .fcgi
fcgidconnecttimeout 20
# to get around upload errors when uploading images increase the maxrequestlen size to 15mb
fcgidmaxrequestlen 15728640
如果你是php+apache windows环境下的话我们如下配置即可
在php.ini中找到
upload_max_filesize,及其他post_max_size、max_input_time、memory_limit、 max_execution_time配置
把上传大小修改之后重启apache 即可解决。
http://www.bkjia.com/phpjc/730236.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/730236.htmltecharticle最近在项目中中上传图片时,大约有300多k,结果报了个服务器错误,以前从未遇到过,错误的内容如下: mod_fcgid: www.111cn.net http request le...