Sign Up Sign Up

Have an account? Sign In Now

Sign In Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

Stack Question

Stack Question Logo Stack Question Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question
Home/ Questions/Q 396
Next
Answered
edin
edin

edin

  • United States (US)
  • 42 Questions
  • 4 Answers
  • 0 Best Answers
  • 45k Points
View Profile
  • 6
edin
Asked: February 10, 20212021-02-10T05:13:39+00:00 2021-02-10T05:13:39+00:00In: Computer, Technology

How to increase PHP max input vars in WordPress and Cpanel?

  • 6

I have a WordPress website, and I wanted to install a plugin in it, but it shows the error in “increase max_input_vars in php.ini.”

I am confused with PHP max input vars: how it works, and how to increase the PHP max input vars in WordPress and from Cpanel.

cpanelphpphp max input vars
  • 5 5 Answers
  • 1k Views
  • 2 Followers
  • 0
Answer
Share
  • Facebook

    5 Answers

    1. Roshan22

      Roshan22

      • Nepal
      • 127 Questions
      • 12 Answers
      • 1 Best Answer
      • 135 Points
      View Profile
      Best Answer
      Roshan22
      2021-02-12T18:36:24+00:00Added an answer on February 12, 2021 at 6:36 pm

      PHP Max input vars limits the number of input variables your server can use for a single function. If your website is WordPress, I suggest you put the value of PHP max_input_vars: up to 3000. Usually, the value max_input_vars is set to 1000 by default.

      You can change the PHP max_input_vars value in the .htaccess or the php.ini file in the WordPress directory. Follow the steps to change the PHP max_input_vars:

      Top 3 Methos to update PHP max_input_vars:

      Update PHP Max_Input_Vars in .htaccess

      Find the .htaccess file in the root of your wordpress website directory and add the below line at last:

      htaccess file to update PHP Max_input_vars

      php_value max_input_vars 3000

      Update PHP max_input_vars: in php.ini file

      Find the php.ini file in the root folder of your WordPress. If you do not find the php.ini file, you can create the php.ini file in the root folder of WordPress installation and write the below line and save.

      php.ini file to update PHP Max_input_vars

      max_input_vars = 3000

      Update PHP max_input_vars in wp-config.php File

      Find the wp-config.php file in the root folder of your WordPress Installation. Just open it and write the below code and save.

      WP_config file location to update PHP max_input_vars

      @ini_set( ‘max_input_vars’ , 3000 );

      • 7
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • edin

        edin

        • United States (US)
        • 42 Questions
        • 4 Answers
        • 0 Best Answers
        • 45k Points
        View Profile
        edin
        2021-02-12T18:42:54+00:00Replied to answer on February 12, 2021 at 6:42 pm

        Thanks you so much, it really helped me! Thanks again

        • 5
        • Reply
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
    2. MaxL

      MaxL

      • United Kingdom (UK)
      • 44 Questions
      • 7 Answers
      • 2 Best Answers
      • 56 Points
      View Profile
      MaxL
      2021-02-13T06:02:51+00:00Added an answer on February 13, 2021 at 6:02 am

      I faced the same issue a few months ago, but I fixed it through cancel. I think, it’s the fastest way to change the PHP max_input_vars. Please follow these simple steps:

      PHP max_input_vars change from Cpanel

      1. Login to your Cpanel
      2. Search for “MultiPHP INI Editor” and click there
      3. In the “Configure PHP INI basic settings,” choose your domain name (yourdomain.com)
      4. Now in the fourth row, you can find ” max_input_vars.”
      5. Update its value to 3000 and apply.
      6. Done
      • 7
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. JustinS

      JustinS

      • Germany
      • 0 Questions
      • 5 Answers
      • 0 Best Answers
      • 26 Points
      View Profile
      JustinS
      2021-02-16T18:40:33+00:00Added an answer on February 16, 2021 at 6:40 pm

      PHP.INI File Method:

      Please add the following code in a file named php.ini. You can find this file in the WordPress root folder. If you did not found the file, you can create the file php.ini in the root folder and place the following line.

      max_input_vars = 4000

      .htaccess File Method:

      You can find the file named “.htaccess” in the root folder. Place the below code in the new line of htaccess file at last.

      php_value max_input_vars 2000

      • 3
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. manishakhd

      manishakhd

      • Nepal
      • 0 Questions
      • 9 Answers
      • 5 Best Answers
      • 161 Points
      View Profile
      manishakhd
      2021-02-20T16:29:19+00:00Added an answer on February 20, 2021 at 4:29 pm

      When setting up some of the WordPress themes or plugins, you may see this kind of error messages. It asks you to increase PHP Max_Input_Vars in your Cpanel or theme. You may go through several options like htaccess, php.ini, wp-config or Cpanel. I usually use htaccess and wp-config method.

      htaccess method

      Add this code in htaccess file

      php_value max_input_vars 5000

      • 4
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Sidebar

    Ask A Question

    Questions Categories

    • Animal
    • Automobile
    • Business & Finance
    • Computer
    • Country
    • Education
    • Electronics
    • Entertainment
    • Fashion
    • Festival & Culture
    • Food
    • Game
    • Health & Beauty
    • History
    • Language
    • Lifestyle
    • Mobile
    • Movie
    • Music
    • Nature
    • Politics
    • Product
    • Reviews
    • Science
    • Sports & Fitness
    • Technology
    • Travel

    Explore

    • Recent Questions
    • Most Answered
    • Most Visited
    • Most Voted
    • No Answers
    • Questions For You
    • Polls
    • Followed Questions
    • Favorites Questions
    • Answers For You

    © 2021 StackQuestion. All Rights Reserved.
    Home | About Us | FAQs | Privacy Policy | Terms & Conditions | Disclaimer | Contact Us

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.