Changed IP at Host to New Server Issue
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.
-
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. 0 -
Hello, Check to ensure the IP address assigned to the individual account is updated via "WHM >> Change Site's IP Address": Change Site's IP Address - Documentation - cPanel Documentation It's not automatically updated when changing the main IP address of the server itself. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments