Thursday, February 7, 2013

Increase The Size Of securetmp In cPanel

First stop all services that might be accessing /tmp:
/etc/init.d/cpanel stop
/etc/init.d/httpd stop
/etc/init.d/mysql stop
Next, unmount /tmp from the current secured mount:
umount -l /tmp
umount -l /var/tmp
Next, backup the current secured mount:
mv /usr/tmpDSK /usr/tmpDSK_back
Next, edit:
...and change the variable for $tmpdsksize to what size you want, in kilobytes

Next, run the securetmp script:
Finally, restart the services stopped previously:
/etc/init.d/cpanel start
/etc/init.d/httpd start
/etc/init.d/mysql start
You can confirm the size of /tmp by checking the output of:
df -h

No comments:

Post a Comment