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.

Cleaning up after turning off analog and webalizer

Discussion in 'General Discussion' started by spaceman, Dec 21, 2003.

  1. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    Hi All,

    Via WHM I've just turned off analog and webalizer in favour of awstats.

    I know want to free up all the space used by analog and webalizer. Is this a case of visiting each account one by one and deleting the following directories:

    /tmp/analog
    /tmp/webalizer
    /tmp/webalizerftp

    ... or perhaps there is a script I can run that will perform the cleanup for me across all accounts?

    (of course, in a perfect world, in WHM when I select to disable these packages it would be great to have the option to delete all related files at the same time!)

    Thanks.
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Don't need a script to delete all of them. In shell just do:

    rm -Rf /home/*/tmp/analog
    rm -Rf /home/*/tmp/webalizer
    rm -Rf /home/*/tmp/webalizerftp


    I see no reason why they can't be deleted in full if they aren't being used anymore.
     
  3. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    Doh! Now why didn't I think of that? :)

    I'm assuming of course that

    a) it is indeed 100% 'safe' to remove these directories now that I've turned these packages off.
    b) there are no other files or directories of significance that I should also be removing.

    Thanks.
     
Loading...

Share This Page