cpanel server main ip change

From WebHostingNeeds.com
Jump to: navigation, search

WHM Setup

Verify new Main IP have cpanel license at

http://verify.cpanel.net/index.cgi

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

Edit /etc/sysconfig/network-scripts/ifcfg-eth0

[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=109.123.118.90
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=109.123.118.1
TYPE=Ethernet
[email protected] [~]# 

Chnage IPADDR

Find

IPADDR=109.123.118.90

Replace it with


IPADDR=83.170.64.130


Edit /etc/sysconfig/network

[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.


Edit /etc/ips

Remove new main IP from this file if present.

You can old main IP if needed.


Edit /var/cpanel/mainip

Replace old IP with new main IP.


Edit /etc/hosts

You need to replace old IP with new IP for server hostname.


Restart Network

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



cpanel