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.

tmp file keeps getting full

Discussion in 'General Discussion' started by numarketing, Mar 2, 2014.

  1. numarketing

    numarketing Member

    Joined:
    Jan 9, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hi
    I am new to cpanel & whm
    I have a VPS with tmp fiile, which was appx 450 MB and was getting full.
    I increased the space to 1GB and after few days its full again.
    My assumption was it will cron and should get empty itself. but it seems not doing??
    is there any way i could have it to empty itself??
    or
    do i need to empty it myself?? if thats the case, is someone can tell me how to do it??
    sanjay
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    What sort of files are contained in /tmp? If it's session files then they should clear automatically. You may also want to look into tmpwatch. If it's not installed it would need to be installed first (in most cases that's yum install tmpwatch)

    Once installed, type: man tmpwatch

    An example on how to use it might be something like this:

    Code:
    tmpwatch --mtime --all 336 /tmp
    
    The above will remove all files/dirs from /tmp if they are not accessed in last 2 weeks (24 * 14 days = 336)
     
  3. numarketing

    numarketing Member

    Joined:
    Jan 9, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hi
    thats great thx, it helped
    sanjay
     
Loading...

Share This Page