PHPCMS上传错误413?-PHPCMS

资源魔 71 0

PHPCMS上传谬误413?

PHPCMS上传谬误413,其缘由Nginx默许限度最年夜上传文件就是1M,以是上传文件超越1M就会报413谬误,处理办法:找到“nginx.conf”设置装备摆设下的“client_max_body_size”,更改成10M便可。

Apache效劳器处理办法

修正下Apache设置装备摆设文件中的LimitRequestBody设置装备摆设,假如是虚构主机,请联络空间商协助修正。

详细步骤:
正在apache环境中上传较年夜软件的时分,有时分会呈现413谬误,呈现这个谬误的缘由,是由于apache的设置装备摆设不妥酿成的,找到apache的设置装备摆设文件目次也就是conf目次,以及这个目次平行的一个目次叫conf.d关上这个conf.d,外面有一个php.conf
目次内容以下:

## PHP is an HTML-embedded scripting language which attempts to make it# easy for developers to write dynamically generated webpages.#
LoadModule php4_module modules/libphp4.so
## Cause the PHP interpreter handle files with a .php extension.#
SetOutputFilter PHPSetInputFilter PHPLimitRequestBody 6550000
## Add index.php to the list of files that will be served as directory# indexes.#DirectoryIndex index.php

谬误就发作正在这个LimitRequestBody设置装备摆设上,将这个的值改年夜到超越你的软件巨细就能够了

假如不这个设置装备摆设文件请将

SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 6550000

写到apache的设置装备摆设文件外面便可。

保举教程:《PHPCMS教程》

以上就是PHPCMS上传谬误413?的具体内容,更多请存眷资源魔其它相干文章!

标签: CMS phpcms phpcms教程 phpcms技巧 php问题解决

抱歉,评论功能暂时关闭!