I recently moved an addon domain to it's own account. WHM hung and didn't complete when I tried to setup the new user account. So I set it up again with a slightly different username. The problem is that cpanel still associates the old username with the website. Naturally when cpanel updated, it broke the website due to this confusion(changed username, user directory and ip address). I have gone in an edited the following info and removed the old username from /var/cpanel/users/. Is this all I need to do to prevent this from happening on the next recompile or update? I put the user's vhost directive in the pre virtual host directive just in case. Thanks.
checked and edited files:
/etc/named.conf
/var/named/domainname.db
/etc/localdomains
/etc/remotedomains
/etc/trueuserdomains
/etc/userdomains
/var/cpanel/users/username (remove the users file)
checked and edited files:
/etc/named.conf
/var/named/domainname.db
/etc/localdomains
/etc/remotedomains
/etc/trueuserdomains
/etc/userdomains
/var/cpanel/users/username (remove the users file)