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.

Removing Log files for specific domain

Discussion in 'General Discussion' started by srprasad, Aug 17, 2004.

  1. srprasad

    srprasad Registered

    Joined:
    Mar 4, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    I have a request from one of my Client that a lot of space is being used by the
    logs and he wants them to be removed, how can i do this.

    As of now i have enabled the option "Remove the previous month's archived logs from your home directory at the end of each month " from his Cpanel / Raw Log Manger

    Even though i have enabled the above option i still see the last 6 months stats links being shown, so iam not sure when this will take effect.

    Can anyone help me on this.


    Regards
    Ratna
     
  2. p_s_p

    p_s_p Member

    Joined:
    Feb 8, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hello Ratna,
    If you have the root access then you can visit at /usr/local/apache/domlogs and fire the command ls -lh domainname* (your clients domain name) to display all the log files of that domain, then you can just fire up the command echo > 'filename with greatest size' to remove its contents, for eg. echo > xyz.com, that's all
     
Loading...

Share This Page