Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to increase /tmp partition size in cPanel  (Read 7653 times)

0 Members and 1 Guest are viewing this topic.

lijeshk

  • Guest
How to increase /tmp partition size in cPanel
« on: October 24, 2013, 06:36:01 pm »
If you need to increase /tmp partition size in cPanel server, please follow the steps given bellow.

Stop cpanel, apache (litespeed), mysql services:

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

Umount /tmp and /var/tmp:

#umount -l /tmp
#umount -l /var/tmp

Move /usr/tmpDSK file to another location:

#mv /usr/tmpDSK /usr/tmpDSK_back

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

#vi /scripts/securetmp
$tmpdsksize = 2048000

Run:

#/scripts/securetmp

Start cpanel, apache (litespeed), mysql services:

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

---
« Last Edit: October 25, 2013, 03:28:47 pm by lijeshk »