How do I add max_input_vars without editing php.ini?

epanagio

Well-Known Member
May 26, 2012
50
1
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
 

systemn

Member
PartnerNOC
Jun 21, 2011
16
1
53
cPanel Access Level
Root Administrator
Twitter
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
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
 
  • Like
Reactions: YazminMedia