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.
The following are two possible explanations for why you might be receiving this error:
- 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.
- 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:
- First, you should find out who owns the domain. To do so, enter the following command:
*Note: you will of course need to replace the “example.com” shown above with the name of the domain in question.
- Even if the above command produces no results, enter the following command string:
grep example.com /var/cpanel/users/*
- This will generate a result that looks something like the following:
root@server [~]# grep example.com /var/cpanel/users/*
- 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.
Remove the virtualhost for example.com from /etc/httpd/conf/httpd.conf
/var/cpanel/users/username [remove entries related to the domain]
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: firstname.lastname@example.org. We are also available to you through our phone and live chat system 24/7/365.