'2 php.ini files

I have found that:

When I type the following on terminal:

php -i | grep php.ini

I get the output:

The Loaded Configuration file is @ /etc/php5/cli/php.ini

However, from phpinfo(), I get to see:

The loaded ini file is @ /etc/php5/apache2/php.ini

Which one of these is working right now? How is it possible to have two php.ini files ?



Sources

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

Source: Stack Overflow

Solution Source