Problems with display_errors configuration

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
niihon
Forum Newbie
Posts: 5
Joined: Sun Sep 12, 2004 5:17 pm

Problems with display_errors configuration

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

where'd/how'd you turn off display_errors?
niihon
Forum Newbie
Posts: 5
Joined: Sun Sep 12, 2004 5:17 pm

Post by niihon »

c:\windows\php.ini
niihon
Forum Newbie
Posts: 5
Joined: Sun Sep 12, 2004 5:17 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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();

?>
niihon
Forum Newbie
Posts: 5
Joined: Sun Sep 12, 2004 5:17 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
niihon
Forum Newbie
Posts: 5
Joined: Sun Sep 12, 2004 5:17 pm

Post by niihon »

thanks very much, it looks like apache looks for it in program c:\php\php.ini
Post Reply