Change static Ip to a new one WHM/cPanel

wtgotllc

Member
Aug 24, 2014
17
0
1
Apopka, Florida, United States
cPanel Access Level
Root Administrator
Change Ip, WHM, cPanel :confused:

I recently upgraded my ISP Provider in which I was given a set of new static Ip's. I have a server which runs Linux 6.5 minimal Install and cPanel/WHM. I did some research and attempted to change the required information to get my Web Server back online. To no avail I am unable to connect to the internet whatsoever, but I am able to see my WHM license message. Even after completing all steps that I have listed in the appropriate images attached to this question below.​

- Removed -

I might add that I am not able to do any yum update or ping of any kind from terminal; but I am able to see my cPanel licensing from my Servers Ip. Which makes me think that my server is online and I did change Ip with cPanel licensing.​
 
Last edited by a moderator:

wtgotllc

Member
Aug 24, 2014
17
0
1
Apopka, Florida, United States
cPanel Access Level
Root Administrator
Re: Changed host IP Email not working

As far as I can tell and I have no issues with any sites as of now other than email error. (which I have included in
image-1a.JPG)

I also am having problems with ftp accounts as well. (Which I have included in
image-2a.JPG)
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello :)

The following thread is useful if you want to change the IP address of your server:

Change Main IP-Address

Review this thread to see if you made the correct changes.

Thank you.
 

wtgotllc

Member
Aug 24, 2014
17
0
1
Apopka, Florida, United States
cPanel Access Level
Root Administrator
Change Servers Ip

I recently had to change my servers Ip addresses. So I proceeded to take the following steps which I have listed below; but in this process my mail and ftp are kicking back errors. Mail is not working at all. (Web mail is)

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 dns will 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
License Verification - cPanel Inc.
:confused: