Max_input_vars not getting updated

Hi, Presently we started working with a new theme and they are asking to increase the PHP Max Input Vars from 1000 to 5000. We tried editing the PHP files in the php.ini file but the problem was not resolved! Kindly suggest ways to resolve the issue!
The change we did was,

; How many GET/POST/COOKIE input variables may be accepted
;max_input_vars = 5120

remove ; from start as it is considered comment in .ini file and then do killall lsphp

1 Like

Oh :confused: :s . That little " ; " took me 3 days untill i found this answer. <3

i dont understand how fix this

@WAR_K1NG_ONE the process is mentioned here → Config PHP session save path — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

Rather then updating session path you can update max_input_vars

thanksa a lot im beginer in cyberpanel

Following up on this, here’s how I fixed my issue:

  • Go to PHP → Edit PHP Configs in CyberPanel
  • Click on “Advanced”
  • Search “max_input_vars”
  • Remove the ; before max_input_vars (that’s commenting it out)
  • Change the 1000 to whatever you need (I used 5000)
  • Click “Save Changes”
  • Click “Restart PHP”
1 Like

works for me
thanks

From the updated version follow this.

  • Go to PHP → Edit PHP Configs in CyberPanel
  • Click on “Advanced”
  • Search “max_input_vars”
  • Remove the ; before max_input_vars (that’s commenting it out)
  • Change the 1000 to whatever you need (I used 5000)
  • Click “Save Changes”
  • Click “Restart PHP”
1 Like

how to set individual ?
image
not working

new 2.3.1 latest commit

Thank you very much. it helped me too… :muscle: :muscle: :pray: :pray: :pray: