PHP error reporting level

What’s the best way/place to set the error reporting level for PHP under
Apache2?
Before I reinstalled everything on my server I had it set to report ALL
errors, and I’d like to have it configured like that again.

I see some options in /etc/php5/cli/php.ini but it doesn’t seem this is
the file I modified before as I have my old /etc/ folder backed up and
compared the backup with the current via the sdiff -l command and the
files were equal (except for one line unrelated to error reporting).

-I’m well aware that it is a possible security risk, but I’m developing
on this testserver and would like to produce code as error free as
possible… and in order to do see I’ve to actually see the errors-


Server: openSUSE 11.1, Athlon 64 LE-1640, HDD 3 * 1TB, 1*640GB, 2GB
RAM, Ati Radeon 3200
Desktop: openSUSE 11.1, Intel Q6600, HDD 2 * 320GB, 4GB RAM, NVIDIA
8800GT
Laptop: openSUSE 11.1, Intel p8400, HDD 280GB, 4GB RAM, NVIDIA 9600GT

Axeia’s Profile: http://forums.opensuse.org/member.php?userid=4794
View this thread: http://forums.opensuse.org/showthread.php?t=402690

Ah nevermind… found it with the help of
DIFF -R /HOME/XXXXX/BACKUP /ETC/PHP5/APACHE2/PHP.INI

Never realised my backup would be this useful… or that such powerful
commands were possible from a simple console :). Returned the filenames
of the files that differed and the line number / character.
(-Most importantly it made me feel smart… after messing up things the
entire day-)

For those who are looking to do the same, the file is
/etc/php5/apache2/php.ini

line #375, simply change the “display_error = Off” to
“display_errors = On”


Server: openSUSE 11.1, Athlon 64 LE-1640, HDD 3 * 1TB, 1*640GB, 2GB
RAM, Ati Radeon 3200
Desktop: openSUSE 11.1, Intel Q6600, HDD 2 * 320GB, 4GB RAM, NVIDIA
8800GT
Laptop: openSUSE 11.1, Intel p8400, HDD 280GB, 4GB RAM, NVIDIA 9600GT

Axeia’s Profile: http://forums.opensuse.org/member.php?userid=4794
View this thread: http://forums.opensuse.org/showthread.php?t=402690