Changes in max_input_vars in php.ini dont show in phpmyadmin (DirectAdmin)

outofideas

New member
Joined
Aug 23, 2017
Messages
1
Hi

I wanted to export a database in phpmyadmin but as soon as I click on export a message pops up saying "a form on this page has more than 1000 fields. On submission, some of the fields might be ignored, due to PHP's max_input_vars configuration". Because of this I cannot export my database and it outputs an 8kb file.

I changed the php.ini file in /usr/local/lib/php.ini and restarted the http service. When I check again, it displays the same error in phpmyadmin when trying to export the database.
 
What version(s) do you have for PHP?
For example, if you have installed PHP 5.6, you need to edit /usr/local/php56/lib/php.ini

then restart httpd service.
 
Hello,
I edit php from directadmin panel and after that restart httpd but I get warning in phpmyadmin yet:
a form on this page has more than 3000 fields. On submission, some of the fields might be ignored, due to PHP's max_input_vars configuration.

in my php.ini file max_input_vars = 10000
 
When I set php_value max_input_vars 10000 in phpmyadmin folder I get 500 error
 
Don´t edit in PHPMyAdmin folder. Edit the right php.ini file, usually you will find here: /usr/local/php56*/lib/php.ini
*php56 or what version you set.

Try this:

max_input_vars = 5000
suhosin.post.max_vars = 5000
suhosin.request.max_vars = 5000
 
Back
Top