Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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!
     
  2. jparker3119

    jparker3119 Member

    Joined:
    May 18, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    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:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice