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.

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:
    1
    Location:
    California, USA
    how do you clear/delete the error logs for certain accounts?
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    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:
    1
    Location:
    California, USA
    But where are the error logs located?
     
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    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:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You're not wrong. They are all in 1 file which is read from as needed.
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
Loading...

Share This Page