The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Newbie Question: Displaying Errors for single Domain

Discussion in 'General Discussion' started by jparker3119, Jul 31, 2012.

  1. jparker3119

    jparker3119 Member

    Joined:
    May 18, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
  2. jparker3119

    jparker3119 Member

    Joined:
    May 18, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    ADDED LATER: Perhaps this is because the error log is already available for viewing in cPanel? DUH?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page