cpanel server main ip change
Verify new Main IP have cpanel license at
Login to WHM, Go to Basic cPanel & WHM Setup and change servers main shared IP address to new IP.
Change Site IP
In WHM move all sites from old IP to new shared IP or dedicated IP as required.
Change Server Main IP
[email protected] [~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Intel Corporation 82566DC Gigabit Network Connection DEVICE=eth0 BOOTPROTO=none HWADDR=00:1c:c0:3b:f5:8e IPADDR=22.214.171.124 NETMASK=255.255.255.0 ONBOOT=yes GATEWAY=126.96.36.199 TYPE=Ethernet [email protected] [~]#
Replace it with
[email protected] [~]# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=ns1.wisperusa.com DOMAINNAME=wisperusa.com [email protected] [~]#
If IP present, change it.
Remove new main IP from this file if present.
You can old main IP if needed.
Replace old IP with new main IP.
You need to replace old IP with new IP for server hostname.
Verify you done all the above steps properly.
Now it is time for final step, restarting network. If you have not properly followed above instruction, server may not come back online and will require help from server provider.
service network restart