Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. aby

    aby Well-Known Member

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

    you will find the domlogs there. You can clear the stuff if you need using a simple script.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hardjoko

    hardjoko Active Member

    Joined:
    Jun 22, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    166
    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;
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice