PHP max_input_vars increase

How do I increase the max_input_vars parameter for my website?

For security reasons it is recommended not to set this value too high. But some things, like certain wordpress themes, prestatshop, phpbb3 which have a large amount of input fields, can have issues with storing the data.

This limit you can set yourself by a .user.ini (including the first dot) file created via an ftp client. This file must be placed in the wwwroot folder.


Here is an example:

max_input_vars = 7500

This will raise the limit to 7500.


Again we recommend that this value is not too high to prevent your website from being abused or attacked by a ddoss attack.