Elzo Valugi Elzo Valugi - 2 months ago 22
PHP Question

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

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

Just ask PHP:

$ php -i |grep php\.ini