We help IT Professionals succeed at work.

Turning off error reporting via php.ini -- is it possible -- and how?

Rowby Goren
Rowby Goren asked
on
Medium Priority
1,375 Views
Last Modified: 2012-06-21
Hi

I need, at least as a test, to turn off error reporting. Is this something I can do via a php.ini file.  Linux.

PHP Version:          5.2.6
Web Server:       Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

Thanks

Rowby
Comment
Watch Question

Commented:
if you want to log error but not display them (typically for a production server), edit your php.ini :

display_errors = Off
log_errors = On
error_log = "/var/log/php_error.log"

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks for the prompt and fast (and easy!) fix.    It's working great now.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.