1. Edit the php.ini File
The first way to increase the max_input_vars value is to edit the php.ini file. This file is usually located in the /etc/ directory.
2. Edit the .htaccess File
The second way to increase the max_input_vars value is to edit the .htaccess file. This file is usually located in the root directory of your website.
3. Use ini_set() Function
The third way to increase the max_input_vars value is to use the ini_set() function. This function can be used to set the value of any PHP configuration option.
4. Use the php_value Directive
The fourth way to increase the max_input_vars value is to use the php_value directive. This directive can be used to set the value of any PHP configuration option.
How to Increase max_input_vars in PHP