Issue :

While trying to add a sub-domain through cPanel, the following error occurred :

Error from domain wrapper: my.domain.tld is owned by another user.

Cause :

This  happens if cPanel did not remove the entries correctly when you deleted the sub-domain.

Fix :

Check and remove the entries for the sub-domain from the following locations :

1. Remove any entries pertaining to the sub-domain in /var/cpanel/userdata and /var/cpanel/users

Note : Do run /scripts/updateuserdomains because you are editing the file manually.

2. Remove the sub-domain entries from /var/named/domain.tld.db

3. Remove the VirtualHost entry for the sub-domain in /usr/local/apache/conf/httpd.conf

4. Remove any entry for the sub-domain in /etc/named.conf

Once these are removed, you should be able to add the sub-domain through the control panel.




Shares
Contact Us On WhatsApp