How to Increase Input Vars in cPanel

You are here:
Estimated reading time: 1 min

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)

  1. Log in to your cPanel.

  2. Under the Software section, click MultiPHP INI Editor.

  3. Choose your domain from the dropdown.

  4. Scroll and find max_input_vars.

  5. Set it to a higher value like:

    max_input_vars = 3000
    
  6. Click Apply.


Method 2: Edit php.ini (If You Have Access)

  1. Go to File Manager in cPanel.

  2. Navigate to your root directory (public_html or domain folder).

  3. Open or create a file named php.ini.

  4. Add:

    max_input_vars = 3000
    
  5. Save the file.


Method 3: Edit .htaccess

  1. Open your site’s .htaccess file in public_html.

  2. Add:

    php_value max_input_vars 3000
    
  3. 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:

@ini_set('max_input_vars', '3000');

in wp-config.php (less reliable).


Recommended Values

  • Default: 1000

  • For large menus or forms: 3000–5000

  • For complex apps (like WHMCS): 5000–10000

Was this article helpful?
Dislike 0

Author

Joshua

Web Hosting Geek Technical Support Staff G Online Sites