CyberPanel Community

Wordpress TMP Full

de
deezywonder #1

Hello,

Almost every day I get this type of error:

WordPress database error Disk full (/tmp/#sql_2bf_0.MAI); waiting for someone to free some space... 

How can I create a cron job to clean the /tmp/ daily?
This is super frustating.

5 replies
sh
shoaibkk #2

Clean the tmp directory using
rm -rf /tmp/*
after running this must reboot server once

de
deezywonder #3

Hey,
I already do this, but I want to automatize. It’s possible?

lu
luckyrajpurohit #4

Change MySQL temp path as database server creating temp files there and it’s small in size.

Au
Augusto #6

I get the same error on my websites. Which is the best practice to solve this issue?

Will the cronjob solve the problem?
And how often must this task run?
What could happen if I delete a tmp file which is being used right in the moment I am deleting iT?

It is so frustrating, because all the websites hosted in Cyberpanel become inaccessible when this happen.

Sign in to reply