Thursday 24 November 2011

Unable to remove add-on domain from cPanel - Error from Park wrapper: Sorry, you do not control the domain

When you receive the error  "Error from park wrapper: Sorry, you do not control the domain" while removing the add-on domain, follow the steps below.

1. Remove the entries for the domain from the following files.
====================
/var/cpanel/users/username
Run Script -- /scripts/updateuserdomains
/var/named/domain.db
/etc/named.conf
/usr/local/apache/conf/httpd.conf
/etc/localdomains
/etc/userdomains
/etc/trueuserdomains
/etc/trueuserowners
/etc/valiases/domain.com
/etc/vdomainaliases/domain.com
/etc/vfilters/domain.com
 /var/cpanel/userdata/username - Remove the parked domain folders
====================

2.  Set Always use authoritative (registered) nameservers when creating a new DNS zone to off in WHM >> Main >> Server Configuration >> Tweak Settings  3. Removed the parked domain.  4. Set Always use authoritative (registered) nameservers when creating a new DNS zone back to on in WHM >> Main >> Server Configuration >> Tweak Settings  Execute the following commands on the server:

====================
  /scripts/checkperlmodules --full --force
  /etc/init.d/cpanel restart
  /scripts/upcp
====================

No comments: