2 php.ini files

Depends on where you are running PHP from. If you run it from command line, it uses the cli/php.ini and apache2/php.ini when run through apache. You are executing phpinfo() through the browser, hence you get /etc/php5/apache2/php.ini as the answer. Running php -r “phpinfo();” | grep “Loaded Configuration” from the terminal should output the CLI ini. … Read more