I'm getting a Deprecated warning despite the following setting in /etc/php5/apache2/php.ini

I don't see a CLI specific php.ini, Do I need to create create one? Where else would this setting be coming from?

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
link|improve this question

feedback

2 Answers

up vote 0 down vote accepted

Which distribution?

/etc/php5/apache2/php.ini - try /etc/php5/cli/php.ini if it's present or try from shell #php -i | grep php.ini and edit this file.

link|improve this answer
feedback

Check PHP's documentation about the configuration files.

In Gentoo Linux, the configuration for CLI PHP is under /etc/php/cli-php5.

link|improve this answer
I've looked closer, on Ubuntu-server (I should've specified) /etc/php5/cli/php.ini – Webnet Aug 28 '10 at 21:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.