'Can't change max_input_vars limit in php.ini

I need to change PHP max_input_vars variable but after change in php.ini and server restart phpinfo shows old value all the time. This is what i do:

in phpinfo() i've got

...
Loaded Configuration File /etc/php.ini
...
max_input_vars  1000

from server CL I've edit /etc/php.ini and uncomment line with max_input_vars it looks like this:

...
max_input_vars = 5000
...

after this changes and restarting web server

systemctl restart httpd

phpinfo still shows max_input_vars as 1000 It looks like php use some other php.ini or values are overwritten because with other settings like max_execution_time is the same.

If i'm doing it wrong way? Is this possible that phpinfo shows different configuration file than the one used?

phpinfo output:

phpinfo output

php


Solution 1:[1]

first: Method is edit the PHP. ini file Locate your PHP. ini file. ... If you find your existing PHP. ini, open the file and locate the following line of code (xx represents a number): max_input_vars = xx ; And set it to your desired limit. ... If you created your own PHP. ... Save your changes, and reboot your localhost or your server.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 kubra8