How to increase the /tmp Partition Size in cPanel

First you need to stop cpanel, apache , mysql services:

/etc/init.d/cpanel stop
/etc/init.d/httpd stop
/etc/init.d/mysql stop

Here I am increasing the tmp disk space to 2GB

root@test [/var/tmp]# vim /scripts/securetmp
———————————->
my $tmpdsksize = 512000; # Must be larger than 250000

my $tmpdsksize = 2097152; # Must be larger than 250000
———————————->
root@test [/]# umount -l /tmp
root@test [/]# umount -l /var/tmp
root@test [/]# mv /usr/tmpDSK /usr/tmpDSK_back

Modify /scripts/securetmp to set tmpdsksize to desired size:

root@test [/var/tmp]# /scripts/securetmp
Would you like to secure /tmp & /var/tmp at boot time? (y/n) y
Would you like to secure /tmp & /var/tmp now? (y/n) y
Securing /tmp & /var/tmp
/tmp is already secure
/var/tmp is already secure
Checking fstab for entries …Done
Logrotate TMPDIR already configured
Process Complete

Start cpanel, apache , mysql services:

/etc/init.d/cpanel start
/etc/init.d/httpd start
/etc/init.d/mysql start

=========================================>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s