Increasing /tmp beyond 10 GB
AnsweredI need to increase the size of /tmp to 100 GB.
A new version of cPanel (136.0.25) includes the /tmp configuration within "Tweak Settings."
This setting prevents the /tmp partition from being increased beyond 10 GB.
In earlier versions of cPanel, this was handled in `/scripts/securetmp`.
Now, the option in `/scripts/securetmp` looks like this:
`my $tmpdsksize = $use_custom_size ? $cpconf->{'securetmp_file_size'} * 1024 : $min_size;`
Does anyone know if it is safe—in this version of cPanel—to modify `/scripts/securetmp` as was done in previous versions by specifying the size, for example:
`my $tmpdsksize = 100000000`
(for 100 GB)?
-
Hey there! Yes - the details in the second half of this guide still work on a version 136 system:
Is there a specific reason you need to create such a large /tmp area?
0 -
Hi cPRex.
Yes, I use Monsta FTP, with a large volume of uploads.
When the `/temp` directory hits 100% capacity, the entire system freezes. Restarting Apache doesn't help; I have to reboot.
I modified `my $tmpdsksize`, and it worked.
Thanks!0 -
That makes sense, and I'm glad to hear it worked!
0
Please sign in to leave a comment.
Comments
3 comments