cpanel /tmp not mounted correctly centos server
Normally on new cpanel installed servers /tmp will be secured using /script/securetmp utility
On some cases, you can the /tmp are not be mounted correctly
Even if you do several reboots after cpanel installation.
Generally, this will not create any problems or make performance related issues.
But, mounting the /tmp properly will gives us peace 🙂 and on verifying the usage of the /tmp
Keeping free space on /tmp is essential to run your mysql and http(webserver) without generating errors.
Checking securetmp is enabled on boot
root@cpanel server [~]# chkconfig --list | grep secure securetmp 0:off 1:off 2:off 3:on 4:on 5:on 6:off
The above results says that, securetmp is already enabled at boot time
On this case, The server may just need to be rebooted
Even after the reboot, the /tmp is not mounted separately. you can use “/scripts/securetmp” utility to do this job.
First you should remove the /usr/tmpDSK file
root@cpanel server [~]# rm -f /usr/tmpDSK
Then you need to make sure /tmp (the directory you have now is empty).
You can just move it to a new name.
root@cpanel server [~]# mv /tmp /tmp.bak
root@cpanel server [~]# /scripts/securetmp
and follow the prompts.
Now, You should have a /tmp partition,
root@cpanel server [~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 20G 6.3G 13G 34% / tmpfs 16G 6.5M 16G 1% /dev/shm /dev/sda1 1008M 174M 783M 19% /boot /usr/tmpDSK 1.9G 423M 1.4G 23% /tmp
but I would try a simple reboot first whenever you get the chance to do so as it may fix the issue for you
Make sure, You do take backups if required before starting this. We test it on live and test servers before posting.
Keep watching for more Posts. More CPanel Related post @ https://www.earneasy.net/tag/cpanel/