Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

max_input_vars limited in PHP 5.2.17

Tags:

.htaccess

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

like image 449
mehnihma Avatar asked Jan 13 '13 23:01

mehnihma


1 Answers

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
like image 148
rubo77 Avatar answered Oct 23 '22 22:10

rubo77