.htaccess error reporting (PHP)

Ihave added below mentioned line in .htaccess file inorder to display PHP error.

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on


In some case you may face some errors like "Internal server error" while adding above lines. In such cases use below mentioned lines in your .htaccess file.

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag  log_errors on
php_value error_log  /home/path/public_html/domain/PHP_errors.log


Hope this will help you  :)

No comments: