Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Subdomain in Separate Account Causing Miscalculated Bandwidth Usage

Discussion in 'General Discussion' started by cwtadmin, Apr 2, 2008.

  1. cwtadmin

    cwtadmin Registered

    Joined:
    Apr 2, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    One of my domains used to have a subdomain that I deleted and put into a separate account, so domain.com and sub.domain.com show as two different domains in the account listings. This is causing a problem when I view my accounts' bandwidth usage. The subdomain has a separate listing, but it's still showing up under the original domain as well. It's marked "(deleted)" under the original domain, but the bandwidth is being duplicated there, so the calculation for total bandwidth is wrong (sub.domain.com's bandwidth gets added from both places).

    Is there a way to treat the subdomain as a completely separate account and correct the bandwidth usage error?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Try removing the XDNS entry from the account user file.

    Example:

    account 1: example.com (example)
    account 2: sub.example.com (subexamp)

    Following your scenario, sub.example.com used to be part of Account 1's domains, but was removed and given its own account. However it is still referenced as XDNS=sub.examlpe.com in:
    /var/cpanel/users/example

    Removing the XDNS entry in the user file (full path above) should resolve this issue.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cwtadmin

    cwtadmin Registered

    Joined:
    Apr 2, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    That solved the problem, all right. Thanks much.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice