This post contains short notes & step by step guide on *NMS* – An open source network monitoring system called LIBRENMS , it is based on MRTG Php/MySQL/Snmp
.
STEP BY STEP iNSTALLATION FOR LIBRENMS
Recommended OS: Ubuntu 18 or 20 (Server Edition/64bit), follow official guide as per below ,
https://docs.librenms.org/Installation/Installation-Ubuntu-1804-Apache/
Tips on upgrade PHP 7.2 to 7.4 on Ubuntu 16.4
I had few older installation done on Ubuntu 16.4 which were giving error for php 7.2 version, therefore I am posting this guide so that you can still upgrade to older version if required.
Upgrading LIbrenms php 7.2 to 7.4
Install 3rd party repository to add support for installing Php 7.4 in UBUNTU 16.4 SERVER.
sudo add-apt-repository ppa:jczaplicki/xenial-php74-temp sudo apt-get update
*Install php7.4*
apt install composer php7.4 php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip
*Change Timezone in PHP*
nano /etc/php/7.4/fpm/php.ini nano /etc/php/7.4/cli/php.ini
Search for date.time in above 2 _php_ files & change it as per your time zone example
date.timezone = Asia/Karachi
*Configure PHP-FPM*
cp /etc/php/7.4/fpm/pool.d/www.conf /etc/php/7.4/fpm/pool.d/librenms.conf nano /etc/php/7.4/fpm/pool.d/librenms.conf
in above librenms.conf file, Change below
[www] to [librenms] user = librenms group = librenms listen = /run/php-fpm-librenms.sock
Save & Exit.
Now move & edit below file
mv /etc/apache2/sites-available/librenms.conf /etc/apache2/sites-available/librenms-7.2.conf nano /etc/apache2/sites-available/librenms.conf
*** use this as template ***
<VirtualHost *:80> DocumentRoot /opt/librenms/html/ ServerName librenms.jahanzaib.com AllowEncodedSlashes NoDecode <Directory "/opt/librenms/html/"> Require all granted AllowOverride All Options FollowSymLinks MultiViews </Directory> <IfModule setenvif_module> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 </IfModule> <FilesMatch ".+\.php$"> SetHandler "proxy:unix:/run/php-fpm-librenms.sock|fcgi://localhost" </FilesMatch> </VirtualHost>
SAVE & EXIT.
Restart few services & you will be good to Go Insha.Allah !
a2enmod proxy_fcgi setenvif rewrite a2ensite librenms.conf systemctl restart php7.4-fpm systemctl restart apache2
Hi, i have tried to reach you but you aint replying, get in contact with me please, need your help setting mini isp.
thanks in advance.
LikeLike
Comment by vinmao — March 10, 2018 @ 10:15 PM
vinmao, need help?
LikeLike
Comment by Kratz Ang — May 1, 2018 @ 10:37 PM