UnixServerAdmin

Server Administration & Management

How to Enabling Quotas in cPanel

If in a cPanel server that didn’t have quotas enabled by default. What is the result of a server without quotas? Simple. All accounts will have unlimited diskspace.

How to fix this?

First of all you will have to login to your server using ssh.

1. You first have to edit /etc/fstab

# vi /etc/fstab

2. Locate the line that looks something like

LABEL=/1 / ext3 defaults 1 1

3. Add after “defaults” the word “usrquota”. It should look something like

LABEL=/1 / ext3 defaults,usrquota 1 1

4. Save and exit

5. Remount the / partition

# mount -o remount /

6. Now run the cpanel script to fixquotas

# /scripts/fixquotas

That’s it! Now all you cPanel accounts should have a limited disk space that you setup.

Advertisements

January 29, 2011 Posted by | cPanel | , , | 40 Comments