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.

Preventing doubled reports

Discussion in 'General Discussion' started by GoWilkes, Nov 18, 2010.

  1. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I have a server that only runs one website. In looking through the server, though, I see that it's reporting logs here:

    /usr/local/apache/domlogs/

    As well as a duplicate copy here:

    /usr/local/apache/domlogs/[myaccountname]/

    These logs are currently around 600MB. The one without [myaccountname] actually has a little more data, because it includes "-bytes_log" and "-bytes_log.offset" files.

    I obviously don't need two copies of access logs, but I still want Urchin to report correctly. Can I remove one of these?

    If so, how can I prevent more duplicate logs from being copied to that location?
     
  2. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    I have the same thing and its eating up my /usr to a point where its getting around 90%. I cant see why there is two, doesnt this also add to alot of uneeded disk writing?
     
  3. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Until someone gives us a better answer, running these commands might help clear up some space temporarily:

    rm -rf /usr/local/apache/logs/error_log
    rm -rf /usr/local/apache/logs/suexec_log
    touch /usr/local/apache/logs/suexec_log
    httpd restart

    Just log in to SSH and run each line, one at a time. The first one deletes the error log; the second deletes suexec log, the third recreates suexec log (but leaves it empty), and the fourth restarts Apache.

    You can also remove the logs here:

    /usr/local/apache/logs/archive (these are just backups from /logs/)

    If you don't use Urchin, then you can also run these (changing "yourdomain" to whatever the file name is):

    rm -rf /usr/local/apache/domlogs/[yourdomain].com
    touch /usr/local/apache/domlogs/[yourdomain].com

    If you're running Urchin, then you'll lose the stats for the day, but if you're running something off-server (like Google Analytics) then there shouldn't be a problem.

    All of these grow over time, though, so it's just a temporary fix.
     
  4. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    I am familiar with all that stuff, I just dont understand why we have to keep two identical copies of the files.
     
Loading...
Similar Threads - Preventing doubled reports
  1. dynaweb
    Replies:
    2
    Views:
    390

Share This Page