Created
April 27, 2020 13:54
-
-
Save mzfshark/67e1f12dded0f3ddd9cbc01a5f1f6ad5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cPanel's minimal tmp setup is horrific at best. With stuff climbing up there constantly, it should be increased from 512mb to at least a 2-3 gig partition. Here's how to do this: | |
Step 1: Remove the old tmp space | |
service httpd stop | |
service mysql stop | |
rm -rf /usr/tmpDSK | |
Step 2, edit the script used to create tmp space | |
nano /scripts/securetmp | |
In there, look for | |
my $tmpdsksize = 512000; # Must be larger than 250000 | |
and replace it with | |
my $tmpdsksize = 3072000; # Must be larger than 250000 | |
Save (ctrl-X , then y when asked), and reboot the server | |
shutdown -r now | |
The system will adjust temp sizes when it comes back up. | |
For whatever reason, unmounting tmp is close to impossible, even if mysql and http aren't running. Your best bet is to follow the above (which I've done many times and never had a problem with) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment