How to Set max_input _vars for Domain in cPanel

How to Set max_input _vars for Domain in cPanel

PHP obtains input variables from cookies enabled on the page and from GET and POST requests. By default, PHP scripts are allowed to take only 1000 input variables. However, for many applications we need to increase this variable. This article provides the steps to increase the max_input _vars within cPanel. For this, please follow the below given steps.

1) Login to your cPanel interface.

2) Navigate to the ‘Software’ section.

How to Set max_input _vars for Domain in cPanel

 

3) Click on the icon ‘MultiPHP INI Editor’.

How to Set max_input _vars for Domain in cPanel

 

4) Select the location of php.ini you want to edit and click on the ‘Apply’ button.

How to Set max_input _vars for Domain in cPanel

 

5) Edit the value in the text box near to max_input vars. By default, it is 1000. You can increase the value and click on the ‘Apply’ button to update the changes.

How to Set max_input _vars for Domain in cPanel

 

You can also increase the value in .htaccess file in the domain document root by adding the code below to your .htaccess file.

$ vi .htaccess

php_value max_input_vars 5000

php_value suhosin.get.max_vars 5000

php_value suhosin.post.max_vars 5000

php_value suhosin.request.max_vars 5000

If you need any further help please contact our support department.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Block Bots using Robots.txt File?

How to Block Bots using Robots.txt File? The robots.txt file is a simple text file placed on...

PageSpeed on cPanel Server

PageSpeed on cPanel Server PageSpeed on cPanel Server PageSpeed (mod_pagespeed) is a module for...

How to change cPanel logout URL

How to change cPanel logout URL Do you know that it is possible to change cPanel logout URL any...

How to Change cPanel Style

How to Change cPanel Style How to Change cPanel Style cPanel is the most popular control panel...