[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2009-02-08
Medium Priority
Last Modified: 2012-06-21

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/


Question by:Rowby Goren
LVL 14

Accepted Solution

psadac earned 2000 total points
ID: 23584775
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"

Author Closing Comment

by:Rowby Goren
ID: 31544288
Thanks for the prompt and fast (and easy!) fix.    It's working great now.

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question