ullalla

Well-Known Member
Jan 20, 2006
192
0
166
I want to park one domain under two accounts on the same server , is it possible?

I tried to do this but it gave me error as :

Error from park wrapper: domain name is owned by another user.


Please any help is appreciated urgent

Thanks :)
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Run the following command from SSH as root:

Code:
grep "(domain)" /var/cpanel/users/*
NOTE: replace (domain) with the domain name you are trying to add above!

This should reveal to you which user already has the domain in question
parked on their account as the filenames in /var/cpanel/users are
the login names for the accounts.

Go into the control panel for that user and try to remove the parked / addon domain

If for some reason the domain does not appear in Cpanel for that user,
you can manually remove the domain ...

1. Edit the file returned from the grep command above and remove the
"DNS=(domain)" line from the file

2. Edit /etc/localdomains and /etc/trueuserdomains and remove (domain) from
those files if it exists in there as well

3. Change to /var/named folder and see if "(domain).db" file exists.
If so, delete the file and edit /etc/named.conf and remove the
section pertaining to (domain) and restart your DNS server.

NOTE: Reminder you should replace (domain) with the domain you are
trying to add in all the instructions above.

You should now be able to add the domain to whatever account you wish
as a new account, new parked domain, or new addon domain.
 

jamez01

Registered
PartnerNOC
May 2, 2007
3
0
151
Run the following command from SSH as root:

Code:
grep "(domain)" /var/cpanel/users/*
NOTE: replace (domain) with the domain name you are trying to add above!

This should reveal to you which user already has the domain in question
parked on their account as the filenames in /var/cpanel/users are
the login names for the accounts.

Go into the control panel for that user and try to remove the parked / addon domain

If for some reason the domain does not appear in Cpanel for that user,
you can manually remove the domain ...

1. Edit the file returned from the grep command above and remove the
"DNS=(domain)" line from the file

2. Edit /etc/localdomains and /etc/trueuserdomains and remove (domain) from
those files if it exists in there as well

3. Change to /var/named folder and see if "(domain).db" file exists.
If so, delete the file and edit /etc/named.conf and remove the
section pertaining to (domain) and restart your DNS server.

NOTE: Reminder you should replace (domain) with the domain you are
trying to add in all the instructions above.

You should now be able to add the domain to whatever account you wish
as a new account, new parked domain, or new addon domain.

I have done all this, even before viewing this forum. I still receive the same error.

Is there any where else the information may be stored?

WHM 10.8.0 cPanel 10.9.0-R10737
CentOS 4.4 x86_64 - WHM X v3.1.0
 

LiNUxG0d

Well-Known Member
Jun 25, 2003
206
1
168
Gatineau, Quebec, Canada
Here's something that nobody's mentionned. ;)

If you've got a DNS cluster setup, make sure you disable the DNS cluster. Even if you take all the steps above, the DNS query to the Masters might cause a problem. I just ran into this and that was the last step I took which fixed it.

Hope this helps!
 

chazzle

Active Member
Apr 10, 2003
27
0
151
Run the following command from SSH as root:

Code:
grep "(domain)" /var/cpanel/users/*
NOTE: replace (domain) with the domain name you are trying to add above!

This should reveal to you which user already has the domain in question
parked on their account as the filenames in /var/cpanel/users are
the login names for the accounts.

Go into the control panel for that user and try to remove the parked / addon domain

If for some reason the domain does not appear in Cpanel for that user,
you can manually remove the domain ...

1. Edit the file returned from the grep command above and remove the
"DNS=(domain)" line from the file

2. Edit /etc/localdomains and /etc/trueuserdomains and remove (domain) from
those files if it exists in there as well

3. Change to /var/named folder and see if "(domain).db" file exists.
If so, delete the file and edit /etc/named.conf and remove the
section pertaining to (domain) and restart your DNS server.

NOTE: Reminder you should replace (domain) with the domain you are
trying to add in all the instructions above.

You should now be able to add the domain to whatever account you wish
as a new account, new parked domain, or new addon domain.
:) Worked perfect for me!!! The domain name was even pointing to a different domain on my server. Thanks so much
 

jeffrulz007

Member
Feb 5, 2006
7
0
151
I am also getting the error

I have checked the cpanel users file, removed the entry from there, no entries in the DNS files, but still getting the same error.

Error from park wrapper: domain owned by another user.
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
I have checked the cpanel users file, removed the entry from there, no entries in the DNS files, but still getting the same error.

Error from park wrapper: domain owned by another user.
Run /scripts/updateuserdomains for your changes to the cpanel users file to take effect.
 

jeffrulz007

Member
Feb 5, 2006
7
0
151
I did /scripts/updateuserdomains but that also didn't help.

I can see the domains zone file when I take edit DNS zone in whm, but it is not there in 'delete dns zone' . There are no entries in the named.conf also no zone file in the /var/named directory.

Is there any other files I need to check ?
 

Webou

Member
Jun 6, 2007
22
0
151
Run the following command from SSH as root:

Code:
grep "(domain)" /var/cpanel/users/*
NOTE: replace (domain) with the domain name you are trying to add above!

This should reveal to you which user already has the domain in question
parked on their account as the filenames in /var/cpanel/users are
the login names for the accounts.

Go into the control panel for that user and try to remove the parked / addon domain

If for some reason the domain does not appear in Cpanel for that user,
you can manually remove the domain ...

1. Edit the file returned from the grep command above and remove the
"DNS=(domain)" line from the file

2. Edit /etc/localdomains and /etc/trueuserdomains and remove (domain) from
those files if it exists in there as well

3. Change to /var/named folder and see if "(domain).db" file exists.
If so, delete the file and edit /etc/named.conf and remove the
section pertaining to (domain) and restart your DNS server.

NOTE: Reminder you should replace (domain) with the domain you are
trying to add in all the instructions above.

You should now be able to add the domain to whatever account you wish
as a new account, new parked domain, or new addon domain.
This worked great for me, thank you :)
 

MortenW

Registered
Nov 24, 2004
3
0
151
Oslo, Norway
I have the same problem; not able to remove a domain which is pointing to a subdomain. And the domain does not show up in cpanel.

Trying the description in this thread, when I try to run /scripts/updateuserdomains
I got this message:

[email protected] [/var/cpanel/users]# . /scripts/updateuserdomains
-bash: BEGIN: command not found
-bash: /scripts/updateuserdomains: line 15: syntax error near unexpected token `{'
-bash: /scripts/updateuserdomains: line 15: ` if ( @ARGV && $ARGV[0] && $ARGV[0] !~ m/^--/ && -e $ARGV[0] ) {'
[email protected] [/var/cpanel/users]#
 

jpetersen

Well-Known Member
Dec 31, 2006
113
4
168
[email protected] [/var/cpanel/users]# . /scripts/updateuserdomains
-bash: BEGIN: command not found
-bash: /scripts/updateuserdomains: line 15: syntax error near unexpected token `{'
-bash: /scripts/updateuserdomains: line 15: ` if ( @ARGV && $ARGV[0] && $ARGV[0] !~ m/^--/ && -e $ARGV[0] ) {'
[email protected] [/var/cpanel/users]#

This:

[email protected] [/var/cpanel/users]# . /scripts/updateuserdomains
should be this:

[email protected] [/var/cpanel/users]# /scripts/updateuserdomains
 

MortenW

Registered
Nov 24, 2004
3
0
151
Oslo, Norway
Thank you, JPetersen!
Typical me; sh <almost_everything>...
Perfect! Then I was able to park the domain again, problem solved!

Thanks again, JPetersen, Spiral and all others!