Problems after installation on Ubuntu 18 [solved]  [SOLVED]

Locked
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Problems after installation on Ubuntu 18 [solved]

Post by lmarcos »

Hi,

I installed KH yesterday and when trying to use the tools links, I got a 404 error. There's no directory in var/lib for any of them, even though apparently I have an older version of Adminer than the one Keyhelp says it's installed. Would there be any problem if I installed directly getting the package from a repository?

Another issue I have is that the control panel is login me out of it quite frequently and much sooner than the time stated in the session time out? Could it be something in the php config? Values are default except for the ssh port, which I changed previous to installing keyhelp.

This is the output during installation
Bind9 ... [OKAY]
SSL/TLS ... [OKAY]
PHP ... [OKAY]
Apache web server ... [OKAY]
PHP-FPM ... [OKAY]
MariaDB ... [OKAY]
KeyHelp ... [OKAY]
Firewall ... [OKAY]
SSH ... [OKAY]
ProFTPD ... [OKAY]
Postfix ... [OKAY]
Dovecot ... [OKAY]
OpenDKIM ... [OKAY]
Email protection ... [OKAY]
AWStats ... [OKAY]
Fail2ban ... [OKAY]
Logrotate ... [OKAY]
PhpMyAdmin 4.9.1 ... [OKAY]
Adminer 4.7.4 ... [OKAY]
Roundcube 1.3.10 Multilanguage ... [OKAY]
Rainloop 1.13.0 (Community Edition) ... [OKAY]
Quota ... [OKAY]
Apparmor ... [OKAY]
7-zip ... [OKAY]
Hide LTS notice ... [OKAY]
Update message of the day ... [OKAY]
Nano ... [OKAY]
Curl ... [OKAY]
Cron daemon ... [OKAY]

This is what the control panel says regarding both tools
Administración de bases de datos Adminer 4.7.4
Webmail Rainloop 1.13.0

And this is what I see in the terminal
~$ apt-cache policy adminer
adminer:
Installed: (none)
Candidate: 4.6.2-1
Version table:
4.6.2-1 500

rainloop returns nothing.
Last edited by lmarcos on Mon 27. Jan 2020, 17:44, edited 1 time in total.
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Re: Problems after installation on Ubuntu 18

Post by lmarcos »

More on the email issue.
netstat -lnpt | grep master
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 31785/master

So it looks like postfix it's not listening to ports 25 and 465.

Dovecot is listening in all the ports it's supposed to be listening to.

What do you advise me to do? Wipe the server and start again from scratch or try reinstalling rainloop and adminer manually and see if that fixes the issues?
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: Problems after installation on Ubuntu 18

Post by Florian »

Hallo,

have you installed Keyhelp on a clean system? That means without any preinstalled services except SSH?

Adminer is not installed via apt-get. It is a package built by our Keyhelp maintainer.
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
**************************************************************
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Re: Problems after installation on Ubuntu 18

Post by lmarcos »

Yes, I installed the Ubuntu mirror image on Hetzner, updated packages, created a second user besides root (tried to install it using the certificate, but that went wrong and I could only access with a password) and changed ssh port before installing Keyhelp.

So I added the ssh port in Keyhelp firewall page to be able to connect via putty/bitvise and started creating the additional user I need to create the email accounts. The I tried to access the webmail and found I couldn't. And then I checked adminer and the link didn't work.

I have adminer running in another server with a VestaCP, but that was installed separately, maybe not as a package, but maybe a wget.

Anyways, I don't know if the adminer 4.6 was installed via keyhelp or the Ubuntu mirror or why it's not the adminer version specified in the kh panel and it's not shown on the www folder.
Attachments
firewall settings.png
control panel 2020-01-27 164431.png
Last edited by lmarcos on Mon 27. Jan 2020, 17:00, edited 1 time in total.
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: Problems after installation on Ubuntu 18

Post by Florian »

Hello,

if you run apt-cache policy adminer you see the version that is offered by the OS.

But the adminer that is used by Keyhelp is NOT installed by OS packages. It is a version that was built by our maintainers so the version differs to the one that is offered by the OS.

It is the same with PHPmyAdmin, Rainloop and Roundcube.
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
**************************************************************
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Re: Problems after installation on Ubuntu 18

Post by lmarcos »

lmarcos wrote: Sun 26. Jan 2020, 13:09 And this is what I see in the terminal
~$ apt-cache policy adminer
adminer:
Installed: (none)
Candidate: 4.6.2-1
Version table:
4.6.2-1 500
But adminer is not showing in the www folder of the domain as it does on my other server.
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Problems after installation on Ubuntu 18

Post by Martin »

Hello,

in order to correctly install KeyHelp, the server itself must contain a clean installation. It must not contain any other packages other than SSH and Ubuntu base installation.
Adminer itself will be installed within /home/keyhelp/www/ and can be selected within KeyHelp as database administration tool.
Viele Grüße,
Martin
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Re: Problems after installation on Ubuntu 18

Post by lmarcos »

Both, rainloop and adminer are there, but the redirection isn't working. I changed the url in config, settings, though. Can it be that this is the thing that is not working?
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Problems after installation on Ubuntu 18  [SOLVED]

Post by Martin »

Hello,

when you change the URL, you must ensure that there is software behind on the new URL. Changing the URL is a feature that you allow to link your own software for your customers.

KeyHelp delivered software will work with the default URL.
Viele Grüße,
Martin
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Re: Problems after installation on Ubuntu 18

Post by lmarcos »

Ok. I guess that means I have to wipe out the server and reinstall Ubuntu and Keyhelp.
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Re: Problems after installation on Ubuntu 18

Post by lmarcos »

I changed now successfully adminer url.

But the ports for email I can't see how to solve.
User avatar
Martin
Posts: 984
Joined: Wed 20. Jan 2016, 00:43

Re: Problems after installation on Ubuntu 18

Post by Martin »

Hello,

when install is successful, Postfix should listen on 25 and 587. Listening on 465 is not enabled by default (as this is deprecated).
Viele Grüße,
Martin
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Re: Problems after installation on Ubuntu 18

Post by lmarcos »

Ok. Except for port 25 is working now. The problem lies in the text in the spanish version of KH
Cambiar esto puede ser útil si ha instalado su propia instancia de esta herramienta y desea que la dirección URL apunte a esta ubicación.
This means that changing this might be useful if you have install your own instance.

It should say instead.
No cambie esta URL a menos que haya instalado su propia instancia de esta herramienta y desea que la dirección URL apunte a esta ubicación.
Do not change this URL unless you have installed your own instance of this tool...

In case that helps improve Keyhelp :D
Locked