kev82

Registered
Oct 27, 2004
3
0
151
I'm trying to add a domain in my cpanel but it always stops:

Code:
	Addon Domain Maintenance

	 

Addon Domain Additions


Bind reloading on server using rndc zone: [domain.com] The subdomain, hlekkir.domain.com has been added.

Error from park wrapper: hlekkir.is is owned by another user.

Removed Entry from httpd.conf The subdomain, hlekkir.domain.com has been removed.

hlekkir.is could not be setup. The subdomain hlekkir.domain.com was not setup either.

This is on my server, so I have access to WHM too. How can I fix this easily? I've set the domain up manually by adding the NS records and adding it in httpd.conf, but i'd really like to have the domain and all its functions available in cpanel


Thanks in advance for your help.
 

Giannis

Well-Known Member
PartnerNOC
Jun 22, 2005
67
0
156
does this domain has the proper name servers setup on the registrar side?
 

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
Hello.

If you has root access to the server then please make sure the domain name what you want to install as addon doesn't exists in
/etc/rc.d/init.d/httpd.conf

and the domain's DNS zone file doesn't exist either.

Remove the domain from httpd.conf and their DNS zone, then you will be able to install the domain as addon using cPanel interface.
 
Last edited:

kev82

Registered
Oct 27, 2004
3
0
151
There is no httpd.conf in init.d. httpd.conf is in /etc/httpd/conf

Also, deleting the zone file and removing entries from httpd doesn't change anything, I still get the error that the domain is owned by another user.
 

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
Ok, then check the DNS zone files on both DNS servers manually. Probably the DNS zone file wasn't removed by cPanel properly.

check the file /etc/named.conf
and the folder /var/named/

Moreover, you need to remove the domain name from:
/etc/trueuserdomains
/etc/userdomains

if there is nothing wrong, then:

#cd /var/cpanel/users/
#grep "domain.com"

and then check output. The output will show you the file name which contains the domain. Remove the domain from that file and try to install the domain again.
 
Last edited:

kev82

Registered
Oct 27, 2004
3
0
151
Thanks for the help.

I had deleted the zone file, but named.conf still had the domain.

After I deleted that, everything went smoothly.