How to Change PHP max_input_vars Using CloudLinux PHP Selector

Step-by-step guide to safely increase PHP max_input_vars limit for handling complex forms and large data submissions.

How to Change PHP max_input_vars Using CloudLinux PHP Selector

Overview

The max_input_vars setting in PHP controls the maximum number of input variables your server can process in a single request. This guide explains how to safely modify this setting using CloudLinux PHP Selector when working with complex forms or large amounts of data in WordPress.

Prerequisites

  • Active WPCloud hosting account
  • cPanel access credentials
  • Your hosting plan includes CloudLinux PHP Selector (included with all WPCloud plans)

Common Scenarios for Increasing max_input_vars

  • Working with page builders like Elementor or WPBakery
  • Managing large WooCommerce product catalogs
  • Using complex form builders
  • Handling large menus in WordPress

Important Notes

  • โœ… This change is completely safe
  • โœ… No backup required
  • โœ… No file modifications needed
  • โœ… No database changes made
  • โœ… Changes take effect immediately

Step-by-Step Instructions

1. Access PHP Selector

  1. Log in to your cPanel account
  1. Scroll to the "SOFTWARE" section
  1. Click on "Select PHP Version"
ย 

2. Modify max_input_vars Setting

  1. Click the "Options" tab at the top of the page
  1. Locate max_input_vars in the settings list
  1. Check the box next to max_input_vars to enable modification
  1. Enter your desired value in the text field

Recommended Values:

Scenario
Recommended Value
Default
1000
Page Builders
3000
Complex Forms
5000
Large Menus
3000
WooCommerce
5000
ย 

3. Save Changes

  1. Click "Apply" at the bottom of the page
  1. Wait for the confirmation message
  1. Your changes are now active

Verification (Optional)

To verify your changes:

<?php
// Create a file named check.php with this content
echo "Current max_input_vars value: " . ini_get('max_input_vars');

Access this file through your browser (example.com/check.php)

โš ๏ธ Important: Delete the verification file after checking

Troubleshooting

Common Issues

  1. Setting Not Visible
      • Solution: Contact WPCloud support via ticket system
  1. Changes Not Taking Effect
      • Clear browser cache
      • Wait 5 minutes and try again
      • Check PHP version compatibility
  1. Still Experiencing Issues Related settings you might need to adjust:
      • max_execution_time
      • memory_limit
      • post_max_size

Related Settings

Setting
Purpose
Default
max_execution_time
Script timeout
30 seconds
memory_limit
PHP memory usage
256M
post_max_size
POST data size
64M

Support

Need assistance? We're here to help:

  • Response Time: Usually within 15 minutes
ย 
Did this answer your question?
๐Ÿ˜ž
๐Ÿ˜
๐Ÿคฉ

Last updated on November 20, 2024