Page 1 of 1

Migration server from Datacenter to enother one - Change IP

Posted: Wed 23. Aug 2023, 20:07
by gusarg81
Hi,

We migrated our server to another Datacenter. Our server rungs on Ubuntu 22.04. So I've changed the IP with netplan.

Is there a way under console to change IP settings, DNS, etc on Keyhelp?

Thanks in advance.

Re: Migration server from Datacenter to enother one - Change IP  [SOLVED]

Posted: Thu 24. Aug 2023, 09:41
by Florian
Hallo,

not yet. It will come with one of the next updates.

For now you can use the following command to change the IPs in the database:

Code: Select all

mysql -D 'keyhelp' -e "UPDATE settings SET value = '111.111.111.111,222.222.222.222' WHERE category = 'dns' and name = 'ips'";
Of course you must switch 111.111.111.111 and 222.222.222.222 to your real IPs.

After that run keyhelp-toolbox -> Rewrite user configuration files (Apache / Bind9 / PHP-FPM)