Knowledgebase

How To Increase Your PHP Max Input Vars

How To Increase Your PHP Max Input Vars

At AppsGators we allow all customers the ability to take full control over their PHP settings right inside of cPanel.

Many WordPress themes and even WHMCS require the Max Input Variables to be increased from the default values.

To do this, you simply login to the cPanel of the website you're wanting to edit and navigate to Select PHP Version:

Select PHP Version

Once inside, you can select the version of PHP you want your website to run.

We currently offer the following PHP versions on all Shared and Reseller Hosting packages:

4.4, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, and 7.2

The default version is PHP 7.0:

 

You can leave it set at 7.0 or change the version by selecting the version you want and clicking Set as current.

Switch To PHP Options

Once you have the version of PHP set, you can click the Switch To PHP Options link to set your Max Input Vars:

 

You can then configure your settings:

 

Once finished click Save.

Check The New Settings

You can easily confirm your new settings by creating a PHP info file.

Simply login to File Manager inside of cPanel, navigate to public_html and create a new file called info.php:

 

Inside that file, add the following code:

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

You can then navigate to this file in your web browser (i.e. http://yourdomain.com/info.php) and can confirm the new settings:

 

Use A Custom php.ini File

If there are options you need to edit that aren't available inside PHP Selector, you can easily add these to a custom phi.ini file.

Go back to cPanel -> File Manager and create a file called php.ini right above the public_html directory:

 

You can then add any settings, but remember, if you change something that's inside the PHP Selector; these will override it!

Here's an example of one:

max_input_vars = 10000;
date.timezone = "UTC"
suhosin.request.max_vars = 50000;
suhosin.post.max_vars = 10000;

Changes made inside here won't take affect immediately, so please give it a few hours, or contact support to refresh the PHP settings of your account.

Personally, I don't like using php.ini files and really ONLY recommend using them when the option is NOT listed inside of the PHP selector.

How To Set Your max_input_vars Inside PHP

I've filmed a video tutorial where I walk you through all of these steps for those that chose to follow-along:

 

Let us know if you have any questions!

 
Was this answer helpful?

Related Articles

How To Move Your Website From HostGator

How To Move Your Website From HostGator On average, we move around 5 - 10 customers a...

How To Install And Setup Ali Plugin For AliExpress.com

How To Install And Setup Ali Plugin For AliExpress.com This is the second part to my...

How To Make Money With A Discussion Forum

How To Make Money With A Discussion Forum People like to connect with other people who...

How To Make Money With AliExpress In 2017

How To Make Money With AliExpress In 2017  Last year, I filmed a tutorial on How To...

How To Change Your PHP Version And Add Extensions Inside cPanel

How To Change Your PHP Version And Add Extensions Inside cPanel At AppsGators we...