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.

Location of domlogs

Discussion in 'General Discussion' started by hardjoko, Sep 4, 2005.

  1. hardjoko

    hardjoko Active Member

    Joined:
    Jun 22, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    What are the exact location of domlogs

    Is it save to delete all files in domlogs. I mean to free hard disk space. I do not need my old logs. So I like to clear stuff up regularly, like once a year.

    Also, where do information about visitors kept anyway?

    Is it kept in domlogs directory or is it stored in ~username/tmp
     
  2. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cd /usr/local/apache/

    you will find the domlogs there. You can clear the stuff if you need using a simple script.
     
  3. hardjoko

    hardjoko Active Member

    Joined:
    Jun 22, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Will going to domlogs directory and type rm * will do?

    Will it be save?

    Will there be any harm besides losing the old logs?

    Is there a special script for this?

    I am only going to do this like once a year, so not like I am going to automate it or anything.
     
  4. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    A very simple script like this should do the job


    cd /usr/local/apache/domlogs/
    for x in `ls`;
    do
    echo "" > $x;
    done;
     
Loading...

Share This Page