在 mediawiki 中,无法插入正文长度超过指定值的页面,为什么?
In mediawiki, Cannot insert pages with bodies longer than the specified value, Why?
我不能将超过 70,000 字节的文本作为页面正文。我采取了这些步骤来解决这个问题,但没有成功:
我正在向服务器发送一个超过 70k 个字符的页面,我已经从 inspect element 中检查了提交的请求肯定超过 70k 然后
1- MediaWiki 代码的第一部分(index.php)中请求的结尾被截断,部分提交的信息被删除。 index.php是代码的第一部分在apache
收到请求后开始处理请求
2-我在Apache服务器上修改了以下变量为php.ini但是问题没有解决
upload_max_filesize = 512M
memory_limit = 1024M
max_execution_time = 100
你能帮帮我吗?
- 检查
LimitRequestBody
Apache 设置的值。
- 检查
post_max_size
PHP 设置的值。
- A quote 来自 MediaWiki 文档:
If your Apache server has the Hardened PHP patch, you may need to edit several variables in your /etc/php.ini
file if you wish to have wiki pages with large amounts of content. In particular, consider the settings for varfilter.max_value_length
, hphp.post.max_value_length
, and hphp.request.max_value_length
. The default settings may limit your pages to less than 10k or 64k in size.
Another possibility is if your Apache server is using mod_security
that could be interfering with mediawiki. You will need to turn it off for mediawiki to work properly
upload_max_filesize
与此处无关。
1GB 的 memory_limit
过多。通常128M就够了。
我不能将超过 70,000 字节的文本作为页面正文。我采取了这些步骤来解决这个问题,但没有成功: 我正在向服务器发送一个超过 70k 个字符的页面,我已经从 inspect element 中检查了提交的请求肯定超过 70k 然后
1- MediaWiki 代码的第一部分(index.php)中请求的结尾被截断,部分提交的信息被删除。 index.php是代码的第一部分在apache
收到请求后开始处理请求2-我在Apache服务器上修改了以下变量为php.ini但是问题没有解决
upload_max_filesize = 512M
memory_limit = 1024M
max_execution_time = 100
你能帮帮我吗?
- 检查
LimitRequestBody
Apache 设置的值。 - 检查
post_max_size
PHP 设置的值。 - A quote 来自 MediaWiki 文档:
If your Apache server has the Hardened PHP patch, you may need to edit several variables in your
/etc/php.ini
file if you wish to have wiki pages with large amounts of content. In particular, consider the settings forvarfilter.max_value_length
,hphp.post.max_value_length
, andhphp.request.max_value_length
. The default settings may limit your pages to less than 10k or 64k in size. Another possibility is if your Apache server is usingmod_security
that could be interfering with mediawiki. You will need to turn it off for mediawiki to work properly
upload_max_filesize
与此处无关。
1GB 的 memory_limit
过多。通常128M就够了。