keyhelp in the region it was necessary to change the ip after changing the panel stopped working  [SOLVED]

General discussions around KeyHelp.
Post Reply
Kostyaod
Posts: 6
Joined: Wed 22. Nov 2023, 10:11

keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Kostyaod »

Good afternoon, I’m using the keyhelp panel on the server, I needed to change the IP after the change, the panel stopped working, how can I fix it?
User avatar
Florian
Keyweb AG
Posts: 1420
Joined: Wed 20. Jan 2016, 02:28

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Florian »

Hello,

if you changed the IPs of your system rund this command:

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 replace 111.111.111.111 and 222.222.222.222 with your IPs.

After this run keyhelp-toolbox to rewrite the configuration files.
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Kostyaod
Posts: 6
Joined: Wed 22. Nov 2023, 10:11

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Kostyaod »

I did it but the web interface of the panel still didn’t work
Forbidden

You don't have permission to access this resource.
User avatar
Alexander
Keyweb AG
Posts: 4083
Joined: Wed 20. Jan 2016, 02:23

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Alexander »

Hello,

you have read this?
After this run keyhelp-toolbox to rewrite the configuration files.
Call the CLI application "keyhelp-toolbox" and choose the first and second menu item, to rewrite the configuration.

Also be aware, only KeyHelp configuration files (apache + bind) will be updated. if your network configuration files rely on the old IP, you may need to update it there too. KeyHelp will not touch your network configuration.

If you receive a forbidden, you might still be redirected to the wrong/outdated server, so your IP change may not be fully completed for your hostname. You could try to access KeyHelp via the IP only first, to see it it is responding.
https://<ip-address-of-the-keyhelp-server>/ should show you the KeyHelp login.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Kostyaod
Posts: 6
Joined: Wed 22. Nov 2023, 10:11

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Kostyaod »

I have the impression that there is an old IP somewhere in the file, and when I log into ssh it shows that keyhelp is used and the old IP is written

Forbidden

You don't have permission to access this resource.
User avatar
Alexander
Keyweb AG
Posts: 4083
Joined: Wed 20. Jan 2016, 02:23

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Alexander »

This is, because the "message of the day" in the current KeyHelp version will read the IP from the /root/keyhelp_login_data_* file (Ubuntu) or is hardcoded (Debian). Both are not updated when changing the IPs.
So, the "message of the day" does not necessary reflect the current IPs on the server. (This is will change with next update, by the way).

Feel free to grep your disk for the old IP to catch all further occurrences.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Kostyaod
Posts: 6
Joined: Wed 22. Nov 2023, 10:11

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Kostyaod »

and where can there be confidential files containing IP addresses?
User avatar
Florian
Keyweb AG
Posts: 1420
Joined: Wed 20. Jan 2016, 02:28

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Florian »

Sorry it is unclear what you mean. Provide the logins via PM and we can have a look at it
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
Florian
Keyweb AG
Posts: 1420
Joined: Wed 20. Jan 2016, 02:28

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working  [SOLVED]

Post by Florian »

Solved:

/home/keyhelp had wrong group owner. It has to be www-data and not keyhelp
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Kostyaod
Posts: 6
Joined: Wed 22. Nov 2023, 10:11

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Kostyaod »

Good afternoon, I’m wondering when I ping my domain, periodically the pig will show the old address, then after a while the new one and the reverse one, what could be the matter?
User avatar
Florian
Keyweb AG
Posts: 1420
Joined: Wed 20. Jan 2016, 02:28

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Post by Florian »

Hallo,

you must check the settings in the nameserver of your domain/subdomain

SInce the Keyhelp server is not the authoritative nameserver for your domain the problem is not located on the Keyhelp server
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply