Changed IP at Host to New Server Issue

Deathspawner

Registered
Nov 25, 2016
1
0
1
Canada
cPanel Access Level
Root Administrator
Hi all:

That's a loaded title, but it's accurate as of right now. A friend of mine just had his host upgrade its hypervisor which ultimately broke his outdated website (it crashes every four hours). So he tasked me to help him get up and running on a new server using CentOS/cPanel/WHM. It's been ages since I've used this solution, so I am a bit lost, but given everything I see, it looks like it should work.

There is only a single website configured on the entire server, and his cPanel account reflects the correct domain, and the correct home folder. However, when he swapped the IP address at his host to direct to the new server, going to his domain lead to the defaultwebpage.cgi page rather than his website. Furthermore, the XXX.XXX.XXX.XXX/~username URL doesn't work (it shows "404 Not Found"; it will tell me "Not supported" on the page if I enable mod_userdir even if I install another handler as another guide recommended).

In his cPanel account, the Simple Zone Editor page shows absolutely nothing, but going to Edit DNS Zone in WHM for the domain shows it fully populated. I am not sure if that's setup correctly, though from a novice's perspective it seems to be.

I guess the big question is: if he changed the IP on his domain name and it routed to the default cPanel page instead of his website, what should I be looking at next?

Thanks in advance for any help.
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

If the domain is showing a default cPanel page, then the webserver is not fetching correct document root, so to start with this investigation, I would advise you to look into the Apache logs (access + error).

Second thing I would like to draw your attention to is check the IP address that is being given in the Virtual Host inside the Apache configuration for this particular domain because even with IP mismatch, it may end up giving you default document of the cPanel server rather than flashing the document inside the user's document root.
 

cPanelMichael

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