cant seem to find the right php.ini file

  • my question is where is the right PHP.Ini that i need to edit

    for plugins and website stuff i need to change the PHP Max Input Vars to 4000


    i have been searching but could not find the answer

    also did edit as much php.ini i could find but it did not work

    restarted apache and restarted I-Mscp did not work


    i-MSCP 1.5.3

    Build: 2018120800

    Codename: Ennio Morricone


    Operating System: Linux
    Software: Apache
    MySQL version: Debian 9.8 v5.6.42-84.2
    PHP Version: 7.1.31-1+0~20190807.22+debian9~1.gbpf402ed
    PHP Max Input Vars: 1000
    PHP Max Post Size: 490M
    GD Installed: Yes
    ZIP Installed: Yes
    Write Permissions: All right

    wt nx mr lr snl

  • The php.ini file gets rewritten during upgrades/etc..

    Change settings in the panel.

    update is not the problem and settings in the pannel does not have the PHP Max Input Vars: settings

    or am i missing something ?

    wt nx mr lr snl

  • Ah ja, just noticed that ... sorry.

    You need to restart php, not the apache and so on.

    The php files should be located in /etc/php/version-of-php/ . If you use fpm, its in the fpm folder.

    Have a nice day. :)

  • php --ini | grep "Loaded Configuration File"

    Loaded Configuration File: /etc/php/7.1/cli/php.ini



    so i guess i have to edit that file and then use

    service php7.1 restart


    is that correct ?


    here is what i did

    edit that file with this

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

    max_input_vars = 4000


    then command

    /etc/init.d/php7.1-fpm restart


    looked at my site and its still vars on 1000 :blush:


    wt nx mr lr snl

    Edited once, last by check ().

  • Loaded Configuration File: /etc/php/7.1/cli/php.ini

    Please think a bit more.... Here you're talking about the php.ini file of the CLI SAPI which isn't FPM SAPI... You need to change the one for the FPM SAPI (assuming that you're using FPM to run your sites...).... And anyway, if you do so, you should edit the pool configuration file, not the php.ini file ;)

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

  • Please think a bit more.... Here you're talking about the php.ini file of the CLI SAPI which isn't FPM SAPI... You need to change the one for the FPM SAPI (assuming that you're using FPM to run your sites...).... And anyway, if you do so, you should edit the pool configuration file, not the php.ini file ;)

    thnx man i knew i was doing something wrong so i need to search for the pool file?

    and what do i need to put into it ?


    i just want to get the vars valeu up and working on that for 2 days now

    wt nx mr lr snl

  • so i guess there is no simple solution for increasing the max_vars to 4000 ?

    like edit a file or something and restart/reboot

    the whole web is talking about user.ini, php.ini and/or htaccess

    so that kind a is misleading then ?

    wt nx mr lr snl

    Edited once, last by check ().

  • never mind found it

    took me some time but thnx anyway

    Operating System: Linux

    Software: Apache

    MySQL version: Debian 9.8 v5.6.42-84.2

    PHP Version: 7.1.31-1+0~20190807.22+debian9~1.gbpf402ed

    PHP Max Input Vars: 4000

    PHP Max Post Size: 490M

    GD Installed: Yes

    ZIP Installed: Yes

    Write Permissions: All right

    wt nx mr lr snl