Author Topic: clone server  (Read 624 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
clone server
« on: February 18, 2024, 04:36:59 PM »
I used a backup of a server with cwp to create a new server with different ip and different host name. I there a script or guide how to change all the old IPs to the new one and other needed changes in the conf files?
If it is possible, it will save ton of work. Thanks.

Offline
*
Re: clone server
« Reply #1 on: February 19, 2024, 11:29:27 AM »
Change ip:
https:/yourserverip:2031/cwp_sessioni/admin/index.php?module=settings
Change hostname:
https://yourserverip:2031/cwp_sessionid/admin/index.php?module=change_hostname

Hostname need also 1 file to  change - when i was doing similar thing - script doesn't change all fully automatically, but I don't remember wchich. Just look logs, it was easy to understand which one.

Offline
****
Re: clone server
« Reply #2 on: February 19, 2024, 12:45:55 PM »
CWP should read your systems network config & hostname when you reboot.

Just confirm the settings under CWP Settings -> Edit Settings

And under Server Settings -> Change Hostname to create a new SSL for the server.

But clean installs are always best to stop gremlins from popping up.

Offline
*
Re: clone server
« Reply #3 on: February 19, 2024, 03:56:35 PM »
Thank you both. These two settings are not the only ones. I sa the old server details in other places. Any way I built it again from scratch.
Thanks

Offline
****
Re: clone server
« Reply #4 on: February 19, 2024, 08:54:08 PM »
Yea, the old settings can hide in numerous locations, postfix config, amavisd, etc.

Which again is why a clean install is always good.

Offline
****
Re: clone server
« Reply #5 on: February 19, 2024, 11:02:29 PM »
...and starting fresh will help you turn over a few more rocks and see what lives under there (metaphorically). And you may sharpen your security setup as well, hardening more things. It's a learning process, as with anything -- so more to gain!