Web Hosting Talk







View Full Version : WHM issue .. CPANEL


admin0
09-14-2002, 05:17 PM
Hi.

On my cpanel server, i opened a domain xyz.com and it is working fine.

later, i had to move a couple of hundred domains from another cpanel server, so what i did was moved all the domains via the Cpanel multiple domain transfer utility and later copied /var/cpanel of the server to this server, so that all reseller's information is intact.

Now the issue is that I can see all the domains, and new added domains, but not my original xyz.com in WHM because /var/cpanel was copied from the old server.

I tired adding the xyz.com entry in accts.db and accts.db.orig, but it did not appeared in WHM list domains, and after some time, it is automatically removed.


How do I make that domain appear in the WHM list ?



:homer:

StevenG
09-14-2002, 09:29 PM
xyz.com should be setup in /etc/named.conf and the zone file is stored in /var/named as xyz.com.db

admin0
09-15-2002, 03:42 AM
dns is OK, the site is in apache, and i can login to CPanel and work as normal.

However, i am not able to see that site as LIST accounts in WHM and do modifications for the site ..

:homer:

shaun2222
09-15-2002, 04:07 AM
thiers a script in /scripts called i think rebuildcpusers. In order to run this script you will have to edit it and remove a exit; line. This is only for like emergency's or somthing but it may fix your problem. I had a problem like this once where domains wernt showing up and i ran this. make sure you have a backup of your server first.

MarlboroMan
09-15-2002, 09:45 PM
The actual list of CPanel accounts is contained in /var/cpanel/users/username. If an account is a reseller account, it will also have a file in /var/cpanel/users that is somthing like username.owned or something similar, that is a list of all domains for the reseller. Make sure the xyz.com account has a valid user file in /var/cpanel/users, use the other ones as a template. :)

Since you mentioned you can still log into the CPanel itself with the user, I'm assuming that the /etc/passwd and /etc/shadow files are still intact, but you might want to check /etc/proftpd/passwd.vhosts and /etc/proftpd/username if FTP is flaking out on you.