Page 1 of 1

Problems with display_errors configuration

Posted: Sun Sep 12, 2004 5:22 pm
by niihon
hello to everyone and thanks in advance for your help. I am running Apache/2.0.50 (Win32) PHP/5.0.1, i dont want errors to be displayed in my html, when i change the display_errors directive to Off it still continues to throw up errors on me even after restarting, any ideas?

/peter

Posted: Sun Sep 12, 2004 5:24 pm
by feyd
where'd/how'd you turn off display_errors?

Posted: Sun Sep 12, 2004 5:32 pm
by niihon
c:\windows\php.ini

Posted: Sun Sep 12, 2004 5:33 pm
by niihon
; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = Off

^ php.ini

thanks
/peter

Posted: Sun Sep 12, 2004 5:45 pm
by feyd
Hmm.. although I don't have php5 running on my machine, I don't think the ini has really changed much since php4. So, my guess would be that maybe you have an htaccess that may be resetting it somehow, or you didn't change the right php.ini file.. run this script and find the display errors setting inside it:

Code: Select all

<?php

phpinfo();

?>

Posted: Sun Sep 12, 2004 5:49 pm
by niihon
display_errors On On <master master
^local value

hmm, so is this apache doing it or php/ how do i fix this?
thanks

Posted: Sun Sep 12, 2004 5:54 pm
by feyd
apache is likely loading the php.ini from somewhere other than windows/php.ini.. probably "program files/apache group/apache2/" or a child of that folder.

Posted: Sun Sep 12, 2004 6:01 pm
by niihon
thanks very much, it looks like apache looks for it in program c:\php\php.ini