Overview
This article explains how to adjust the max_input_vars directive using a phprc file.
Background
The max_input_vars directive controls how many input variables may be accepted in PHP. By default, this is set to 1000, but your website may throw an error informing you that this value is too low. If so, you can raise this value in a phprc file.
These directions apply to non-DreamPress sites. If you're attempting to update your PHP settings with a DreamPress site, see this article instead.
Adjusting max_input_vars
To update this value:
- Edit your phprc file using FTP or SSH.
-
Add the following line to this file. This raises the limit to 2000.
max_input_vars = 2000
- Kill off any PHP processes to update your new settings.
- Check your new settings using a phpinfo.php file. If the value is not updated, try killing off the PHP processes again.