EDIT: Turns out something is at fault with my HTTPS implementation.
Got Librenms running on ubuntu 18.04 using apache2, been following the installation guide and I’m at the step where I need to navigate to the server and run through the GUI setup phase. I’m getting some php error:
<?php
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define(‘LARAVEL_START’, microtime(true));
/*
|--------------------------------------------------------------------------
| Check If Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is maintenance / demo mode via the “down” command we
| will require this file so that any prerendered template can be shown
| instead of starting the framework, which could cause an exception.
|
*/
if (file_exists(DIR . ‘/…/storage/framework/maintenance.php’)) {
** require DIR . ‘/…/storage/framework/maintenance.php’;**
}
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We’ll simply require it
| into the script here so we don’t need to manually load our classes.
|
*/
require DIR . ‘/…/vendor/autoload.php’;
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application’s HTTP kernel. Then, we will send the response back
| to this client’s browser, allowing them to enjoy our application.
|
*/
$app = require_once DIR . ‘/…/bootstrap/app.php’;
$kernel = $app->make(Kernel::class);
$response = tap($kernel->handle(
** $request = Request::capture()**
))->send();
$kernel->terminate($request, $response);
Validate.php:
Component | Version |
---|---|
LibreNMS | 21.3.0-75-g40517f695 |
DB Schema | Not Connected (0) |
PHP | 7.4.16 |
Python | 3.6.9 |
MySQL | ? |
RRDTool | 1.7.0 |
SNMP | NET-SNMP 5.7.3 |
==================================== |
[OK] Composer Version: 2.0.12
[OK] Dependencies up-to-date.
Could not connect to database, check logs/librenms.log.
To be expected that it can’t connect to the DB I guess since I’ve not been through the install.php via GUI yet.
What deviates from the install guide is that I manually had to install php2.4 (since you cant do this via normal measures on 18.04 for whatever reason) using:
sudo apt-get update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
Following installing the required php packages as per installation guide.
And updated mariadb using:
https://mariadb.com/docs/deploy/upgrade-community-server-cs105-ubuntu18/
Also I’ve enabled https.
Any tips would be appreciated.