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.

error_log created in public_html - how to prevent?

Discussion in 'General Discussion' started by IIIBradIII, Jan 25, 2010.

  1. IIIBradIII

    IIIBradIII Member

    Joined:
    Apr 13, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    We recently moved our sites to a new server (both old and new servers running cpanel though) and now each site is having its errors logged to a error_log file in the document root instead of just to the standard error log that we're accustomed to checking in Cpanel.

    How do we make sure errors are only logged so that we can view them in cpanel and prevent that error_log file from being created and used?
     
  2. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Edit this file

    then search for

    and change it to Off instead of On
     
  3. IIIBradIII

    IIIBradIII Member

    Joined:
    Apr 13, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    php errors will still be logged to the cpanel error log though, correct?
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Errors logged by Apache will be available in cPanel.

    Unless disabling PHP error logging is intended I would not advise this; the best solution in my opinion is to correct the problem that triggered the error.
     
  5. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    I agree with cPanelDon you must not disable the error_logs as it will help you much to solve a lot of problems.
     
Loading...

Share This Page