Still showing parked domain after changing to different account

GoWilkes

Well-Known Member
Sep 26, 2006
692
33
178
cPanel Access Level
Root Administrator
I'm on a semi-managed server with 2 accounts, and both are mine. I had 40 domains parked on top of one of the accounts, and I recently changed them to point to the other account by editing /usr/local/apache/httpd.conf.

Everything is working fine, but for one very minor detail: in cPanel, the old account still shows 40 domains parked, and the new account doesn't show any. In WHM, though, they're listed correctly, so it's just cPanel.

I'm sure that there's probably just another file somewhere that I should edit, but I'm not sure what it is. I've tried editing /etc/named, /etc/userdomains, /etc/valiases/, and /etc/vdomainaliases/, but none of these affected it.

Where else should I look?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
You would not manually edit httpd.conf to change parked domains. There are numerous files that handle account domains (parked domains, subdomains, and addon domains) such as /var/cpanel/userdata/username files (where username is the cPanel username), /var/cpanel/users/username, /etc/localdomains, /etc/userdomains and so on.

To properly configure this, revert the changes previously made. At that point, go into cPanel and remove the domains from the one cPanel account. After doing so, re-add them to the other cPanel account. Going forward, you could either craft something via the API or use the interface. Direct file modification for a complex process such as where a domain is handled would not be advised.