PHP Error Reporting Print

  • php error, error reporting, php.ini, display error
  • 0

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

Was this answer helpful?

« Back

Powered by WHMCompleteSolution