where can I find the php.ini for php-cli

Elzo Valugi picture Elzo Valugi · Jun 16, 2010 · Viewed 74.8k times · Source

It appears that the php command line is using a different php.ini from the main php interpreter. I am using Ubuntu 10.4. My problem is that in the main php.ini I have included an extra path for an external library, but in the cli version this is not present, and so I have a path inclusion error.

thanks

Answer

timdev picture timdev · Jun 16, 2010

Just ask PHP:

php -i |grep php\.ini