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.


    Allan

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

    Code
    1. ; max_input_vars = 1000


    to:

    Code
    1. max_input_vars = 3000


    Update it by running the imscp-setup script:


    Code
    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.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @eric_shi


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

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206