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?
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?
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.
I found the domain in the httpd.conf but there is so much things with that domain i dont know what to delete lol
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
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.
Glad to know that!
InstaCarma
Outsourced Web Hosting Technical Support and Server Management
To visit out Blog , click here
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