How to Increase Input Vars in cPanel
Increasing max_input_vars
In cPanel is useful when you’re dealing with large forms, especially in WordPress, Laravel, WHMCS, or any app that submits lots of input fields. If you don’t increase this, you might run into errors like:
Some fields not saving
Menus not saving in WordPress
Theme options not loading correctly
WHMCS config saving issues
What is max_input_vars
?
max_input_vars
limits the number of $_POST
, $_GET
, and $_COOKIE
input variables allowed per request.
The default is 1000, which is often too low for complex forms or settings pages.
How to Increase max_input_vars
in cPanel
Method 1: MultiPHP INI Editor (Recommended for Shared Hosting)
Log in to your cPanel.
Under the Software section, click MultiPHP INI Editor.
Choose your domain from the dropdown.
Scroll and find
max_input_vars
.Set it to a higher value like:
Click Apply.
Method 2: Edit php.ini
(If You Have Access)
Go to File Manager in cPanel.
Navigate to your root directory (
public_html
or domain folder).Open or create a file named
php.ini
.Add:
Save the file.
Method 3: Edit .htaccess
Open your site’s
.htaccess
file inpublic_html
.Add:
Save.
This may throw a 500 error if your host doesn’t allow
php_value
directives in.htaccess
.
Method 4: WordPress-specific override
You can also try:
in wp-config.php
(less reliable).
Recommended Values
Default: 1000
For large menus or forms: 3000–5000
For complex apps (like WHMCS): 5000–10000