I have a lot of CPanel clients and I've seen some host automatically enable secondary level quotas on signup. I was wondering how do I do that?
Do I need to run a script on signup? Do I need to edit a default container config file?
Thanks.
I have a lot of CPanel clients and I've seen some host automatically enable secondary level quotas on signup. I was wondering how do I do that?
Do I need to run a script on signup? Do I need to edit a default container config file?
Thanks.
As Micheal Hampton alluded to in the comments with the docs link you need to enable this at the default container configuration. You're going to want to change the QUOTAUGIDLIMIT
from the default of 0 to an amount that will cover all the users on a VM. The docs suggest 100, but I usually deploy 1000 as the default to be safe. I've even seen 10,000 used before, so it's really your choice. That will deploy every new VM with quotas enabled.
What about VMs already provisioned? First, the container must be powered off, then issue the vzctl set "VMID" --quotaugidlimit 1000 --save
. Note that "VMID" is a placeholder for the container ID. Then start the container and you will have the second quotas enabled for use.
Once you have the quotas enabled you will want to manual force cPanel to refresh the quotas. I would suggest running vzctl enter "VMID"
to simply gain access to the VM. Again "VMID" is a placeholder for the container ID. Once inside the VM run the cPanel /script command to force the recheck on quotas /scripts/fixquotas
You should see it force a recheck and will print out all of the quotas the accounts are getting set to. Once you see this you are finished,and cPanel is now showing disk usage correctly.