Overview
This article explains how to adjust the max_input_vars directive for a website.
Any adjustments made using the following instructions may affect all sites under the same SFTP/SSH user.
Background
The max_input_vars directive controls how many input variables may be accepted in PHP. By default, this is set to 3000, 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 or from your control panel. See these articles to learn more about common PHP customizations.
These directions apply to non-DreamPress sites. If you're attempting to update your PHP settings with a DreamPress site, see this article instead.
How to adjust max_input_vars
The following sections explain how to manage the max_input_vars setting for your site.
Adjusting max_input_vars from the panel
To update max_input_vars directly from your panel:
- Navigate to the Manage Websites page.
- Click the Manage button to open Website settings, which allows you to modify various configurations for your site.
- Click the Settings tab.
-
In the Website Settings section, click Manage next to PHP.
The PHP Settings page opens. - Scroll down to the PHP settings section.
- On the General row, click the Modify button.
- Locate the max_input_vars setting and enter a desired value.
-
Click the Save Changes button when finished.
No manual restart or process killing is required when using the panel.
Adjusting max_input_vars from from a phprc file
To edit your phprc file:
- Edit your phprc file using FTP or SSH.
-
Add a line in this file. For example, the following line raises the limit to 5000:
max_input_vars = 5000
- 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.