max_input_vars

I like to know where in virtualmin i can adjust the value of "max_input_vars" for php

Status: 
Active

Comments

Howdy -- you can set max_input_vars by going into Services -> PHP5 Configuration -> Edit Configuration Manually, and there you will see your entire php.ini file. You can either edit the existing setting there, or if it doesn't exist, you could add it to your php.ini file.

where i can add this line

please advice

max_input_vars=10,000

or

ini_set("max_input_vars",10000)

You can add that anywhere you want in the file; it doesn't matter what order those parameters appear in.

which option is right option

1>

ini_set("max_input_vars",10000

2>

max_input_vars=10,000

You might wish to try something like this:

max_input_vars=10000

I don't recall if it accepts a comma or not; but it will definitely work without one :-)

this does not work when running php-fpm. I went to virtualmin>services>php-fpm configuration>Edit configuration manually

and added to above line quoted...it took my entire webmin/virtualmin server offline...none of the php dependant website remained functional. Poor advice that is not spelled out or updated for current versions!!!