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!

how to clear error logs

Discussion in 'General Discussion' started by Argious, Dec 2, 2003.

  1. Argious

    Argious Member

    Joined:
    Nov 24, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    California, USA
    how do you clear/delete the error logs for certain accounts?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Do you want to clear it or delete it?

    To clear it:
    echo > filename

    To delete it:
    rm filename
     
  3. Argious

    Argious Member

    Joined:
    Nov 24, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    California, USA
    But where are the error logs located?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Hmm. I was thinking access logs, sorry. I don't think you can delete error logs individually. I think they are combined in /usr/local/apache/logs/error_log
    But I could be wrong.
     
  5. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    You're not wrong. They are all in 1 file which is read from as needed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    The only way to delete the error logs for just one account would be to write a script to read and rewrite the error log leaving out the lines for that domain. Wouldn't be worth the trouble.
     
    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