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!

Changing the main server IP and sites on server will not load

Discussion in 'Bind/DNS/Nameserver' started by Host NIT, May 6, 2014.

  1. Host NIT

    Host NIT Member

    Joined:
    Apr 25, 2014
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    The following steps were followed:


    Log into WHM and go to Basic cPanel & WHM Setup
    Change the Primary IP here with the option that says "The IP address (only one address) that will be used for setting up shared IP virtual hosts"
    Note: This might not actually be necessary.

    Log in to SSH, and do the following:

    Edit /etc/sysconfig/network-scripts/ifcfg-eth0
    Change the IPADDR and GATEWAY lines to match the new IP and Gateway for the new ip
    Edit /etc/sysconfig/network
    Change the GATEWAY line here if it does not exist in the ifcfg-* file.
    Edit /etc/ips
    Remove the new primary IP from this file if it is present
    Add the old primary IP to this file with the format <IP address>:<Net Mask>:<Gateway>
    Edit /var/cpanel/mainip
    Replace the old primary IP with the new primary IP
    Edit /etc/hosts
    Replace the old primary IP with the new one if needed. The hostname's dns will need to be updated too
    Restart the network service to make the new IP the primary
    service network restart
    Note: You're probably going to be disconnected at this point, and have to log in to ssh using the new primary ip.
    Restart the ipaliases script to bring up the additional IPs
    service ipaliases restart
    Run ifconfig and make sure all IPs show up correctly
    Update the cpanel license to the new primary IP
    Verify you can still log in to WHM and there is no license warning
    License Verification - cPanel Inc.


    ===========

    IP migration was done with each new IP, but all the sites are saying that the DNS server are not responding....

    Any advice no this matter?
     
  2. Host NIT

    Host NIT Member

    Joined:
    Apr 25, 2014
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hmm... it seems everything was done correctly, it was just a catching issue.

    Thanks
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,266
    Likes Received:
    1,942
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the issue is resolved. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice