"Space Used" in WHM "Accounts List" shows an incorrect information

John K

Member
Dec 25, 2003
5
0
151
WHM "Accounts List" shows 625 Meg in "Space Used" field, but the size olny of "public_html/mp3" is 889.46 Meg and the real size of accounts home dir is 1006 Meg. I have noticed this problem a long time ago and now it is not solved. Why?
 

Damian

Well-Known Member
Oct 1, 2001
108
7
318
Check the ownership of the files located in the mp3 directory.

If they aren't owned by the account user then they will not count towards the used space. The WHM/Cpanel count only includes files owned by the user.

Most likely these files were uploaded via a script, and if they were they will take the same owner details from under which the script was run. If you are not running suexec or phpsuexec then the user will be 'nobody' (the user under which Apache runs).

There's a couple of things you can do to get around this.

Either enable suexec and phpsuexec so that all scripts run under the user (not an option to consider lightly - be sure to read up on the pros and cons) or set a cron job to periodically (as you see fit) change the ownership of files in this directory to that of the account owner.
 

John K

Member
Dec 25, 2003
5
0
151
I have changed the ownership of the files located in the public_http directory and now it works correctly.

Thank you all for help. :)