Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2003
    Location
    California, USA
    Posts
    13

    Default how to clear error logs

    how do you clear/delete the error logs for certain accounts?
    Mitty Chang

  2. #2
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Do you want to clear it or delete it?

    To clear it:
    echo > filename

    To delete it:
    rm filename

  3. #3
    Member
    Join Date
    Nov 2003
    Location
    California, USA
    Posts
    13

    Default

    But where are the error logs located?
    Mitty Chang

  4. #4
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    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. #5
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You're not wrong. They are all in 1 file which is read from as needed.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. How can i set logs to clear every 100mb?
    By ASTRAPI in forum Optimization
    Replies: 0
    Last Post: 03-28-2011, 09:23 AM
  2. How to clear the Error Log?
    By JackieServer in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-13-2009, 05:08 AM
  3. Replies: 0
    Last Post: 03-12-2008, 01:40 PM
  4. Server Didn't Clear Logs?
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-17-2006, 08:18 AM
  5. Clear EXIM logs
    By mdelacruz in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-05-2005, 03:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube