cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Does the overall disk space usage of the account that you see in cPanel and WHM reflect the same values that you notice listed for the public_html directory in the disk space usage viewer? If so, try fixing the quotas via:

Code:
/scripts/fixquotas
Also, check the disk space usage from the command line to see if it matches up. EX:

Code:
du -sh /home/user/public_html
Thank you.
 

edigest

Active Member
Nov 24, 2010
44
0
56
S. Pole
cPanel Access Level
Root Administrator
You can also find out where the largest files/folder is with this:

nice -n 19 du -cksh * |sort -rn |head -21 > ducks.out &

Run this from the web root (/var/home/<user>) and look at ducks.out when it finishes.
 

TheJudge

Member
Mar 6, 2014
8
0
1
cPanel Access Level
Root Administrator
Hi,

Deleting the error_log or any other log file or "normal" file which is currently used by a process is not the right way to do it. This is because removing that file will leave the file descriptor opened and you ask yourself later why df -h does not correspond with du -sh.

A proper way of freeing up the space in this situation is truncating the log file.

Regards,
Raul