The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    8
    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:
    3
    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
     
    YazminMedia likes this.
Loading...

Share This Page