Control Web Panel
WebPanel => Installation => Topic started by: yehu 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.
-
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.
-
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.
-
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
-
Yea, the old settings can hide in numerous locations, postfix config, amavisd, etc.
Which again is why a clean install is always good.
-
...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!