Waste of space in stats

Discussion in 'Site & Server Administration' started by brk, Apr 28, 2007.

  1. #1
    Hi! I have Cpanel and I just ran out of disk quota. I noticed that stats are eating into my space allowance and I was wondering what I can get rid of.

    I mean, what can I safely delete?

    Thank you for any help!
     
    brk, Apr 28, 2007 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you delete, then all stats data might get lost.
    Also, on some servers, awstats, webalizer, etc. are loaded.
    If you use only one of them, just delete the corresponding other folders in /tmp
     
    agnivo007, Apr 28, 2007 IP
  3. brk

    brk Guest

    Messages:
    282
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's ok if some data get lost.

    But I'm afraid of deleting one of them and then changing my mind. Basically I'd like to delete the data.

    Thank you!
     
    brk, Apr 28, 2007 IP
  4. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you have a server ? If so in WHM under Tweak Settings,

    Check - Delete each domain's access logs after stats run

    Uncheck - Keep log files at the end of the month (default is off as you can run out of disk space quickly)

    Uncheck - Keep Stats Log (/usr/local/cpanel/logs/stats_log) between cpanel restarts (default is off)

    With these option, it will delete raw logs once the stats are generated each day. Check the error_log too, each time your sites encounters an error, it will write to this file, if a problem is left unchecked, this file can really grow huge and quickly.
     
    eddy2099, Apr 28, 2007 IP
  5. brk

    brk Guest

    Messages:
    282
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you!

    But I don't have my own server.

    :)
     
    brk, Apr 28, 2007 IP
  6. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Well, I guess what you can do is ask your web host to delete your old log files. When Apache cannot find a log file, it will recreate it for you.

    Check to see if you find a error_log file found in there ?
     
    eddy2099, Apr 29, 2007 IP