WHM/cPanel

Fix cPanel Quotas When adding account from Packages

Fix cPanel Quota for Packages that always showing unlimited

The case of the Quotas from cPanel Packages

If you already created cPanel package and you are trying to add new account from the packages and when you check the account resources , WHM showing unlimited for the quotas and not updating the Disk Used of the account. the most reason of this unexpected behavior is by Configure Backup Directory option Backup of cPanel/WHM that is sharing drive with cPanel , to avoid that you have to change the Default Backup Directory path of the backup to different drive . 

To do so:

  1. Login to cPanel/WHM control panel.
  2. Navigate to Home »Backup »Backup Configuration.
  3. From Configure Backup Directory change the location of Default Backup Directory to different drive and enable Mount Backup Drive as Needed
  4. Save the changes.
  5. you will see the warning NOTE: Filesystem quotas are enabled. To prevent performance degradation, the system automatically disables quotas on non-root filesystems that contain a backup destination. so you have to be sure that you are using different drive for backup.

How to Fix cPanel Quota for existing account resources and usages statistics in WHM cPanel

Login to your server using SSH connection and run the command
    
     /scripts/fixquotas
    
   
and the result will be like
    
     Quotas have been enabled and updated.
Reading package yourpackage
Resetting quota for exampleaccount to 5120 M
Resetting quota for testaccount to 51200 M

    
   

To check and verify that resources has been updated go to Home »Account Information »List Accounts and you will be able to see the Quota and Disk Used fields with updated values.

Ensure quotas report on the system

Run the following command to confirm that you successfully enabled quotas on the device:

The command prints all of the file systems that exist in the /etc/mtab file with read and write privileges and quota options enabled.

    
     repquota -a
    
   

If you Still experience further problems, perform one of the following actions:

  • Disable the Cache disk quota information setting in the System section of WHM’s Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).
  • Set the disablequotacache parameter to 0 in the /var/cpanel/cpanel.config file.
XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

4 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago