cPanel addon domain creation: ‘The domain already exists in the Apache configuration.’


We might get an error when adding an addon or parked domain via cPanel. The domain name never shows up under Addon Domains in cPanel but it does exists anywhere in the cPanel configuration. Lets’s see how to remove any trace of the domain from cPanel configuration manually.


First you need to check if the domain is owned by any particular user.

/scripts/whoowns owner 


#grep /etc/userdomains owner

Now you need to check if the zone file for the domain exists.

# ls -ld /var/named/

-rw------- 1 named named 1198 Sep 4 2013 /var/named/

There exists a zone file for the domain and can remove the zone by executing the below command:

# /scripts/killdns

 Now we need to check cPanel user files to see if there exists any traces of the domain.

# grep /var/cpanel/users/*

# grep -R /var/cpanel/userdata/*

Binary file /var/cpanel/userdata/owner/main.cache matches

/var/cpanel/userdata/owner/main /var/cpanel/userdata/owner/main:


Edit any files that are found and remove the entire line that contains the domain name. Once you’ve done this, there shouldn’t be any entry for in the cPanel configuration file.

Rebuild the User domain database:


Rebuild the Apache configuration


You’d need to restart the Web Server as the configuration file is altered.

If the server is running on apache

# service httpd restart

If the server is running on LiteSpeed:

# service lsws restart


Once you’ve done all the steps, you should be able to add as an Addon domain under the account ‘owner’

Was this answer helpful?

 Print this Article

Also Read

URL Redirect/Rewrite using the .htaccess file

Summary By default your website can be accessed with both and

How to whitelist your IP at CPHulk

IF IP got banned by CPHulk few times and it is really not a pleasant thing knowing that you need...

Password Protect a folder on your website

Overview This article explains how to add password protection to a folder on your website What...

Find spam script location with Exim - VPS / Dedicated Server

In the steps below I'll show how to locate the top scripts on your server sending mail. If any...

MySQL database not showing in cPanel

If database is not showing in cpanel, make sure database exists in the server. If it exists, make...

Powered by WHMCompleteSolution