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
- Log in to your cPanel account
- Scroll to the "SOFTWARE" section
- Click on "Select PHP Version"
ย
2. Modify max_input_vars Setting
- Click the "Options" tab at the top of the page
- Locate
max_input_vars
in the settings list
- Check the box next to
max_input_vars
to enable modification
- 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
- Click "Apply" at the bottom of the page
- Wait for the confirmation message
- 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
- Setting Not Visible
- Solution: Contact WPCloud support via ticket system
- Changes Not Taking Effect
- Clear browser cache
- Wait 5 minutes and try again
- Check PHP version compatibility
- 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:
- Submit a support ticket: support.wpcloud.ca
- Email: support@wpcloud.ca
- Response Time: Usually within 15 minutes
ย
Did this answer your question?
๐
๐
๐คฉ
Last updated on November 20, 2024