Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    3

    Exclamation Addon Domain Matches Primary Domain From Separate Account - I can't delete the addon

    I have an account (domian1.com) with the an addon domain (domain2.com) that matches the primary domain (domain2.com) of a separate account. I want to delete the addon domain from domain1.com. However when I try i get the error:

    Error from park wrapper: Sorry, you do not control the domain domain2.com

    Ive tried all the methods in other forum posts and have been unable to successfully remove the addon domain and subdomain from domain1.com.

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Addon Domain Matches Primary Domain From Separate Account - I can't delete the ad

    Hello OriginalTwist,

    You should be able to remove it manually by removing it from the following locations:

    /var/cpanel/users/username file
    /var/cpanel/userdata/username/main file
    /var/cpanel/userdata/username/sub.domain1.com file

    Above please replace username with the cPanel username for the account where the domain is an addon domain, and repalce sub.domain1.com with the name of the subdomain on that account. Also, please make backups before editing any of these files:

    Code:
    cp /var/cpanel/users/username /var/cpanel/users/username.bak
    cp /var/cpanel/userdata/username/main /var/cpanel/userdata/username/main.bak
    In the /var/cpanel/users/username file, you'd simply remove the DNS#=addon.com and DNS#=sub.domain1.com entries when editing it. In the /var/cpanel/userdata/username/main file, you'd be removing the addon.com and sub.domain1.com entries under addon and subdomains areas individually. If that is the only addon and subdomain for the account, please ensure the main file ends up looking like the following after editing it:

    Code:
    --- 
    addon_domains: {}
    
    main_domain: domain1.com
    parked_domains: []
    
    sub_domains: []
    For the sub.domain1.com file at /var/cpanel/userdata/username location, you can simply move rather than remove the entries:

    Code:
    mv /var/cpanel/userdata/username/sub.domain1.com /var/cpanel/userdata/username/sub.domain1.com.bak
    After making all the above changes to remove the domain entries, you would then run the following commands:

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110211
    /scripts/updateuserdomains
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
    At that point, the addon domain and subdomain entries should no longer appear in the cPanel for that account.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    3

    Thumbs up Re: Addon Domain Matches Primary Domain From Separate Account - I can't delete the ad

    Thanks very much for your information. It was truly helpful..every other post just states what to delete but those solutions didn't cover the fact that this domain is assigned to an account.

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    2
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Addon Domain Matches Primary Domain From Separate Account - I can't del

    Hi,


    I could see a main domain is also created with the same name, and I have followed the steps given above still the addon domain is showing under a domain, and I cant delete it same error " Error from park wrapper: Sorry, you do not control the domain "

    Please help immediately.

    Regards,

    Unni

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Addon Domain Matches Primary Domain From Separate Account - I can't del

    Hello Unni,

    If this is an emergency, please open up a ticket. The steps I provided are pretty thorough and should have allowed removing the domain. If that didn't work, you'll need to use our ticket system. You can do that via WHM > Support Center > Contact cPanel or using the link in my signature.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Jan 2012
    Posts
    8
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Addon Domain Matches Primary Domain From Separate Account - I can't del

    Thanks Tristan for this HIGHLY useful post.

    To people getting the "someone already owns the domain" -- just edit the dns in the WHM for the old domain and remove the old subdomain entries. That's the only bit missing from Tristan's note.

Similar Threads & Tags
Similar threads

  1. How you delete an addon domain?
    By darkhorn in forum New User Questions
    Replies: 9
    Last Post: 04-18-2011, 03:31 PM
  2. Replies: 1
    Last Post: 01-09-2010, 02:33 AM
  3. Addon Domains vs Separate domain pros/cons?
    By devGOD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-23-2009, 02:59 PM
  4. how to swap addon domain with primary domain
    By wintersun892 in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 09-17-2008, 11:30 PM
  5. Create Addon Domain without creating separate ftp account?
    By Jeff-C in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-06-2004, 03:27 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube