在PHP 5.2.17 max_input_vars限制 [英] max_input_vars limited in PHP 5.2.17

查看:598
本文介绍了在PHP 5.2.17 max_input_vars限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的托管服务提供商正在使用PHP 5.2.17和我有问题max_input_vars被设置为1000

My hosting provider is using PHP 5.2.17 and I have problems with max_input_vars that is set to 1000

我使用prestashop和翻译无法正常工作。

I am using Prestashop and translations are not working.

我尝试添加为.htaccess:

I have tried to add to .htaccess:

php_value max_input_vars 6000
php_value suhosin.post.max_vars 6000
php_value suhosin.request.max_vars 6000

在这之后,我无法访问我的网页,我得到我得到找不到网页错误?

And after that I cannot access my page, I get I get page not found error?

您可以帮我这个?

感谢

推荐答案

它应该工作,如果添加

php_value max_input_vars 6000
php_value suhosin.post.max_vars 6000
php_value suhosin.request.max_vars 6000

你的的.htaccess

当然,Web服务器可以读取您创建的.htaccess文件,并有该文件中没有其他的错别字。

be sure, the webserver can read the .htaccess file you created and there are no other typos in that file.

如果你得到一个空白页,检查的Apache的错误日志错误:

If you get a blank page, check the errorlog of apache for errors:

tail -f /var/log/apache2/error.log &

如果您有权利:检查系统日志太大的错误,当你重新启动Apache:

and if you have the rights: check the syslog too for errors when you restart apache:

tail -f /var/log/syslog &
sudo apache2ctl restart

这篇关于在PHP 5.2.17 max_input_vars限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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