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!!!

Francewhoa's picture
Submitted by Francewhoa on Sun, 03/08/2020 - 13:46

Hello @adamjedgar :) Thanks for your contributions to Virtualmin

The steps above are for FCGId mode. Notice that those comments above were posted years ago. Back then FCGId was the most frequently use PHP script execution mode. And FPM was not yet fully supported by Virtualmin. In other words, those steps above implies that they are for FCGId not for FPM. If you use FPM (PHP-FPM) those steps would likely not work.

The steps for FPM are at https://forum.virtualmin.com/t/changed-max-input-vars-but-no-effect/58225/7

This is a note to myself, today I updated my comment #6 above