phpinfo()和加载的php.ini不匹配

It's happening something really weird, never happened to me before now. im working on a LEMP server (Ubuntu, PHP5-fpm, MySql, Nginx) and i modified /etc/php5/fpm/php.ini. Then i have decided to check my work through phpinfo(), but none of my changes seem to be applied .

phpinfo() says:

  • Configuration File (php.ini) Path : /etc/php5/fpm (ok)
  • Loaded Configuration File : /etc/php5/fpm/php.ini (ok)

But the values displayed by phpinfo do not match with the loaded php.ini!! For example allow_url_fopen is set to "Off" in php.ini, while both phpinfo() and ini_get("allow_url_fopen") return 1!! the same with "file_uploads", "expose_php" and so on..

any idea of what is happening? thank you

EDIT Already tried:

  • nginx restart
  • php5-fpm restart
  • server reboot
  • the only php.ini file which can be loaded is the one i have modified because i do not have no others php installations (cli or "standard")