Newbie Question: Displaying Errors for single Domain

jparker3119

Member
May 18, 2012
6
0
51
cPanel Access Level
Root Administrator
I need to be able to post errors for a single domain, preferably to log in the domains /www/logs directory.
Apparently one can do this using home/domainName/pubic_html/.htaccess, but I have been unable to.
I get Internal Server Error when trying the following:

php_value error_reporting 7
php_flag display_errors On

or

enable PHP error logging
php_flag log_errors on
php_value error_log /home/domainName/public_html/PHP_errors.log

I have included no other lines of code other than these.
Thanks for any clarification!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Yes, you can view error logs for the account in cPanel under the "Error Log" option. The use of "php_flag" or "php_value" entries in .htaccess files is not supported when using suPHP as your PHP handler. Instead, you can use a custom php.ini file within the account, as mentioned at:

suPHP Considerations

Thank you.