Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
share|improve this question

2 Answers 2

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.

share|improve this answer

Check PHP's documentation about the configuration files.

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

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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