Skip to main content

Change static Ip to a new one WHM/cPanel

Comments

6 comments

  • wtgotllc
    Changed host IP Email not working I have recently changed my host server Ip address and now no mail seems to not be working. Help!:confused:
    0
  • Infopro
    Re: Changed host IP Email not working Does your.domain.com resolve properly?
    0
  • wtgotllc
    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 .vB) I also am having problems with ftp accounts as well. (Which I have included in .vB)
    0
  • cPanelMichael
    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.
    0
  • wtgotllc
    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 :: 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 [url=http://verify.cpanel.net/index.cgi]License Verification - cPanel Inc. :confused:
    0
  • Infopro
    Multiple threads on same topic by same user, merged here. I think there are a few more, too. Please stick to one thread.
    0

Please sign in to leave a comment.