Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
530 views
in Technique[技术] by (71.8m points)

.htaccess - max_input_vars limited in PHP 5.2.17

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

I am using Prestashop and translations are not working.

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?

Can you help me with this?

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It should work, If you add

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

to your .htaccess.

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

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

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

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

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...