How to increase size of tmpDSK (/tmp) in Cpanel

Default partition of /tmp in cpanel is 500MBs and if for some reasons it get full, cpanel start sending alerts.

It also cause the services like apache, mysql to stop working because whenever these services run, they create temporary files which stop in /tmp, these files includes

  1. PHP session files
  2. PHP temporary file uploads
  3. MySQL temporary files
  4. Cache files for certain Apache modules

In such cases when you make backups of large space accounts, like if your account in cpanel is of 10GB of data then it may let your default sized /tmp full and stop other services, therefore it requires you to increase the size of /tmp before you make the backup of yoru accounts.

The process to increase the size is simple

Stop mysql, apache and cpanel to prevent them making any more files

Make backup of /tmp contents

Unmount /tmp

Delete /usr/tmpDSK

Now open /scripts/securetmp

And find for

increase this size to what you want to setup, save file and close
and after that run

It will take time depending on how big size of /tmp you need and will setup new sized /tmp for your usage, after that start mysq,apache and cpanel again

Please follow and like us:
About shk

shk is a DevOps engineer with more than 12 years of experience in different organizations. He enthusiastic about learning new technologies and shares his knowledge through his blogs.

Comment Policy:

Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.

*

*

Previous Post:
Next Post: