Sorry, the domain name cannot be changed because it is owned by another user

AdamDresch

Well-Known Member
Jun 22, 2006
80
0
156
Howdy all,

I've just setup a second server with cpanel for development purposes and want to copy a site from our live server, to this one, but I need to set it up under another domain.

The live site is eogamer.com, the test domain I want to use is eogamer.info

I've imported the backup ok and it shows fine, but I can't change the domain name from eogamer.com, to eogamer.info

It keeps throwing up the error

Sorry, the domain name cannot be changed because it is owned by another user

Any advice would be appreciated.
 

AdamDresch

Well-Known Member
Jun 22, 2006
80
0
156
In List Accounts page in WHM, look there to see who owns the account. Assuming it's not root from the other server. You can change owner right there on List Accounts page to root or the reseller you have setup on the test server.
Yea the account owner is "root"
There's no other options in the ownership menu.
 

mediakreativ

Member
Jun 29, 2009
7
0
51
Hello there,

i have the same problem:

I cannot change the accounts domain name - get the same error message, although the owner is root.

I guess it has something to do with the fact that i had changed it one time before and - whats strange - the old domain is still listed when i want to add an email adress.

Any idea?

Kind regards,

Christian
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
I have mentioned this many times before but renaming accounts via WHM is broken and does not update everything that needs to be updated and leaves a lot of underlying things broken until you do some manual updating in the system to fix those issues.

Bottom line though is that it is really not a good idea to rename the domains on accounts using WHM.

Now with regard to where you are running into a conflict ---

Code:
# grep "domain.com" -- /var/cpanel/users/*
That will tell you which account login has the old domain and if not actually active, you should be able to remove the "DNS" or "XDNS" lines from the account file and update the users database.

Also you mentioned "servers". If indeed you are actually running multiple server machines and not talking about just separate hosting accounts, you will also run into problems if those server machines are under the same DNS clustering as this will also prevent you from adding any domain that already exists elsewhere within the clustered servers.
 

mediakreativ

Member
Jun 29, 2009
7
0
51
@Spiral:

Thank you very much for your quick answer!

I have solved the problem by deleteting the account and creating a new one afterwards. There i imported the public_html directory and the database.

Fortunately it was a new account with a website in development - so i hadnt to care about emails etc.

In future i will be very carefully with renaming an account or changing the domain name...

Hopefully this problem will be fixed in WHM soon!

Kind regards,

Christian