Seeing the error "Error from park wrapper: Domain is already configured" in cPanel when trying to add an addon domain?
This usually happens when a domain was previously assigned to another cPanel account on the same server and was not fully removed. Even after deleting the domain from the original account, leftover references can cause cPanel to think the domain is still in use.
This guide shows how to completely remove those references so you can successfully add the domain again.
What Causes This Error?
cPanel stores domain data across multiple configuration files. If a domain is not fully removed, entries may remain in system files, preventing it from being re-added elsewhere.
Before You Start (Important)
- You will need root SSH access to the server
- Always back up configuration files before editing
- Be careful when modifying system files to avoid breaking server configs
How to Fix "Domain is already configured" in cPanel
Replace the following values with your own:
- yoursite.com = the domain you are trying to add
- acctusername = the original cPanel account
Step 1: Log in via SSH as Root
Connect to your server using SSH with root privileges.
Step 2: Search for Existing Domain References
Run the following command to locate all references to the domain:
grep -R "yoursite.com" /var/named /var/cpanel/users /etc/httpd/conf /etc/userdomains /etc/localdomains
Step 3: Remove Domain Entries
Check and remove any references to the domain from the following locations:
/var/named/yoursite.com.db
/var/cpanel/users/acctusername
/etc/httpd/conf/httpd.conf
/etc/userdomains
/etc/localdomains
Carefully edit each file and remove any lines containing the domain.
Step 4: Rebuild cPanel Configuration (Recommended)
After removing references, rebuild Apache and update domain mappings:
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
/scripts/updateuserdomains
Step 5: Add the Domain Again
Log back into cPanel and try adding the addon domain again. It should now work without errors.
Common Causes of Leftover Domain Entries
- Domain removed from cPanel but DNS zone still exists
- Manual file edits or incomplete migrations
- Account termination that did not fully clean up
- Server crashes or interrupted processes
Troubleshooting Tips
- Check for parked domains or aliases still assigned
- Verify DNS zones are fully removed
- Restart cPanel services if changes do not apply immediately
Final Thoughts
This cPanel error is common when moving domains between accounts on the same server. Fully removing all references ensures the domain can be reassigned without conflict. Always double check your changes and keep backups when working on live systems.