POST数据太大.减少数据或增加"post_max_size". [英] Too big POST data. Reduce the data or increase the "post_max_size"

查看:717
本文介绍了POST数据太大.减少数据或增加"post_max_size".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Adminer上传gzip压缩的Mysql备份(71,2mb),并且抛出此错误:

I'm trying to upload a gzipped Mysql backup (71,2mb) through Adminer and it throws me this error:

POST数据太大.减少数据或增加"post_max_size"配置指令.

Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.

即使我的post_max_size和其他php.ini设置是这样的:

Even though my post_max_size and other php.ini settings is like this:

post_max_size = 1024M
upload_max_filesize = 1024M

为什么我会不断收到此错误?

Why do i keep getting this error?

推荐答案

不仅检查php.ini中的值,因为它们可以被.htaccess文件或PHP代码覆盖.运行phpinfo()并比较左&中的值右列.右栏中的值是实际使用的值.

Don't only check values in php.ini, as they can be overwritten by a .htaccess file or in PHP code. Run a phpinfo() and compare values in left & right column. The values in the right column are those actually in use.

还要考虑文档中的注释:

设置允许的帖子数据的最大大小.此设置也会影响文件 上载.要上传大文件,此值必须大于 upload_max_filesize.如果您的配置启用了内存限制 脚本中,memory_limit也影响文件上传.一般来说, memory_limit应该大于post_max_size.

Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

因此,您可能还需要更改memory_limit:

So, you might also need to change memory_limit:

memory_limit > post_max_size > upload_max_filesize

这篇关于POST数据太大.减少数据或增加"post_max_size".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆