Installing Keyhelp on Ubuntu  [SOLVED]

General discussions around KeyHelp.
Post Reply
User avatar
SecCon
Posts: 3
Joined: Fri 5. Apr 2024, 14:19

Installing Keyhelp on Ubuntu

Post by SecCon »

Hello,
Ubuntu is a VM on Hyper-V. Not new, but recent. Fully updated.

Trying to follow https://wiki.keyhelp.de/books/installat ... stallation to install Keyhelp to try it out bit before maybe setting up a VPS at KeyWeb, but it fails with the following:

Code: Select all

--2024-04-05 12:03:55--  https://install.keyhelp.de/get_keyhelp.php
Resolving install.keyhelp.de (install.keyhelp.de)... 62.141.56.232, 2001:1b60:2:11:913:101:be57:cafe
Connecting to install.keyhelp.de (install.keyhelp.de)|62.141.56.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/x-sh]
Saving to: ‘install_keyhelp.sh’

install_keyhelp.sh                [ <=>                                              ]  15.24K  --.-KB/s    in 0.03s

2024-04-05 12:03:56 (448 KB/s) - ‘install_keyhelp.sh’ saved [15610]

You are about to install KeyHelp.
Running system checks...
Installing certificates...
Installing PHP...
Selecting previously unselected package php.
(Reading database ... 151367 files and directories currently installed.)
Preparing to unpack .../0-php_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-intl.
Preparing to unpack .../1-php8.1-intl_8.1.2-1ubuntu2.14_amd64.deb ...
Unpacking php8.1-intl (8.1.2-1ubuntu2.14) ...
Selecting previously unselected package php-intl.
Preparing to unpack .../2-php-intl_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-intl (2:8.1+92ubuntu1) ...
Selecting previously unselected package php-mbstring.
Preparing to unpack .../3-php-mbstring_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-mbstring (2:8.1+92ubuntu1) ...
Selecting previously unselected package php-mysql.
Preparing to unpack .../4-php-mysql_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-mysql (2:8.1+92ubuntu1) ...
Selecting previously unselected package php-readline.
Preparing to unpack .../5-php-readline_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-readline (2:8.1+92ubuntu1) ...
Setting up php (2:8.1+92ubuntu1) ...
Setting up php-mysql (2:8.1+92ubuntu1) ...
Setting up php-mbstring (2:8.1+92ubuntu1) ...
Setting up php-readline (2:8.1+92ubuntu1) ...
Setting up php8.1-intl (8.1.2-1ubuntu2.14) ...

Creating config file /etc/php/8.1/mods-available/intl.ini with new version
Setting up php-intl (2:8.1+92ubuntu1) ...
Processing triggers for libapache2-mod-php8.1 (8.1.2-1ubuntu2.14) ...
Processing triggers for php8.1-cli (8.1.2-1ubuntu2.14) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing KeyHelp...
/tmp/keyhelp.tar.gz           100%[=================================================>]  18.63M  21.0MB/s    in 0.9s
Installing ionCube...
/tmp/ioncube.tar.gz           100%[=================================================>]  15.00M  23.2MB/s    in 0.6s
Run /home/keyhelp/www/keyhelp/install/install.php --installer-version 1
PHP Warning:  Undefined array key "encryption" in /home/keyhelp/www/keyhelp/core/License/License.php on line 140

Warning: Undefined array key "encryption" in /home/keyhelp/www/keyhelp/core/License/License.php on line 140
PHP Warning:  Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/License/License.php on line 140

Warning: Trying to access array offset on value of type null in /home/keyhelp/www/keyhelp/core/License/License.php on line 140
PHP Fatal error:  Uncaught mysqli_sql_exception: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php:117
Stack trace:
#0 /home/keyhelp/www/keyhelp/core/pending/DBConnection.php(117): mysqli->query()
#1 /home/keyhelp/www/keyhelp/core/pending/DBConnection.php(65): DBConnection->connect()
#2 /home/keyhelp/www/keyhelp/install/install.php(136): DBConnection->__construct()
#3 {main}
  thrown in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 117

Fatal error: Uncaught mysqli_sql_exception: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php:117
Stack trace:
#0 /home/keyhelp/www/keyhelp/core/pending/DBConnection.php(117): mysqli->query()
#1 /home/keyhelp/www/keyhelp/core/pending/DBConnection.php(65): DBConnection->connect()
#2 /home/keyhelp/www/keyhelp/install/install.php(136): DBConnection->__construct()
#3 {main}
  thrown in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 117
Can you guys help me diagnose this?

There is zero mention in the setup instructions of making any preparations like making a database or anything else so I an very confident I have followed instructions correctly. CA-certificates is installed and updated.
SoHoLabs
User avatar
SecCon
Posts: 3
Joined: Fri 5. Apr 2024, 14:19

Re: Installing Keyhelp on Ubuntu  [SOLVED]

Post by SecCon »

I have realized I may have some colliding stuff that have not been cleaned out properly so I am going to make a new VM and go from there. A friend suggested that it is very important that the Ubuntu installation is NEW and MINIMAL, so I shall make a new one.

Don't hold your breath. :D
SoHoLabs
User avatar
SecCon
Posts: 3
Joined: Fri 5. Apr 2024, 14:19

Re: Installing Keyhelp on Ubuntu

Post by SecCon »

And now the installation is working a lot better
SoHoLabs
Post Reply