I am talking about a very common problem in cPanel/WHM based server or VPS. Fresh WHM based server often do not show proper quota allocation for the hosting accounts. It show ZERO usage and Unlimited quota. Fixing the problem in a dedicated server is quite straight forward. The “Initial Quota Setup” in WHM or the command ” /script/fixquota” will solve the problem. But VPSs requires a second level quota setup as the first level quota is configured during VPS container setup.
Solution is to enable second level quota on the node. To do it execute these commands on the node:
vzctl stop CTID
vzctl set CTID –quotaugidlimit 100 –save
vzctl start CTID
Then, if you’re under WHM, do the “Initial quota setup” thing or run “/script/fixquota” through SSH.
CTID is the container/vps id number.
On the second command, –quotaugidlimit 100 <- this is the number that defines the max file owners. Example: you have 100 users into the vps, set it to 120. You have 300 users into the vps, set it to something more than 300. I’ve used 100 on this example because it’s a common average value. Keep in mind that the more you set, the more kernel memory overhead will be created.