Page 1 of 1

PHP error logging per dir

Posted: Wed Apr 07, 2010 6:27 am
by Slithers
Hello all

Complete PHP novice here so please be nice if what i'm about to ask is complete elementary!

We have a debian server which we use as a development server and also plays host to our rrd monitoring software (cacti). Cacti runs a script of its crontab every 5 mins to generate its statistics but as we use php 5.3 and 0.8.7 version of cacti we get huge amounts of deprecated errors in our php error.log.

The recommended fix is to add this to our php.ini:

; error_reporting
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
error_reporting = E_ALL & ~E_DEPRECATED

However this would stop the error logs for all the apps using php on the dev server (which we need).

I'm of the understanding you can stop error logging per dir (new feature of 5.3), but after some furious googling i can't find any sort indication as to how to do this?

Can someone enlighten me as to how to do this?, as at the moment i'm torn between setting up a 2nd php instance on the same box (not too keen on this), or having to move the install elsewhere (not really an option as we have no spare boxes at the datacenter)

Thanks

Matt Smith