couldn't change php.ini values

shafie

Verified User
Joined
Jan 9, 2012
Messages
13
I have nginx+php-fpm, I am trying to change one value in php.ini, exactly the value for max_input_vars.
Steps that I did:
  • Change the value from 1000 to 1500
  • Restart nginx and the php-fpm processes

I execute the phpinfo() and I still have the old value.

Note:
I am using php 5.5 and the php.ini that I changed is /usr/local/php55/lib/php.ini

Any clue?
 
Are you sure you are editing the right config?

I think that so. When I execute phpinfo() it indicates that I am using /usr/local/php55/lib/php.ini and it is the file what I am changing.
 
I think that so. When I execute phpinfo() it indicates that I am using /usr/local/php55/lib/php.ini and it is the file what I am changing.
However if I execute in the console:
Code:
# php -i|grep max_input_vars
max_input_vars => 1500 => 1500

I don't understand this behaviour.

How it shows me 2 different values depending on the function executed?
 
it was my mistake, I forget to restart php-fpm:
Code:
/etc/init.d/php-fpm55 restart

Now all is going OK.

Note:
"php -i" is for php CLI
 
Back
Top