Increase /tmp partition size in cPanel
Sometimes /tmp partition can get overfilled, so no new information can be recorded. In such scenario, you need to increase the /tmp partition size. You can increase the /tmp size using the following steps:
1. Stop cPanel, Apache (litespeed) and MySQL services using following commands:
# /etc/init.d/cpanel stop
# /etc/init.d/httpd stop
# /etc/init.d/lsws stop
# /etc/init.d/mysql stop
2. Umount /tmp and /var/tmp:
# umount -l /tmp
# umount -l /var/tmp
3. Move /usr/tmpDSK file to another location:
# mv /usr/tmpDSK /usr/tmpDSK_bak
4. Modify /scripts/securetmp to set tmpdsksize to desired size:
# vi /scripts/securetmp
$tmpdsksize = 2048000
5. Run:
# /scripts/securetmp
6. 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
Thats it. Your /tmp partition saze has increased. :)
Comments
Post a Comment