Adjusting max_input_vars

 

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:

  1. Edit your phprc file using FTP or SSH.
  2. Add the following line to this file. This raises the limit to 2000.
    max_input_vars = 2000
  3. Kill off any PHP processes to update your new settings.
  4. Check your new settings using a phpinfo.php file. If the value is not updated, try killing off the PHP processes again.

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?