Brandon's Blog Just an internet g


27Feb/110

Daily Tech Tip: Removing a stray domain from a cPanel account

Ever have that problem were your user goes to add a domain and it says "Sorry: This domain is owned by another user". It could even be something other than that, but right now I will show you how to remove the domain from the account entirely in three easy steps.

Requirments

  • Basic SSH Knowleddge
  • Root access to server

Ok, the first step is to login to the server with the root account (some people may need to login and use su to obtain this.) First we need to know if it's an addon domain or parked domain, but operate in different ways. A parked domain is just an extra DNS entry and then added to another domains 'ServerAlias' in their VirtualHost directive. An add-on domain is a sub-domain of the users main domain and then the actual domain is parked on that sub-domain.

First we will need to open the users cPanel users file and investigate more. To do this we will need the users cPanel username.