Install LibreNMS
Install LibreNMS
Add the LibreNMS user:
sudo useradd librenms -d /opt/librenms -M -r
usermod -a -G librenms nginx

Download LibreNMS
cd /opt
sudo git clone https://github.com/librenms/librenms.git

Set Permissions
sudo chown -R librenms:librenms /opt/librenms
sudo chmod 770 /opt/librenms/
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chgrp apache /var/lib/php/session/

Install PHP Dependencies
sudo su
su - librenms
./scripts/composer_wrapper.php install --no-dev
exit
