Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How do I add max_input_vars without editing php.ini?

Discussion in 'General Discussion' started by epanagio, Jan 25, 2013.

  1. epanagio

    epanagio Well-Known Member

    Joined:
    May 26, 2012
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    58
    cPanel Access Level:
    Website Owner
    Is there a way to add max_input_vars=<some number> without editing the php.ini file? I want to use the cpanel interface to minimize possible errors.

    I looked into the advanced mode of the php editor and max_input_vars in not there.

    If the only way is to edit php.ini where is it located?

    Thanks, Evan
     
  2. systemn

    systemn Member
    PartnerNOC

    Joined:
    Jun 21, 2011
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    53
    cPanel Access Level:
    Root Administrator
    Twitter:
    I just go to nano /usr/local/lib/php.ini

    and add this

    ; Max Input Vars
    max_input_vars = 3000
    suhosin.post.max_vars = 3000
    suhosin.request.max_vars = 3000
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    YazminMedia likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice