Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changed IP at Host to New Server Issue

Discussion in 'Bind / DNS / Nameserver Issues' started by Deathspawner, Nov 25, 2016.

  1. Deathspawner

    Deathspawner Registered

    Joined:
    Nov 25, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,484
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page