#1 (permalink)  
Old 06-18-2009, 06:12 AM
Registered User
 
Join Date: Dec 2008
Posts: 16
DannyD is on a distinguished road
How can i remove a domain?

How can I completely remove a domain with SSH? I have an addon domain and it keeps on telling me that the domain still exists in the httpd.conf i terminated the account and deleted the DNS zones. Any idea?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-18-2009, 11:27 AM
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Jul 2005
Location: New Jersey, USA
Posts: 387
PlatinumServerM is on a distinguished road
You will have to check in all the places that it adds entries in, such as the named.conf, httpd.conf, cpanel user directory, etc.

If it says it's in the httpd.conf, then open that file and search for the domain name and see if anything is found.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-18-2009, 11:52 AM
Registered User
 
Join Date: Dec 2008
Posts: 16
DannyD is on a distinguished road
I found the domain in the httpd.conf but there is so much things with that domain i dont know what to delete lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-19-2009, 12:43 AM
Registered User
 
Join Date: Apr 2009
Posts: 225
InstaCarma_Tech is on a distinguished road
If it is add-on domain then more often than not, you will see a VirtualHost entry corresponding to addondomain.maindomain.com . You can delete this entire VirtualHost entry. And if you had created sub-domains for this add-on domain then there will be more VH entries.
__________________
InstaCarma
Outsourced Web Hosting Technical Support and Server Management

To visit out Blog , click here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-20-2009, 04:55 PM
Registered User
 
Join Date: Dec 2008
Posts: 16
DannyD is on a distinguished road
What i did is found everything in httpd related to that domain and deleted it. then i just rebuild httpd.conf and everything worked like a charm.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-22-2009, 02:15 AM
Registered User
 
Join Date: Apr 2009
Posts: 225
InstaCarma_Tech is on a distinguished road
Glad to know that!
__________________
InstaCarma
Outsourced Web Hosting Technical Support and Server Management

To visit out Blog , click here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-30-2009, 06:07 AM
Registered User
 
Join Date: Jun 2007
Posts: 137
logicsupport is on a distinguished road
How to remove a domain completely

You need to confirm the domain details are not present in the following files, if they are present remove the entries and try again.

/etc/named.conf
/var/named/zone
/usr/local/apache/conf/httpd.conf ( Virtual host section)
/etc/userdomains
/etc/trueuserdomains
/etc/localdomains
/etc/remotedomains
/etc/trueuserowners
/etc/valiases/domainname
/var/cpanel/users/username
/etc/vdomainaliases
/etc/passwd
/etc/shadow
/etc/vfilters
/etc/vftp
/etc/vmail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-02-2009, 12:49 PM
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Apr 2008
Posts: 34
romulob is on a distinguished road
Quote:
Originally Posted by InstaCarma_Tech View Post
If it is add-on domain then more often than not, you will see a VirtualHost entry corresponding to addondomain.maindomain.com . You can delete this entire VirtualHost entry. And if you had created sub-domains for this add-on domain then there will be more VH entries.
Next time you need to do that, just type /scripts/killvhost domain.tld
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove domain from another user? labahost cPanel and WHM Discussions 1 09-11-2006 01:28 PM
How do I remove an addon domain? SwiftyUK cPanel and WHM Discussions 1 03-16-2006 04:17 AM
Addon Domain will not remove cdick@ocis.net cPanel and WHM Discussions 0 03-14-2006 04:09 PM
Deleting an add-on domain doesn't remove domain DNS entry MattF cPanel and WHM Discussions 0 10-17-2002 09:17 PM


All times are GMT -5. The time now is 08:47 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc