Skip to content

Instructions on Installing LibreNMS on Debian 12, utilizing Nginx and PHP-FPM

Guide on Installing LibreNMS on Debian 12 with Nginx and PHP-FPM for enhanced network supervision. Dive into this comprehensive installation walkthrough.

Installing LibreNMS on Debian 12 with Nginx and PHP-FPM: A Step-by-Step Guide
Installing LibreNMS on Debian 12 with Nginx and PHP-FPM: A Step-by-Step Guide

Instructions on Installing LibreNMS on Debian 12, utilizing Nginx and PHP-FPM

In this article, we'll guide you through the process of setting up LibreNMS, a free and feature-rich network monitoring solution, on a Debian 12 server. For this tutorial, we'll be using a server instance provided by Hetzner.

Preparing the Server Instance

  1. Connect to the server instance using SSH.
  2. Update and install dependencies on the server instance.
  3. Enable and restart MariaDB.

Creating a LibreNMS User and Setting Up Nginx

  1. Create a LibreNMS user, download the LibreNMS source, and set correct permissions.
  2. Configure Nginx with the necessary settings.

Installing and Configuring LibreNMS

  1. Create a dedicated PHP-FPM pool file.
  2. Test PHP-FPM and restart it after creating the pool file.
  3. PHP-FPM is restarted after setting the timezones.
  4. The web installer is accessible through a browser.

Running the LibreNMS Installer

The LibreNMS installer guides you through the setup process. Here's a breakdown of the steps:

  1. Pre-Install Checks: The installer validates the PHP version and required extensions.
  2. Selecting the Update Channel, Default Theme, and Finishing the Install: Choose the update channel that suits your needs, select a default theme, and complete the installation.
  3. Entering the Database Details: Provide the database host, port, name, username, and password.
  4. Configuring SNMP, SSL, and Scheduling/Log Rotation: While not covered in this tutorial, it's essential to configure SNMP, enable SSL with Let's Encrypt, and set up proper scheduling and log rotation.

Finalizing the LibreNMS Setup

  1. After finishing the install, the admin can log in to LibreNMS with the created credentials.
  2. Create an admin user with a username, password, and email address.

Running LibreNMS on Debian 12

By running LibreNMS on Debian 12 with Nginx and PHP-FPM, you'll benefit from a stable, secure, and long-term supported base system. LibreNMS provides auto-discovery, alerting, graphing, and a powerful API, making it an excellent choice for network monitoring.

Moreover, LibreNMS supports a wide range of devices via SNMP, and it boasts modern dashboards, a scalable architecture, and a rich API. Running it on a Linux SSD VPS, such as the one provided by Shape.Host, ensures a reliable and scalable infrastructure for your network monitoring needs.

In conclusion, setting up LibreNMS on Debian 12 is a straightforward process that offers a robust and cost-effective network monitoring solution. Happy monitoring!

Read also:

Latest