Can max_input_vars be increased?

Yes, that's possible! With most newer PHP versions, you can easily set this via DirectAdmin. Check out this article for more information.

Open the PHP Selector screen and select "Options" at the top:

Scroll down on this page and you'll see the option to adjust max_input_vars:

Are you using an older PHP version and don't see this option? Then you'll need to adjust this via .htaccess.

Doesn't the file exist yet? Then create a file named .htaccess in the root folder of your website (note the dot at the beginning of the file name). Add the following line to it:

php_value max_input_vars 10000

The number 10000 is the new maximum amount, which you can adjust to your desired value. Does the file already exist and already contain lines? Then simply add this line somewhere between the existing lines.

Related articles