IP for VPS changed, and trouble getting sites back online

s37n

Active Member
May 22, 2011
36
0
56
My host changed my IP address, and my websites aren't coming back online.

  • I've changed the Nameserver IPs at my domain registrars.
  • I've changed the WHM/cPanel IPs

I can get into WHM, cPanel, & Webmail, the sites just won't come up.

I get the following error page...
mydomains.net/cgi-sys/defaultwebpage.cgi
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
You might simply be cached to the old IP. Try checking in a proxy such as proxify.net or kproxy.com to see if the sites come up in the uncached proxy.
 

s37n

Active Member
May 22, 2011
36
0
56
thank you, but I had already checked that as well. I get the same error page.
 

storminternet

Well-Known Member
Nov 2, 2011
460
0
66
cPanel Access Level
Root Administrator
thank you, but I had already checked that as well. I get the same error page.
Hi s37n,

Check if the sites are being pointed to correct I address. Check the IP in virtual host entries of domain in httpd.conf
and A records of the domain in domain.db file under /var/named

Perhaps there might be any conflict in IP addresses in both the place. IP should be identical in both the places. ;)
 

s37n

Active Member
May 22, 2011
36
0
56
ok, i have checked the domain.db files, and they have the correct IP. The httpd.conf file has the wrong IPs, but the file says to not change it. I opened the include files to edit, and they are blank. Not sure what file to edit now.
 

s37n

Active Member
May 22, 2011
36
0
56
actually, the only file in that directory that has anything in it is the errordocument file
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

You can try rebuilding the httpd.conf file via:

Code:
# /scripts/rebuildhttpdconf
However, it should have updated automatically when the IP addresses were changed for the accounts via Web Host Manager. You may need to double check the IP Addresses were changed properly by using:

"WHM >> Multi Account Functions >> Change Multiple Sites' IP Addresses"

Thank you.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Also, if they already do show the right IP, you might try the WHM > IP Migration Wizard and re-apply the new IP for all sites again.
 

s37n

Active Member
May 22, 2011
36
0
56
thank you for all your help. The IP migration Tool did the job. Didn't even think to look for a tool, and was trying to do it all manually. Had I took a few seconds to look for a tool, I would have saved myself a huge headache.

thanks a million.:D