Error from domain wrapper: domain.com is owned by another user.
NB: Please note that domain.com is shown as an example…
If you are getting this error when trying to add subdomains to any of your cPanel accounts the reason and fix is given below.
This happens when cPanel doesn’t remove the subdomain correctly and when you add it(if you are trying to delete the subdomain and then adding it), cpanel thinks it’s still there. So when you try to add it back you get an error. Now here goes the fix:
1. Remove domain.com from /var/cpanel/users/cpanel-username
3. Run /scripts/updateuserdomains as root user on the server.
2. Remove /var/named/domain.com.db if the file exists (it doesn’t always)
3. Remove the virtualhost for domain.com on /usr/local/apache/conf/httpd.conf
4. Remove domain.com from /etc/named.conf
Now you can add the domain back on in cPanel with no problems.