Error while removing addon domain in cPanel

Error: Sorry, you do not control the domain domain2.com while removing the addon domain “domain2.com” from cPanel

If you are getting the above mentioned error, follow the below steps:

1. Check whether any main domain is created with the same name

2. Else follow the below steps:

# /scripts/killdns

# grep -ir /var/cpanel/users
remove the domain name from the listed files.

# grep -r /var/cpanel/userdata
remove the domain name from the listed files.

#/scripts/updateuserdomains

Also, remove the domain entry from apache configuration file.

Restart apache.
/etc/init.d/httpd restart

Thank you.

Post navigation

Arunlal A

Engineer. Linux enthusiast. Traveller. DevOps learner and practitioner. I enjoy working with Linux, DevOps, automation, and technology while exploring new places along the way. I use this space to share my experiences, learnings, experiments, and things I discover along the journey. Whether you're a seasoned DevOps professional or just getting started, let's connect, learn, and grow together. Happy coding, automating, and deploying!

Leave a Reply

Your email address will not be published. Required fields are marked *