I am attempting to install NagiosQL version 3.5.0 on Ubuntu 24.04. I can get to the installation web page, fulfill all the requirements, enter the requested information, and when I click "Next" I am given an Apache 500 Error.
The root cause of this message is the lack of the PHP mysqli module. If this module is missing, the installer is looking for the module manual URL inside an array called "$arrSourceURLs" - the result should be: https://php.net/manual/de/book.mysqli.php
but the key definition is wrong inside the array of the 3.5.0 code because of a typo (MySQL insteed of MySQLi).
Just install the MySQLi Module on your machine and the error should no longer appear.
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Forgive me, I am a lowly Network Engineer. We have QL running on an old Centos server and are migrating to Ubuntu due to EOL on Centos. I have the Module installed and see the same issue. Sorry if I am misreading your solution.
Last edit: MichaelB 2024-08-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey all,
I am attempting to install NagiosQL version 3.5.0 on Ubuntu 24.04. I can get to the installation web page, fulfill all the requirements, enter the requested information, and when I click "Next" I am given an Apache 500 Error.
This is the error in the Apache2 error log:
PHP Warning: Undefined array key "MySQLi" in /opt/nagiosql/install/step1.php on line 207, referer: http://10.64.25.91/nagiosql/install/install.php
I have not altered the /opt/nagiosql/install/step1.php file in any way.
Any help is appreciated!
Last edit: MichaelB 2024-07-31
Hello
The root cause of this message is the lack of the PHP mysqli module. If this module is missing, the installer is looking for the module manual URL inside an array called "$arrSourceURLs" - the result should be:
https://php.net/manual/de/book.mysqli.php
but the key definition is wrong inside the array of the 3.5.0 code because of a typo (MySQL insteed of MySQLi).
Just install the MySQLi Module on your machine and the error should no longer appear.
Martin
Thanks for the reply Martin!
I have the module installed.
root@nagios-new:/home/linux-admin# apt-get install php-mysqli
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php8.3-mysql' instead of 'php-mysqli'
php8.3-mysql is already the newest version (8.3.6-0ubuntu0.24.04.1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
root@nagios-new:/home/linux-admin# php -m | grep mysqli
mysqli
Not sure what the issue is.
Forgive me, I am a lowly Network Engineer. We have QL running on an old Centos server and are migrating to Ubuntu due to EOL on Centos. I have the Module installed and see the same issue. Sorry if I am misreading your solution.
Last edit: MichaelB 2024-08-09