Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

How to Fix cPanel Error: Sorry the Domain is Already Set Up

If your cPanel account is giving you the error “Sorry the domain is already set up,” it’s probably due to one of two different reasons. On it’s own, this error simply means that the domain in question still exists within the virtualhost in the apache httpd.conf configuration file. In the following guide, we’ll cover the two most likely reasons why you’re receiving this error message as well as the steps needed to resolve the issue.

 

Troubleshooting cPanel

The following are two possible explanations for why you might be receiving this error:

  1. Explanation One – The first possible explanation, is that the domain you are trying to create is already being used as a primary, addon, or parked domain for another account.
     
  2. Explanation Two – Alternatively, it may be possible that you are facing a technical issue associated with the domain. For instance, if the domain was previously associated with another account and was removed using the removing function, it’s possible that it wasn’t removed completely from the system.

If the error is due to the first reason, you can easily remove the domain name from the cPanel account. Even if it is not removed, it should produce the following error:

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

 

Fixing the cPanel Error

To resolve this issue, follow these steps:

  1. First, you should find out who owns the domain. To do so, enter the following command:
     
    /scripts/whoowns example.com
     
    *Note: you will of course need to replace the “example.com” shown above with the name of the domain in question.
     
  2. Even if the above command produces no results, enter the following command string:
     
    grep example.com /var/cpanel/users/*
     
  3. This will generate a result that looks something like the following:
     
    root@server [~]# grep example.com /var/cpanel/users/*
    /var/cpanel/users/exam:XDNS1=example.com
     
  4. This information shows the owner of the domain example.com. Now that you know which account the domain is currently associated with, the next step is to update the following files with the new user and remove the lines associated with the previous domain.
     
    /var/named/example.com.db
     
    Remove the virtualhost for example.com from /etc/httpd/conf/httpd.conf
     
    /var/cpanel/users/username [remove entries related to the domain]
     
    /etc/userdomains
     
    /etc/localdomains
     
    vim /etc/named.conf [remove entries related to domain]
     
    Remove DNS entry in WHM
     
    Run /scripts/updateuserdomains as root on the server.

And there you have it!

 

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account -> Support and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.

 

Additional Links:

Looking for more information on cPanel? Search our Knowledge Base!  

In need of more great content? Interested in VPS, Private Cloud, or Colocation? Check out our recent posts for more news, guides, and industry insights!

Share on Twitter
Share on Facebook