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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/scripts/securetmp -- How to create MUCH LARGER /tmp folder?

Discussion in 'General Discussion' started by pkiula, Apr 29, 2012.

  1. pkiula

    pkiula Member

    Jan 14, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    The default setting for disk size in the script
    is about 512 MB.

    This is pretty useless for any real world server with a website that gets any amount of meaningful traffic.

    I went into the script and changed the value in the following line:

    #---- my $tmpdsksize     = 512000;    # Must be larger than 250000
    my $tmpdsksize     = 2097152;;    # Must be larger than 250000
    Then I executed the usual commands:

    lsof /tmp
    umount -l /tmp
    umount -l /var/tmp
    rm -fv /usr/tmpDSK
    Then I do the "df -h" and it shows me this:

    /dev/sda8     ext3    996M  509M  436M  54% /tmp

    Why is it "996M" when I specified 2GB? It should be close to 2000M right?

    Any tips welcome. Thanks.
    #1 pkiula, Apr 29, 2012
    Last edited: Apr 29, 2012

Share This Page