dazza2011

Registered
Nov 14, 2011
1
0
51
cPanel Access Level
Root Administrator
I logged into my control panel this morning, clicked onto list accounts and on the IP address column it says "MISSING".
Here is a screenshot.

/http://prntscr.com/41030


Please can someone help?
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
Hello,

Please try to rebuild apache conf using /scripts/rebuildhttpdconf script ( please take a backup of current httpd.conf before running this ).

Thank you,
Nibin.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Can you please check the following files for one of the domains to see what is showing there:

Code:
/var/cpanel/userdata/username/domain.com
/var/cpanel/users/username
Above username would be the cPanel account username and domain.com would be the domain name. In each file, you should have an IP field that lists the IP address. If that is missing in any way, it would cause the IP to not show up in WHM's List Accounts area.

As for making a backup of httpd.conf file, this command should suffice:

Code:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak111114
With this many accounts showing the IP as missing, it's a bit concerning that /var/cpanel/userdata itself might be corrupted for data (this normally happens due to a server compromise). If that ends up being the case, you can rebuild /var/cpanel/userdata from Apache httpd.conf itself and this is why you must have that working backup of /usr/local/apache/conf/httpd.conf saved. I am not going to note the command to rebuild /var/cpanel/userdata from httpd.conf at this point as that command could seriously impact things if this isn't the case where /var/cpanel/userdata is corrupted (if you have a bad working copy of httpd.conf).

Finally, I need to point out that if you run "/scripts/rebuildhttpdconf" command after copying httpd.conf first, please restart Apache:

Code:
/scripts/restartsrv_httpd
If you don't restart Apache, no changes you make will update for WHM anyway.