I got a virtual server that shows on the homepage Disk quotas: 0% - 115Mib of 25GiB.
However, when I do a: du -sh /home/virtualserver/public_html/ it shows 10GB.
Which is logic since there are about 100K plus files on it (find /home/virtualserver/public_html/ -type f | wc -l).
What cause the numbers to fail? What do I need to check?
maybe these 100K+ files are not owned by the same virtual server user. (?)
quota works per user/group. virtualmin shows disk quota for user. if these files are owned by root (eg) , they do not count in virtual server’s quota.
Hi @calport sorry if it was a bad description, I mean the main page when you login to webmin/virtualmin. There are multiple blocks like system information, servers status and also Disk Quotas.
@dimitrist I think you nailed it. I’ve checked, the files are owned by www-data. Probably beceause php was running in FCGI mode? All others I have on FPM by default.
I think I will do a switch to FPM and then chown and see what happens.
A few moments later: indeed it’s fixed, correct numbers again, thanks a lot!