Manual change shared IP of all websites

joaosavioli

Well-Known Member
Feb 7, 2008
67
12
58
Hi,

I'd like to change shared IP address for all websites manually. I can create a bash script for it.
- change shared IP in WHM Configuration
- change VirtualHosts in httpd.conf
- change /var/cpanel/users/login
- change /var/named/domain.db

Is there any other place that I need t change for the new IP address?

Thank you
Joao
 

joaosavioli

Well-Known Member
Feb 7, 2008
67
12
58
Hi Dennis, thank you for replying.

I'm not feeling safe to do this using tool, because I need to wait 48h if I need to change for another IP address. It's because I´d like to do this manually.

PS: At this time my accounts are working in a new IP, because I've changed virtualhost (using sed command) and dns, but every night cpanel change my httpd.conf and some .dbs, and the old ip address back to some websites.

I didn't change old IP in /var/cpanel/users/login. If I do this, do you think that cpanel won't change to old IP address?

Thank you!
Joao
 

DennisMidjord

Well-Known Member
Sep 27, 2016
356
79
78
Denmark
cPanel Access Level
Root Administrator
You don't need to wait 48 hours. It can take 48 hours for DNS changes to propagate - but you probably already changed DNS for your domains. The change will not take 48 hours since you've already made the DNS changes.

Besides, 48 hours is worst case scenario. Usually, it takes very few hours to propagate.

Whether you make the changes manually or use the IP Migration Wizard doesn't matter - DNS still needs to be updated.