Installation of LibreNMS on Ubuntu

In this tutorial, we will install and configure LibreNMS on Ubuntu 16.04 with an Alibaba Cloud Elastic Compute Service (ECS) instance.

Install LAMP Server

LibreNMS runs on the web server, written in PHP and uses MariaDB for database. So you will need to install Apache, PHP and MariaDB to your system.

First, install Apache and MariaDB by running the following command:

apt-get install apache2 mariadb-server -y

Once the installation is completed, start Apache and MariaDB service and enable them to start on boot:

systemctl start apache2
systemctl start mysql
systemctl enable apache2
systemctl enable mysql

By default, the latest version of PHP is not available in Ubuntu 16.04 default repository. So you will need to add the repository for that. You can add it by running the following command:

apt-get install software-properties-common -y
add-apt-repository ppa:ondrej/php

Next, update the repository and install PHP along with all the libraries by running the following command:

apt-get install libapache2-mod-php7.1 php7.1-cli php7.1-mysql php7.1-gd php7.1-snmp php-pear php7.1-curl snmp graphviz php7.1-mcrypt php7.1-json fping imagemagick whois mtr-tiny nmap python-mysqldb snmpd php-net-ipv4 php-net-ipv6 rrdtool git -y

Once all the packages are installed, enable required PHP modules with the following command:

phpenmod mcrypt
a2enmod php7.1
a2dismod mpm_event
a2enmod mpm_prefork

Next, you will also set Time Zone in php.ini file:

nano /etc/php/7.1/cli/php.ini

Make the following changes:

date.time = Asia/Kolkata

Save and close the file. And then you can configure MariaDB, download LibreNMS, configure apache for LibreNMS and access LibreNMS web installation Wizard following the step by step .

Related Blog Posts

Caching allows us to store data in RAM so that data can be served faster, without any needing to query the database or process any PHP.

Whilst this is a great start, what will happen if your website suddenly starts to receive lots of concurrent visitors? While the stack we have installed is performant, how can we improve it, to ensure that no matter how popular our site becomes our server won’t choke?

The answer to our problem is caching. Caching allows us to store data in RAM so that any future request for that data can be served faster, without any needing to query the database or process any PHP.

There are many PHP based Content Management Systems (CMS) that you can run on an Alibaba Cloud ECS Instance with a LEMP stack. Of these, Craft CMS is probably one of the slickest.

As Craft is built using the Yii high performance PHP framework, and adheres to modern PHP standards, it is also a very scalable and stable platform.

Related Market Products

CodeIgniter is a potent PHP framework, which is built for those developers who are in need of a simple and elegant toolkit for creating full-featured web applications effortlessly.

Related Documentation

The Windows 2003 installation package contains Zend, PHP 5.2.17, PHPWind 8.7 and phpMyAdmin 3.5.2. You can directly download the installation package to save the resource searching time.

However, because the size of the MySQL installation package exceeds the upload restrictions, you must go to the MySQL official website to download the installation package, and then decompress the package to drive D.

Related Products

Alibaba Cloud Elastic Compute Service (ECS) provides fast memory and the latest Intel CPUs to help you to power your cloud applications and achieve faster results with low latency. All ECS instances come with Anti-DDoS protection to safeguard your data and applications from DDoS and Trojan attacks.

Cloud Enterprise Network provides a hybrid and distributed global network, ideal for enterprise users with high demand on network coverage. Cloud Enterprise Network can be used to facilitate communication between VPC to VPC and VPC to IDC. With its stable transmission and next-generation network environment, the network provides high transmission speed and low latency for end-users.

Related Course

The Interconnecting VPC using Cloud Enterprise Network (CEN) course is designed to provide you with the fundamental knowledge to plan, configure and administer VPC connections in Enterprise enviroment. In this course we will discuss deployment best practices and use cases of Cloud Enterprise Network (CEN).


Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store