Increasing php max_input_vars but where ?

  • Hi all.

    I need to increse the max_input_vars variable in php.ini normally set to 1000. Due to some wordpress functionality I need to increase this.

    But what php.ini file would that be ?

    I'm running I-MSCP 1.1.0-rc4.6 php-fpm, but there are quite a few php.ini files on the system.

    Best regards.


  • nano /etc/php5/fpm/php.ini
    uncomment this line:

    1. ; max_input_vars = 1000


    1. max_input_vars = 3000

    Update it by running the imscp-setup script:

    1. # cd /var/www/imscp/engine/setup
    2. # perl imscp-setup -d

    (on my opinion)

    ubuntu 12.04 | i-MSCP 1.1.0-rc4.7

    Edited once, last by Lazarevics ().

  • It is not working in version 1.2.2,
    perl imscp-setup -d will overwrite the changes.
    Please fix it, thanks.

  • @eric_shi

    This is the expected behavior and we do not plan to change this in Serie 1.2.x. In serie 2.x.x we will provide better PHP configurator which will allow to make any arbitrary PHP settings configuration through the GUI.


  • @eric_shi

    • Learn linux and PHP
    • Search on our forum. We already answered this question many time