How to Increase size of /tmp on cpanel server

To increase the size of /tmp folder, first, stop monitoring services, so it won’t get auto started while we resize /tmp folder

Now stop Cpanel, MySQL and Apache services

Unmout current /tmp folder

Rename tmp file

Create a new file

This will create a 10 GB /tmp folder. If you need to change the size, adjust “count=10000000”.

Now you can mount the /tmp folder with the command

Or

Start the services

Enable monitoring

Your /etc/fstab will have the following entry for /tmp folder

If you want the default size, that works for most, you can use Cpanel provided script.

Running this script will auto-create /tmp folder with 4 GB size.

Back to Cpanel Server

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.