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.

/usr/ is getting full

Discussion in 'General Discussion' started by Luke87, Jan 25, 2004.

  1. Luke87

    Luke87 Member

    Joined:
    Dec 16, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hi my usr dir is 88% full.

    Just wondering if there are old logs I can delete which are taking up space. Also whats the path to these?

    Thanks
     
  2. darkpunk99

    darkpunk99 Registered

    Joined:
    Oct 30, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Try moving logs to another directory.

    1. create a usr directory in the home directory
    2. change directory to the apache directory
    3. stop apache running
    4. move the log files to the new location
    5. create the symlink
    6. restart apache.

    mkdir /home/usr/
    cd /usr/local/apache/
    /etc/rc.d/in*/httpd stop
    mv domlogs /home/usr/
    ln -s /home/usr/domlogs/ domlogs
    /etc/rc.d/in*/httpd start
     
  3. Luke87

    Luke87 Member

    Joined:
    Dec 16, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, but usr is now 87% use so there must be other logs filling up that partition.
     
  4. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    Look in your /usr/local/apache directory and see if you have core files. When compiling Apache it always creates several and they are several hundred meg each.
     
  5. LS_Drew

    LS_Drew Well-Known Member

    Joined:
    Feb 20, 2003
    Messages:
    187
    Likes Received:
    0
    Trophy Points:
    16
    try:

    cd /usr/local/apache/logs

    ls -Sahl |more

    That will list the logs in that directory, in size order.
     
  6. Luke87

    Luke87 Member

    Joined:
    Dec 16, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, I found a 240mb error_log

    thats about it.
     
  7. aingaranweb

    aingaranweb Well-Known Member

    Joined:
    Mar 23, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Toronto, Ontario
    can we delete error_log?
     
  8. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    IMO it's better to make sure error_log is in your logrotate.d/apache or similar file, where it will be rotated regularly.
     
Loading...

Share This Page