cpanel ip change - Shine Servers: Illuminating IT Solutions Since 2012 https://www.shineservers.com Your gateway to cutting-edge Web Hosting, Cloud & Dedicated Servers, Development, Digital Marketing, and more. Let's build the future together. Tue, 04 Mar 2014 21:20:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.9 https://www.shineservers.com/wp-content/uploads/2025/01/cropped-Facivon-32x32.png cpanel ip change - Shine Servers: Illuminating IT Solutions Since 2012 https://www.shineservers.com 32 32 201548004 How To Change The Primary IP Address Of A WHM/cPanel Server https://www.shineservers.com/2014/03/04/change-primary-ip-address-whmcpanel-server/ https://www.shineservers.com/2014/03/04/change-primary-ip-address-whmcpanel-server/#respond Tue, 04 Mar 2014 21:20:01 +0000 http://blog.shineservers.com/?p=2431 Steps in WHM: 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: […]

The post How To Change The Primary IP Address Of A WHM/cPanel Server first appeared on Shine Servers: Illuminating IT Solutions Since 2012.

]]>
Steps in WHM:

  • 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:

  1. Edit /etc/sysconfig/network-scripts/ifcfg-eth0
    • Change the IPADDR and GATEWAY lines to match the new IP and Gateway for the new ip
  2. Edit /etc/sysconfig/network
    • Change the GATEWAY line here if it does not exist in the ifcfg-* file.
  3. 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>
  4. Edit /var/cpanel/mainip
    • Replace the old primary IP with the new primary IP
  5. Edit /etc/hosts
    • Replace the old primary IP with the new one if needed. The hostname’s dnswill need to be updated too
  6. 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.
  7. Restart the ipaliases script to bring up the additional IPs
    • service ipaliases restart
  8. Run ifconfig and make sure all IPs show up correctly
  9. Update the cpanel license to the new primary IP
  10. Verify you can still log in to WHM and there is no license warning

The post How To Change The Primary IP Address Of A WHM/cPanel Server first appeared on Shine Servers: Illuminating IT Solutions Since 2012.

]]>
https://www.shineservers.com/2014/03/04/change-primary-ip-address-whmcpanel-server/feed/ 0 3108