Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    16

    Default 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?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    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.

  3. #3
    Member
    Join Date
    Dec 2008
    Posts
    16

    Default

    I found the domain in the httpd.conf but there is so much things with that domain i dont know what to delete lol

  4. #4
    Member
    Join Date
    Apr 2009
    Posts
    230

    Default

    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.

  5. #5
    Member
    Join Date
    Dec 2008
    Posts
    16

    Default

    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.

  6. #6
    Member
    Join Date
    Apr 2009
    Posts
    230

    Default

    Glad to know that!

  7. #7
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default 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
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Posts
    38

    Default

    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

Similar Threads & Tags
Similar threads

  1. Can't remove domain redirections
    By Milleski in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-09-2010, 01:37 PM
  2. How do I remove an addon domain?
    By SwiftyUK in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-16-2006, 04:17 AM
  3. Can't remove Addon Domain
    By PPNSteve in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-03-2005, 09:11 PM
  4. Deleting an add-on domain doesn't remove domain DNS entry
    By MattF in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-17-2002, 09:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube