Knowledgebase: Server
PHP Error Reporting
Posted by Kunal SG on 06 December 2013 03:00 PM

If your user doesn't have a php.ini file you may have to create one. This will go in the public_html folder for that user.

display_error = off
log_errors = On
error_log = "error.log"


Advance PHP Error handling via .htaccess

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0
# enable PHP error logging
php_flag  log_errors on
php_value error_log  /home/path/public_html/domain/PHP_errors.log
(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Copyright - SKY DEVELOPMENT, All rights reserved.