The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unable to save changes in Zone file.

Discussion in 'General Discussion' started by bryanabhay, Feb 16, 2007.

  1. bryanabhay

    bryanabhay Active Member

    Joined:
    Aug 14, 2006
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Hello :) ,

    today i found one tricky problem, If i login to whm using Reseller User name & password

    & edit any of the DNS zone file then i would not able to save the changes, I even did not

    get any error.

    But if i again edit the same zone file i did not find last made changes.

    any one knows the reason behind this .....

    Please update me...

    Bryanabhay
     
  2. brendanrtg

    brendanrtg Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    16
    When we last had this problem, it was due to the reseller's files under /var/cpanel getting too HUGE, over 100MB.

    You should try to clean those and reduce the size.

    The files you should look for are:

    38M -rw-r--r-- 1 root root 38M Oct 3 10:54 reseller-limits
    38M -rw-r--r-- 1 root root 38M Oct 3 10:55 reseller-number-accounts
    45M -rw-r--r-- 1 root root 44M Oct 3 10:56 resellers-nameservers
    101M -rw-r--r-- 1 root root 101M Oct 3 10:53 reseller-resource-limits

    There's 2 more but I cant remember it off hand.
     
    #2 brendanrtg, Feb 16, 2007
    Last edited: Feb 16, 2007
  3. brendanrtg

    brendanrtg Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    16
    OK, I login to our server and got the info, I am not sure if its related to your problems but when we encountered the same problem as you, we did the following and it works later on:

    As root, DO:

    # ls -lshSr /var/cpanel

    This command should lists all your resellers files and you should look for those above 100mb in size.

    CP (copy) the original filename to reseller-something.old

    # service httpd stop or whatever command you use to shut down apache.

    Then of ALL the files you CP to something.old,

    Hence, once done CPing, you should see the following:

    resellers-nameservers
    reseller-limits
    reseller-resource-overselling
    reseller-number-accounts
    resellers-nameservers
    reseller-resource-limits

    will become:

    reseller-resource-accounts.old
    reseller-limits.old
    reseller-resource-overselling.old
    reseller-number-accounts.old
    resellers-nameservers.old
    reseller-resource-limits.old

    # cat /var/cpanel/reseller-limits-old | sort | uniq > var/cpanel/reseller-limits

    This caused only one instance of each reseller definition to be output to the given resellerfile. These files gets huge when duplicate entries are added to it.

    Hope this helps.
     
Loading...

Share This Page