Keyboard Shortcuts
Thread View
j
: Next unread messagek
: Previous unread messagej a
: Jump to all threadsj l
: Jump to MailingList overview

Dear All
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
1. https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... 2. https://docs.librenms.org/Installation/Install-LibreNMS/
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
1. PHP version 7.4 is older than 8.1 2. NginX can't load. 3. Cant change the default password of the mariaDB. 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf 5. Deadend while running ./scripts/composer_wrapper.php install --no-dev
Many have commented on the two links that these installation guides are missing a few steps, thus, the error.
Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la.
Thanking you in advance
Best Regards Manoj Adhikari (MJ)
Manoj Adhikari
M +975 77102200 P +975 2 322828 E manoj.adhikari.bt@gmail.com W +975 77102200 https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/ [image: App Social Buttons Image] https://www.facebook.com/manojmjadhikari [image: App Social Buttons Image] https://www.linkedin.com/in/manojmjadhikari/ [image: App Social Buttons Image] https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=

Hi Manoj, Whilst it is 18.04, this one installs the correct versions of Maria and PHP. I don't have instructions with NGINX(we use Apache), but it doesn't appear that the webserver is your issue here.
Dave
From: Manoj Adhikari manoj.adhikari.bt@gmail.com Sent: Monday, 28 November 2022 12:42 AM To: btnog@nog.bt Cc: Dave Phelan dave.phelan@apnic.net; Awal Haolader awal.haolader@apnic.net; Hervey Allen hervey@nsrc.org Subject: Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX)
Dear All
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
1. https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub untu-20-04/ https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.roseh osting.com%2Fblog%2Fhow-to-install-and-configure-librenms-on-ubuntu-20-04%2F &data=05%7C01%7C%7Cc0730f3823484ac1359d08dad0858608%7C127d8d0d7ccf473dab096e 44ad752ded%7C0%7C0%7C638051569429024333%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w LjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata =XRz4CAvH7nPzyz1Wgh8rWERgL7MmqFuTKc33XPzt18I%3D&reserved=0 2. https://docs.librenms.org/Installation/Install-LibreNMS/ https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.libr enms.org%2FInstallation%2FInstall-LibreNMS%2F&data=05%7C01%7C%7Cc0730f382348 4ac1359d08dad0858608%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C6380515694 29180519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI 6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=B6EU5JTLEVJ3WFBZuU8czhZtDZPE5U SZehhGbI%2FEGks%3D&reserved=0
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
1. PHP version 7.4 is older than 8.1 2. NginX can't load. 3. Cant change the default password of the mariaDB. 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf 5. Deadend while running ./scripts/composer_wrapper.php install --no-dev
Many have commented on the two links that these installation guides are missing a few steps, thus, the error.
Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la.
Thanking you in advance
Best Regards
Manoj Adhikari (MJ)
Manoj Adhikari
M
tel:+975%2077102200 +975 77102200
P
tel:+975%202%20322828 +975 2 322828
E
mailto:manoj.adhikari.bt@gmail.com manoj.adhikari.bt@gmail.com
W
+975 77102200
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.faceb ook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Cc0730f3823484ac1359d08dad0858608 %7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638051569429180519%7CUnknown%7 CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0 %3D%7C3000%7C%7C%7C&sdata=aDKqUlwLVGH9L7yipn81QG8vtBIzyLtmYoWMtHcksgA%3D&res erved=0 https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linke din.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Cc0730f3823484ac1359d08da d0858608%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638051569429180519%7CU nknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJ XVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bgXxxnzYhTMNaEr7ZzTo%2FFIkSiPehtpFAuFAmUDn ZqQ%3D&reserved=0 https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.c om%2FManoJonaM&data=05%7C01%7C%7Cc0730f3823484ac1359d08dad0858608%7C127d8d0d 7ccf473dab096e44ad752ded%7C0%7C0%7C638051569429180519%7CUnknown%7CTWFpbGZsb3 d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000% 7C%7C%7C&sdata=1zrnoGHIz5YOPOrrk05ID8OB3KdSL7rpbsBxhSwnWzc%3D&reserved=0
https://tracy.srv.wisestamp.com/px/6048438661414912.png?embedded_method=ext ension

Thank you dave. Will try on apache then :-)
thank you for the link too :-)
Manoj Adhikari
M +975 77102200 P +975 2 322828 E manoj.adhikari.bt@gmail.com W +975 77102200 https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/ [image: App Social Buttons Image] https://www.facebook.com/manojmjadhikari [image: App Social Buttons Image] https://www.linkedin.com/in/manojmjadhikari/ [image: App Social Buttons Image] https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Mon, Nov 28, 2022 at 3:33 AM Dave Phelan dave.phelan@apnic.net wrote:
Hi Manoj, Whilst it is 18.04, this one installs the correct versions of Maria and PHP. I don’t have instructions with NGINX(we use Apache), but it doesn’t appear that the webserver is your issue here.
Dave
*From:* Manoj Adhikari manoj.adhikari.bt@gmail.com *Sent:* Monday, 28 November 2022 12:42 AM *To:* btnog@nog.bt *Cc:* Dave Phelan dave.phelan@apnic.net; Awal Haolader < awal.haolader@apnic.net>; Hervey Allen hervey@nsrc.org *Subject:* Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX)
Dear All
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rosehosting.com%2Fblog%2Fhow-to-install-and-configure-librenms-on-ubuntu-20-04%2F&data=05%7C01%7C%7Cc0730f3823484ac1359d08dad0858608%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638051569429024333%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XRz4CAvH7nPzyz1Wgh8rWERgL7MmqFuTKc33XPzt18I%3D&reserved=0 2. https://docs.librenms.org/Installation/Install-LibreNMS/ https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.librenms.org%2FInstallation%2FInstall-LibreNMS%2F&data=05%7C01%7C%7Cc0730f3823484ac1359d08dad0858608%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638051569429180519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=B6EU5JTLEVJ3WFBZuU8czhZtDZPE5USZehhGbI%2FEGks%3D&reserved=0
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
- PHP version 7.4 is older than 8.1
- NginX can't load.
- Cant change the default password of the mariaDB.
- Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf
- Deadend while running ./scripts/composer_wrapper.php install
--no-dev
Many have commented on the two links that these installation guides are missing a few steps, thus, the error.
Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la.
Thanking you in advance
Best Regards
Manoj Adhikari (MJ)
*Manoj Adhikari *
*M*
+975 77102200 <+975%2077102200>
*P*
+975 2 322828 <+975%202%20322828>
*E*
manoj.adhikari.bt@gmail.com
*W*
+975 77102200
[image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Cc0730f3823484ac1359d08dad0858608%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638051569429180519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aDKqUlwLVGH9L7yipn81QG8vtBIzyLtmYoWMtHcksgA%3D&reserved=0 [image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Cc0730f3823484ac1359d08dad0858608%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638051569429180519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bgXxxnzYhTMNaEr7ZzTo%2FFIkSiPehtpFAuFAmUDnZqQ%3D&reserved=0 [image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Cc0730f3823484ac1359d08dad0858608%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638051569429180519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1zrnoGHIz5YOPOrrk05ID8OB3KdSL7rpbsBxhSwnWzc%3D&reserved=0

Hi Manoj, how are you doing?
On anything Ubuntu based (before 22.x) that is missing php-8.1, try this:
(Lifted from https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-...)
[cid:image001.png@01D903C5.12A64EF0] You'll find the same on https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... under Ubuntu 20.04 install instructions.
To get an updated MariaDB on the same box, try: https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/
All up, the instructions on LibreNMS are a little laggy, the base packages like DB and PHP always now need attention.
________________________________ Terry Sweetser Training Delivery Manager South Asia and Oceania e: terry.sweetser@apnic.netmailto:terry.sweetser@apnic.net p: +61 7 3858 3100 www.apnic.nethttps://www.apnic.net/ [cid:image002.png@01D903C5.12A64EF0]
________________________________ Join the conversation: blog.apnic.nethttps://blog.apnic.net/
[Facebook]https://www.facebook.com/APNIC [Twitter] https://twitter.com/apnic [YouTube] https://www.youtube.com/user/apnicmultimedia [Flickr] https://www.flickr.com/photos/apnic/ [Weibo] http://weibo.com/APNICrir [Slideshare] http://www.slideshare.net/apnic [RSS] https://blog.apnic.net/feed/ [LinkedIn] https://www.linkedin.com/company/apnic
________________________________
From: Manoj Adhikari manoj.adhikari.bt@gmail.com Sent: Monday, 28 November 2022 4:21 PM To: Dave Phelan dave.phelan@apnic.net Cc: btnog@nog.bt; Awal Haolader awal@apnic.net Subject: [btNOG] Re: Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX)
Thank you dave. Will try on apache then :-)
thank you for the link too :-)
[https://d36urhup7zbd7q.cloudfront.net/d14a074b-77da-42ef-9566-e4dc2339d86b/P...] Manoj Adhikari
M
+975 77102200 tel:+975%2077102200 P
+975 2 322828 tel:+975%202%20322828 E
manoj.adhikari.bt@gmail.com mailto:manoj.adhikari.bt@gmail.com W
+975 77102200 [https://cdn.gifo.wisestamp.com/s/fb/3b5998/48/0/background.png]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=4ULpPMsnh6S2rEIUcny7GPMwl93jiah6olKVECfJCX4%3D&reserved=0 [https://cdn.gifo.wisestamp.com/s/ld/0077b5/48/0/background.png]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=7c2ng1qvDqRBFnvyt27S8PGP4FDcWPmgWpZmr5%2BJHDI%3D&reserved=0 [https://cdn.gifo.wisestamp.com/s/tw/55acee/48/0/background.png]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=dOafhWRGi%2Fiveq56Pk%2FhCSicGo7o3qxV9q1Cowi%2FR3k%3D&reserved=0 [https://cdn.gifo.wisestamp.com/s/inst/E4405F/48/0/background.png]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fmanoj_mj_adhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=zVJ4GzuV1KuTKx8TDNbxuNd7syRY5RjbZewxIpKUnUg%3D&reserved=0
[App Social Buttons Image]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=4ULpPMsnh6S2rEIUcny7GPMwl93jiah6olKVECfJCX4%3D&reserved=0 [App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 [App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0
On Mon, Nov 28, 2022 at 3:33 AM Dave Phelan <dave.phelan@apnic.netmailto:dave.phelan@apnic.net> wrote:
Hi Manoj, Whilst it is 18.04, this one installs the correct versions of Maria and PHP. I don't have instructions with NGINX(we use Apache), but it doesn't appear that the webserver is your issue here.
Dave
From: Manoj Adhikari <manoj.adhikari.bt@gmail.commailto:manoj.adhikari.bt@gmail.com> Sent: Monday, 28 November 2022 12:42 AM To: btnog@nog.btmailto:btnog@nog.bt Cc: Dave Phelan <dave.phelan@apnic.netmailto:dave.phelan@apnic.net>; Awal Haolader <awal.haolader@apnic.netmailto:awal.haolader@apnic.net>; Hervey Allen <hervey@nsrc.orgmailto:hervey@nsrc.org> Subject: Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX)
Dear All
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
1. https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub...https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rosehosting.com%2Fblog%2Fhow-to-install-and-configure-librenms-on-ubuntu-20-04%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hTWwryuuwXy8kSgM7RLCWVP6TyhEfbYAD0E5HSOvuoo%3D&reserved=0 2. https://docs.librenms.org/Installation/Install-LibreNMS/https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.librenms.org%2FInstallation%2FInstall-LibreNMS%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=%2FoFef6NrRDmSe9q138N5bYD4fsHMz2jAD5ODIMKZmg4%3D&reserved=0
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
1. PHP version 7.4 is older than 8.1 2. NginX can't load. 3. Cant change the default password of the mariaDB. 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf 5. Deadend while running ./scripts/composer_wrapper.php install --no-dev Many have commented on the two links that these installation guides are missing a few steps, thus, the error.
Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la.
Thanking you in advance
Best Regards Manoj Adhikari (MJ)
[https://d36urhup7zbd7q.cloudfront.net/d14a074b-77da-42ef-9566-e4dc2339d86b/P...] Manoj Adhikari
M
+975 77102200 tel:+975%2077102200 P
+975 2 322828 tel:+975%202%20322828 E
manoj.adhikari.bt@gmail.com mailto:manoj.adhikari.bt@gmail.com W
+975 77102200 [https://cdn.gifo.wisestamp.com/s/fb/3b5998/48/0/background.png]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0 [https://cdn.gifo.wisestamp.com/s/ld/0077b5/48/0/background.png]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 [https://cdn.gifo.wisestamp.com/s/tw/55acee/48/0/background.png]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0 [https://cdn.gifo.wisestamp.com/s/inst/E4405F/48/0/background.png]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fmanoj_mj_adhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5kjSnp%2Bh1%2Ftu3Nrph1lKkTnZ0Z6xd007Itm7y2kqcRk%3D&reserved=0
[App Social Buttons Image]https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0 [App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 [App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0

Hi Manoj,
What Terry said... Plus...
TBH, just start with Ubuntu 22.04 and work from there. You then have modern (safe-ish) php with the system. I've had no issue with installing or running LibreNMS on 22.04. I don't use nginx though - apache for me.
(Had no real issue on 20.04 either, but that was a while back - more than a year! And the Sury PHP and Apache packages are needed before you start, as the the notes below talk about.)
Note that even after you clone from the LibreNMS repo, and have the install running, you are best to run the daily.sh script to update it. And run validate.php too as there can sometimes be issues with installs - I've found that composer can sometimes not have all its packages in place - but the validate tells you how to make any fixes.
My system here at home looks something like this:
$ ./validate.php =========================================== Component | Version --------- | ------- LibreNMS | 22.11.0-4-gfb3c2ecb (2022-11-29T00:54:00+10:00) DB Schema | 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248) PHP | 8.1.11 Python | 3.10.6 Database | MySQL 8.0.31-0ubuntu0.22.04.1 RRDTool | 1.7.2 SNMP | 5.9.1 ===========================================
[OK] Composer Version: 2.4.4 [OK] Dependencies up-to-date. [OK] Database connection successful [OK] Database Schema is current [OK] SQL Server meets minimum requirements [OK] lower_case_table_names is enabled [OK] MySQL engine is optimal [OK] [OK] Database schema correct [OK] MySQl and PHP time match [OK] Active pollers found [OK] Dispatcher Service not detected [OK] Locks are functional [OK] Python poller wrapper is polling [OK] Redis is unavailable [OK] rrdtool version ok [OK] Connected to rrdcached
if any of the above details help at all. :-)
philip --
Terry Sweetser wrote on 29/11/2022 07:41:
Hi Manoj, how are you doing?
On anything Ubuntu based (before 22.x) that is missing php-8.1, try this:
(Lifted from https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-... https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-04/)
You’ll find the same on https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-server under Ubuntu 20.04 install instructions.
To get an updated MariaDB on the same box, try: https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/ https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/
All up, the instructions on LibreNMS are a little laggy, the base packages like DB and PHP always now need attention.
*Terry Sweetser* Training Delivery Manager South Asia and Oceania e: terry.sweetser@apnic.net mailto:terry.sweetser@apnic.net p: +61 7 3858 3100 www.apnic.net https://www.apnic.net/
Join the conversation: *blog.apnic.net https://blog.apnic.net/*
Facebook https://www.facebook.com/APNICTwitter https://twitter.com/apnicYouTube https://www.youtube.com/user/apnicmultimediaFlickr https://www.flickr.com/photos/apnic/Weibo http://weibo.com/APNICrirSlideshare http://www.slideshare.net/apnicRSS https://blog.apnic.net/feed/LinkedIn https://www.linkedin.com/company/apnic
*From:*Manoj Adhikari manoj.adhikari.bt@gmail.com *Sent:* Monday, 28 November 2022 4:21 PM *To:* Dave Phelan dave.phelan@apnic.net *Cc:* btnog@nog.bt; Awal Haolader awal@apnic.net *Subject:* [btNOG] Re: Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX)
Thank you dave. Will try on apache then :-)
thank you for the link too :-)
*Manoj Adhikari *
*M*
+975 77102200 tel:+975%2077102200
*P*
+975 2 322828 tel:+975%202%20322828
*E*
manoj.adhikari.bt@gmail.com mailto:manoj.adhikari.bt@gmail.com
*W*
+975 77102200
App Social Buttons Image https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=4ULpPMsnh6S2rEIUcny7GPMwl93jiah6olKVECfJCX4%3D&reserved=0 App Social Buttons Image https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 App Social Buttons Image https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0
On Mon, Nov 28, 2022 at 3:33 AM Dave Phelan <dave.phelan@apnic.net mailto:dave.phelan@apnic.net> wrote:
Hi Manoj, Whilst it is 18.04, this one installs the correct versions of Maria and PHP. I don’t have instructions with NGINX(we use Apache), but it doesn’t appear that the webserver is your issue here. Dave *From:*Manoj Adhikari <manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>> *Sent:* Monday, 28 November 2022 12:42 AM *To:* btnog@nog.bt <mailto:btnog@nog.bt> *Cc:* Dave Phelan <dave.phelan@apnic.net <mailto:dave.phelan@apnic.net>>; Awal Haolader <awal.haolader@apnic.net <mailto:awal.haolader@apnic.net>>; Hervey Allen <hervey@nsrc.org <mailto:hervey@nsrc.org>> *Subject:* Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX) Dear All I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links: 1. https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ubuntu-20-04/ <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rosehosting.com%2Fblog%2Fhow-to-install-and-configure-librenms-on-ubuntu-20-04%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hTWwryuuwXy8kSgM7RLCWVP6TyhEfbYAD0E5HSOvuoo%3D&reserved=0> 2. https://docs.librenms.org/Installation/Install-LibreNMS/ <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.librenms.org%2FInstallation%2FInstall-LibreNMS%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=%2FoFef6NrRDmSe9q138N5bYD4fsHMz2jAD5ODIMKZmg4%3D&reserved=0> I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered: 1. PHP version 7.4 is older than 8.1 2. NginX can't load. 3. Cant change the default password of the mariaDB. 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf 5. Deadend while running ./scripts/composer_wrapper.php install --no-dev Many have commented on the two links that these installation guides are missing a few steps, thus, the error. Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la. Thanking you in advance Best Regards Manoj Adhikari (MJ) *Manoj Adhikari * *M* +975 77102200 <tel:+975%2077102200> *P* +975 2 322828 <tel:+975%202%20322828> *E* manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com> *W* +975 77102200 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0> <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0> <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0> <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fmanoj_mj_adhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5kjSnp%2Bh1%2Ftu3Nrph1lKkTnZ0Z6xd007Itm7y2kqcRk%3D&reserved=0> App Social Buttons Image <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0> App Social Buttons Image <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0> App Social Buttons Image <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0> Create your own email signature <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisestamp.com%2Fcreate-own-email-signature%2F%3Futm_source%3Dpromotion%26utm_medium%3Dsignature%26utm_campaign%3Dcreate_your_own%26srcid%3D&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=LTO%2FWWkngHbDi2WUQarSq4ROEBScC7W9EU%2B%2BDj9WA%2B8%3D&reserved=0>
Go to the btnog mailing list on Orbit -- orbit.apnic.net/mailing-list/btnog@nog.bt Explore orbit.apnic.net, where the APNIC community connect, discuss and share information related to Internet addressing and networking. To unsubscribe send an email to btnog-leave@nog.bt

Dear Dr Philip
Thank you so much for the response. I have noted all your pointers and shall try to install them on Ubuntu 22. But first, let me try with 20 :-)
Best Regards
Manoj Adhikari
M +975 77102200 P +975 2 322828 E manoj.adhikari.bt@gmail.com W +975 77102200 https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/ [image: App Social Buttons Image] https://www.facebook.com/manojmjadhikari [image: App Social Buttons Image] https://www.linkedin.com/in/manojmjadhikari/ [image: App Social Buttons Image] https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Tue, Nov 29, 2022 at 6:00 AM Philip Smith philip@nsrc.org wrote:
Hi Manoj,
What Terry said... Plus...
TBH, just start with Ubuntu 22.04 and work from there. You then have modern (safe-ish) php with the system. I've had no issue with installing or running LibreNMS on 22.04. I don't use nginx though - apache for me.
(Had no real issue on 20.04 either, but that was a while back - more than a year! And the Sury PHP and Apache packages are needed before you start, as the the notes below talk about.)
Note that even after you clone from the LibreNMS repo, and have the install running, you are best to run the daily.sh script to update it. And run validate.php too as there can sometimes be issues with installs
- I've found that composer can sometimes not have all its packages in
place - but the validate tells you how to make any fixes.
My system here at home looks something like this:
$ ./validate.php
Component | Version --------- | ------- LibreNMS | 22.11.0-4-gfb3c2ecb (2022-11-29T00:54:00+10:00) DB Schema | 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248) PHP | 8.1.11 Python | 3.10.6 Database | MySQL 8.0.31-0ubuntu0.22.04.1 RRDTool | 1.7.2 SNMP | 5.9.1 ===========================================
[OK] Composer Version: 2.4.4 [OK] Dependencies up-to-date. [OK] Database connection successful [OK] Database Schema is current [OK] SQL Server meets minimum requirements [OK] lower_case_table_names is enabled [OK] MySQL engine is optimal [OK] [OK] Database schema correct [OK] MySQl and PHP time match [OK] Active pollers found [OK] Dispatcher Service not detected [OK] Locks are functional [OK] Python poller wrapper is polling [OK] Redis is unavailable [OK] rrdtool version ok [OK] Connected to rrdcached
if any of the above details help at all. :-)
philip
Terry Sweetser wrote on 29/11/2022 07:41:
Hi Manoj, how are you doing?
On anything Ubuntu based (before 22.x) that is missing php-8.1, try this:
(Lifted from
https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-... < https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-...
)
You’ll find the same on
https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... < https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... under Ubuntu 20.04 install instructions.
To get an updated MariaDB on the same box, try:
https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/ <https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/
All up, the instructions on LibreNMS are a little laggy, the base packages like DB and PHP always now need attention.
*Terry Sweetser* Training Delivery Manager South Asia and Oceania e: terry.sweetser@apnic.net mailto:terry.sweetser@apnic.net p: +61 7 3858 3100 www.apnic.net https://www.apnic.net/
Join the conversation: *blog.apnic.net https://blog.apnic.net/*
Facebook https://www.facebook.com/APNICTwitter https://twitter.com/apnicYouTube https://www.youtube.com/user/apnicmultimediaFlickr https://www.flickr.com/photos/apnic/Weibo http://weibo.com/APNICrirSlideshare http://www.slideshare.net/apnicRSS https://blog.apnic.net/feed/LinkedIn https://www.linkedin.com/company/apnic
*From:*Manoj Adhikari manoj.adhikari.bt@gmail.com *Sent:* Monday, 28 November 2022 4:21 PM *To:* Dave Phelan dave.phelan@apnic.net *Cc:* btnog@nog.bt; Awal Haolader awal@apnic.net *Subject:* [btNOG] Re: Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX)
Thank you dave. Will try on apache then :-)
thank you for the link too :-)
*Manoj Adhikari *
*M*
+975 77102200 tel:+975%2077102200
*P*
+975 2 322828 tel:+975%202%20322828
*E*
manoj.adhikari.bt@gmail.com mailto:manoj.adhikari.bt@gmail.com
*W*
+975 77102200
<
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo...
<
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked...
<
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co...
<
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instag...
App Social Buttons Image <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo... App Social Buttons Image < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked... App Social Buttons Image < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co...
Create your own email signature <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisest...
On Mon, Nov 28, 2022 at 3:33 AM Dave Phelan <dave.phelan@apnic.net mailto:dave.phelan@apnic.net> wrote:
Hi Manoj, Whilst it is 18.04, this one installs the correct versions of Maria and PHP. I don’t have instructions with NGINX(we use Apache), but it doesn’t appear that the webserver is your issue here. Dave *From:*Manoj Adhikari <manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>> *Sent:* Monday, 28 November 2022 12:42 AM *To:* btnog@nog.bt <mailto:btnog@nog.bt> *Cc:* Dave Phelan <dave.phelan@apnic.net <mailto:dave.phelan@apnic.net>>; Awal Haolader <awal.haolader@apnic.net <mailto:awal.haolader@apnic.net>>; Hervey Allen <hervey@nsrc.org <mailto:hervey@nsrc.org>> *Subject:* Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX) Dear All I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links: 1.
https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.roseho...
2. https://docs.librenms.org/Installation/Install-LibreNMS/ <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.libre...
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I
encountered:
1. PHP version 7.4 is older than 8.1 2. NginX can't load. 3. Cant change the default password of the mariaDB. 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf 5. Deadend while running ./scripts/composer_wrapper.php install --no-dev Many have commented on the two links that these installation guides are missing a few steps, thus, the error. Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la. Thanking you in advance Best Regards Manoj Adhikari (MJ) *Manoj Adhikari * *M* +975 77102200 <tel:+975%2077102200> *P* +975 2 322828 <tel:+975%202%20322828> *E* manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com> *W* +975 77102200 <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo...
<
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked...
<
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co...
<
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instag...
App Social Buttons Image <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo... App Social Buttons Image < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked... App Social Buttons Image < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co...
Create your own email signature <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisest...
Go to the btnog mailing list on Orbit --
orbit.apnic.net/mailing-list/btnog@nog.bt
Explore orbit.apnic.net, where the APNIC community connect, discuss and
share information related to Internet addressing and networking.
To unsubscribe send an email to btnog-leave@nog.bt

Hi Manoj,
Reading my notes here, one issue I found with 20.04 is that composer didn't install properly.
After cloning from the repo, and setting up the virtualhost (librenms.<domain> is their preference), I had to do this as the librenms user:
$ cd /opt/librenms $ ./scripts/composer_wrapper.php install --no-dev
This is before you even start the web configuration. Once the above is run, and all the packages are downloaded, you can then go to http://librenms.<domain>/install and complete the config. Also, when running validate.php after that, lots of DB errors, but the output tells you what to do to fix.
Weird thing is, this was 20.04. I had no issue on 22.04. php8.1 in both cases. Didn't investigate what was going on, didn't ask on the "net" either...
Anyway, good luck with your install. :-)
philip --
Manoj Adhikari wrote on 29/11/2022 15:36:
Dear Dr Philip
Thank you so much for the response. I have noted all your pointers and shall try to install them on Ubuntu 22. But first, let me try with 20 :-)
Best Regards
Manoj Adhikari
M +975 77102200 <tel:+975 77102200>
P +975 2 322828 <tel:+975 2 322828>
E manoj.adhikari.bt@gmail.com mailto:manoj.adhikari.bt@gmail.com
W +975 77102200
https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/
App Social Buttons Image https://www.facebook.com/manojmjadhikari App Social Buttons Image https://www.linkedin.com/in/manojmjadhikari/ App Social Buttons Image https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Tue, Nov 29, 2022 at 6:00 AM Philip Smith <philip@nsrc.org mailto:philip@nsrc.org> wrote:
Hi Manoj, What Terry said... Plus... TBH, just start with Ubuntu 22.04 and work from there. You then have modern (safe-ish) php with the system. I've had no issue with installing or running LibreNMS on 22.04. I don't use nginx though - apache for me. (Had no real issue on 20.04 either, but that was a while back - more than a year! And the Sury PHP and Apache packages are needed before you start, as the the notes below talk about.) Note that even after you clone from the LibreNMS repo, and have the install running, you are best to run the daily.sh script to update it. And run validate.php too as there can sometimes be issues with installs - I've found that composer can sometimes not have all its packages in place - but the validate tells you how to make any fixes. My system here at home looks something like this: $ ./validate.php =========================================== Component | Version --------- | ------- LibreNMS | 22.11.0-4-gfb3c2ecb (2022-11-29T00:54:00+10:00) DB Schema | 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248) PHP | 8.1.11 Python | 3.10.6 Database | MySQL 8.0.31-0ubuntu0.22.04.1 RRDTool | 1.7.2 SNMP | 5.9.1 =========================================== [OK] Composer Version: 2.4.4 [OK] Dependencies up-to-date. [OK] Database connection successful [OK] Database Schema is current [OK] SQL Server meets minimum requirements [OK] lower_case_table_names is enabled [OK] MySQL engine is optimal [OK] [OK] Database schema correct [OK] MySQl and PHP time match [OK] Active pollers found [OK] Dispatcher Service not detected [OK] Locks are functional [OK] Python poller wrapper is polling [OK] Redis is unavailable [OK] rrdtool version ok [OK] Connected to rrdcached if any of the above details help at all. :-) philip -- Terry Sweetser wrote on 29/11/2022 07:41: > Hi Manoj, how are you doing? > > On anything Ubuntu based (before 22.x) that is missing php-8.1, try this: > > (Lifted from > https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-04/ <https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-04/> <https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-04/ <https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-04/>>) > > You’ll find the same on > https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-server <https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-server> <https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-server <https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-server>> under Ubuntu 20.04 install instructions. > > To get an updated MariaDB on the same box, try: > https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/ <https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/> <https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/ <https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/>> > > All up, the instructions on LibreNMS are a little laggy, the base > packages like DB and PHP always now need attention. > > ------------------------------------------------------------------------ > > *Terry Sweetser* > Training Delivery Manager > South Asia and Oceania > e: terry.sweetser@apnic.net <mailto:terry.sweetser@apnic.net> <mailto:terry.sweetser@apnic.net <mailto:terry.sweetser@apnic.net>> > p: +61 7 3858 3100 > www.apnic.net <http://www.apnic.net> <https://www.apnic.net/ <https://www.apnic.net/>> > > > > ------------------------------------------------------------------------ > > Join the conversation: *blog.apnic.net <http://blog.apnic.net> <https://blog.apnic.net/ <https://blog.apnic.net/>>* > > Facebook <https://www.facebook.com/APNIC <https://www.facebook.com/APNIC>>Twitter > <https://twitter.com/apnic <https://twitter.com/apnic>>YouTube > <https://www.youtube.com/user/apnicmultimedia <https://www.youtube.com/user/apnicmultimedia>>Flickr > <https://www.flickr.com/photos/apnic/ <https://www.flickr.com/photos/apnic/>>Weibo > <http://weibo.com/APNICrir <http://weibo.com/APNICrir>>Slideshare > <http://www.slideshare.net/apnic <http://www.slideshare.net/apnic>>RSS > <https://blog.apnic.net/feed/ <https://blog.apnic.net/feed/>>LinkedIn > <https://www.linkedin.com/company/apnic <https://www.linkedin.com/company/apnic>> > > ------------------------------------------------------------------------ > > *From:*Manoj Adhikari <manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>> > *Sent:* Monday, 28 November 2022 4:21 PM > *To:* Dave Phelan <dave.phelan@apnic.net <mailto:dave.phelan@apnic.net>> > *Cc:* btnog@nog.bt <mailto:btnog@nog.bt>; Awal Haolader <awal@apnic.net <mailto:awal@apnic.net>> > *Subject:* [btNOG] Re: Issue with Installing and Configuring LibreNMS on > Ubuntu 20.04 (NginX) > > Thank you dave. Will try on apache then :-) > > thank you for the link too :-) > > > > *Manoj Adhikari * > > *M* > > > > > > +975 77102200 <tel:+975%2077102200> > > > > > *P* > > > > > > +975 2 322828 <tel:+975%202%20322828> > > > > > *E* > > > > > > manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com> <mailto:manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>> > > > > > *W* > > > > > > +975 77102200 > > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=4ULpPMsnh6S2rEIUcny7GPMwl93jiah6olKVECfJCX4%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=4ULpPMsnh6S2rEIUcny7GPMwl93jiah6olKVECfJCX4%3D&reserved=0>> > > > > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=7c2ng1qvDqRBFnvyt27S8PGP4FDcWPmgWpZmr5%2BJHDI%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=7c2ng1qvDqRBFnvyt27S8PGP4FDcWPmgWpZmr5%2BJHDI%3D&reserved=0>> > > > > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=dOafhWRGi%2Fiveq56Pk%2FhCSicGo7o3qxV9q1Cowi%2FR3k%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=dOafhWRGi%2Fiveq56Pk%2FhCSicGo7o3qxV9q1Cowi%2FR3k%3D&reserved=0>> > > > > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fmanoj_mj_adhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=zVJ4GzuV1KuTKx8TDNbxuNd7syRY5RjbZewxIpKUnUg%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fmanoj_mj_adhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=zVJ4GzuV1KuTKx8TDNbxuNd7syRY5RjbZewxIpKUnUg%3D&reserved=0>> > > App Social Buttons Image > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=4ULpPMsnh6S2rEIUcny7GPMwl93jiah6olKVECfJCX4%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=4ULpPMsnh6S2rEIUcny7GPMwl93jiah6olKVECfJCX4%3D&reserved=0>> App Social Buttons Image <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0>> App Social Buttons Image <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0>> > > Create your own email signature > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisestamp.com%2Fcreate-own-email-signature%2F%3Futm_source%3Dpromotion%26utm_medium%3Dsignature%26utm_campaign%3Dcreate_your_own%26srcid%3D&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=LTO%2FWWkngHbDi2WUQarSq4ROEBScC7W9EU%2B%2BDj9WA%2B8%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisestamp.com%2Fcreate-own-email-signature%2F%3Futm_source%3Dpromotion%26utm_medium%3Dsignature%26utm_campaign%3Dcreate_your_own%26srcid%3D&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=LTO%2FWWkngHbDi2WUQarSq4ROEBScC7W9EU%2B%2BDj9WA%2B8%3D&reserved=0>> > > On Mon, Nov 28, 2022 at 3:33 AM Dave Phelan <dave.phelan@apnic.net <mailto:dave.phelan@apnic.net> > <mailto:dave.phelan@apnic.net <mailto:dave.phelan@apnic.net>>> wrote: > > Hi Manoj, > Whilst it is 18.04, this one installs the correct versions of Maria > and PHP. > I don’t have instructions with NGINX(we use Apache), but it doesn’t > appear that the webserver is your issue here. > > Dave > > *From:*Manoj Adhikari <manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com> > <mailto:manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>>> > *Sent:* Monday, 28 November 2022 12:42 AM > *To:* btnog@nog.bt <mailto:btnog@nog.bt> <mailto:btnog@nog.bt <mailto:btnog@nog.bt>> > *Cc:* Dave Phelan <dave.phelan@apnic.net <mailto:dave.phelan@apnic.net> > <mailto:dave.phelan@apnic.net <mailto:dave.phelan@apnic.net>>>; Awal Haolader > <awal.haolader@apnic.net <mailto:awal.haolader@apnic.net> <mailto:awal.haolader@apnic.net <mailto:awal.haolader@apnic.net>>>; Hervey > Allen <hervey@nsrc.org <mailto:hervey@nsrc.org> <mailto:hervey@nsrc.org <mailto:hervey@nsrc.org>>> > *Subject:* Issue with Installing and Configuring LibreNMS on Ubuntu > 20.04 (NginX) > > Dear All > > I am trying to install and configure LibreNMS on Ubuntu 20.04. This > is the first time I am not doing it on Ubuntu 18. I referred to the > following two links: > > 1. https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ubuntu-20-04/ <https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ubuntu-20-04/> <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rosehosting.com%2Fblog%2Fhow-to-install-and-configure-librenms-on-ubuntu-20-04%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hTWwryuuwXy8kSgM7RLCWVP6TyhEfbYAD0E5HSOvuoo%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rosehosting.com%2Fblog%2Fhow-to-install-and-configure-librenms-on-ubuntu-20-04%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hTWwryuuwXy8kSgM7RLCWVP6TyhEfbYAD0E5HSOvuoo%3D&reserved=0>> > 2. https://docs.librenms.org/Installation/Install-LibreNMS/ <https://docs.librenms.org/Installation/Install-LibreNMS/> > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.librenms.org%2FInstallation%2FInstall-LibreNMS%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=%2FoFef6NrRDmSe9q138N5bYD4fsHMz2jAD5ODIMKZmg4%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.librenms.org%2FInstallation%2FInstall-LibreNMS%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=%2FoFef6NrRDmSe9q138N5bYD4fsHMz2jAD5ODIMKZmg4%3D&reserved=0>> > > I tried many fresh installs and reinstalls as both the links always > reach deadened with different errors. Some of the errors I encountered: > > 1. PHP version 7.4 is older than 8.1 > 2. NginX can't load. > 3. Cant change the default password of the mariaDB. > 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf > 5. Deadend while running ./scripts/composer_wrapper.php install > --no-dev > > Many have commented on the two links that these installation guides > are missing a few steps, thus, the error. > > Therefore I wanted to request the community if you have tried out > installing LibreNMS on Ubuntu 20 and have the correct and detailed > guide. It may be a link used in NMM training or anything that will > help me la. > > Thanking you in advance > > Best Regards > > Manoj Adhikari (MJ) > > > > *Manoj Adhikari * > > *M* > > > > > > +975 77102200 <tel:+975%2077102200> > > > > > *P* > > > > > > +975 2 322828 <tel:+975%202%20322828> > > > > > *E* > > > > > > manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com> <mailto:manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>> > > > > > *W* > > > > > > +975 77102200 > > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0>> > > > > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0>> > > > > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0>> > > > > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fmanoj_mj_adhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5kjSnp%2Bh1%2Ftu3Nrph1lKkTnZ0Z6xd007Itm7y2kqcRk%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fmanoj_mj_adhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5kjSnp%2Bh1%2Ftu3Nrph1lKkTnZ0Z6xd007Itm7y2kqcRk%3D&reserved=0>> > > App Social Buttons Image > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0>> App Social Buttons Image <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0>> App Social Buttons Image <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0>> > > Create your own email signature > <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisestamp.com%2Fcreate-own-email-signature%2F%3Futm_source%3Dpromotion%26utm_medium%3Dsignature%26utm_campaign%3Dcreate_your_own%26srcid%3D&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=LTO%2FWWkngHbDi2WUQarSq4ROEBScC7W9EU%2B%2BDj9WA%2B8%3D&reserved=0 <https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisestamp.com%2Fcreate-own-email-signature%2F%3Futm_source%3Dpromotion%26utm_medium%3Dsignature%26utm_campaign%3Dcreate_your_own%26srcid%3D&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=LTO%2FWWkngHbDi2WUQarSq4ROEBScC7W9EU%2B%2BDj9WA%2B8%3D&reserved=0>> > > > _______________________________________________ > Go to the btnog mailing list on Orbit -- orbit.apnic.net/mailing-list/btnog@nog.bt <http://orbit.apnic.net/mailing-list/btnog@nog.bt> > Explore orbit.apnic.net <http://orbit.apnic.net>, where the APNIC community connect, discuss and share information related to Internet addressing and networking. > To unsubscribe send an email to btnog-leave@nog.bt <mailto:btnog-leave@nog.bt>

Dear Dr. Philip
Thank you so much for the heads up. I shall try one final time on the 20 and if not, will take your advice on 22 :-)
best regards
Manoj Adhikari
M +975 77102200 P +975 2 322828 E manoj.adhikari.bt@gmail.com W +975 77102200 https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/ [image: App Social Buttons Image] https://www.facebook.com/manojmjadhikari [image: App Social Buttons Image] https://www.linkedin.com/in/manojmjadhikari/ [image: App Social Buttons Image] https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Tue, Nov 29, 2022 at 5:44 PM Philip Smith philip@nsrc.org wrote:
Hi Manoj,
Reading my notes here, one issue I found with 20.04 is that composer didn't install properly.
After cloning from the repo, and setting up the virtualhost (librenms.<domain> is their preference), I had to do this as the librenms user:
$ cd /opt/librenms $ ./scripts/composer_wrapper.php install --no-dev
This is before you even start the web configuration. Once the above is run, and all the packages are downloaded, you can then go to http://librenms.<domain>/install and complete the config. Also, when running validate.php after that, lots of DB errors, but the output tells you what to do to fix.
Weird thing is, this was 20.04. I had no issue on 22.04. php8.1 in both cases. Didn't investigate what was going on, didn't ask on the "net" either...
Anyway, good luck with your install. :-)
philip
Manoj Adhikari wrote on 29/11/2022 15:36:
Dear Dr Philip
Thank you so much for the response. I have noted all your pointers and shall try to install them on Ubuntu 22. But first, let me try with 20 :-)
Best Regards
Manoj Adhikari
M +975 77102200 <tel:+975 77102200>
P +975 2 322828 <tel:+975 2 322828> E manoj.adhikari.bt@gmail.com <mailto:
manoj.adhikari.bt@gmail.com>
W +975 77102200
https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/
App Social Buttons Image https://www.facebook.com/manojmjadhikari App Social Buttons Image https://www.linkedin.com/in/manojmjadhikari/ App Social Buttons Image https://twitter.com/ManoJonaM
Create your own email signature <
https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&a...
On Tue, Nov 29, 2022 at 6:00 AM Philip Smith <philip@nsrc.org mailto:philip@nsrc.org> wrote:
Hi Manoj, What Terry said... Plus... TBH, just start with Ubuntu 22.04 and work from there. You then have modern (safe-ish) php with the system. I've had no issue with installing or running LibreNMS on 22.04. I don't use nginx though - apache for
me.
(Had no real issue on 20.04 either, but that was a while back - more than a year! And the Sury PHP and Apache packages are needed before
you
start, as the the notes below talk about.) Note that even after you clone from the LibreNMS repo, and have the install running, you are best to run the daily.sh script to update
it.
And run validate.php too as there can sometimes be issues with
installs
- I've found that composer can sometimes not have all its packages in place - but the validate tells you how to make any fixes. My system here at home looks something like this: $ ./validate.php =========================================== Component | Version --------- | ------- LibreNMS | 22.11.0-4-gfb3c2ecb (2022-11-29T00:54:00+10:00) DB Schema | 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248) PHP | 8.1.11 Python | 3.10.6 Database | MySQL 8.0.31-0ubuntu0.22.04.1 RRDTool | 1.7.2 SNMP | 5.9.1 =========================================== [OK] Composer Version: 2.4.4 [OK] Dependencies up-to-date. [OK] Database connection successful [OK] Database Schema is current [OK] SQL Server meets minimum requirements [OK] lower_case_table_names is enabled [OK] MySQL engine is optimal [OK] [OK] Database schema correct [OK] MySQl and PHP time match [OK] Active pollers found [OK] Dispatcher Service not detected [OK] Locks are functional [OK] Python poller wrapper is polling [OK] Redis is unavailable [OK] rrdtool version ok [OK] Connected to rrdcached if any of the above details help at all. :-) philip -- Terry Sweetser wrote on 29/11/2022 07:41: > Hi Manoj, how are you doing? > > On anything Ubuntu based (before 22.x) that is missing php-8.1, try this: > > (Lifted from >
https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-... < https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-... < https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-... < https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-...
)
> > You’ll find the same on >
https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... < https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... < https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... < https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... under Ubuntu 20.04 install instructions.
> > To get an updated MariaDB on the same box, try: >
https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/ https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/ <https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/ <https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/
> > All up, the instructions on LibreNMS are a little laggy, the base > packages like DB and PHP always now need attention. > >
> > *Terry Sweetser* > Training Delivery Manager > South Asia and Oceania > e: terry.sweetser@apnic.net <mailto:terry.sweetser@apnic.net> <mailto:terry.sweetser@apnic.net <mailto:terry.sweetser@apnic.net>> > p: +61 7 3858 3100 > www.apnic.net <http://www.apnic.net> <https://www.apnic.net/ <https://www.apnic.net/>> > > > >
> > Join the conversation: *blog.apnic.net <http://blog.apnic.net> <https://blog.apnic.net/ <https://blog.apnic.net/>>* > > Facebook <https://www.facebook.com/APNIC <https://www.facebook.com/APNIC>>Twitter > <https://twitter.com/apnic <https://twitter.com/apnic>>YouTube > <https://www.youtube.com/user/apnicmultimedia <https://www.youtube.com/user/apnicmultimedia>>Flickr > <https://www.flickr.com/photos/apnic/ <https://www.flickr.com/photos/apnic/>>Weibo > <http://weibo.com/APNICrir <http://weibo.com/APNICrir>>Slideshare > <http://www.slideshare.net/apnic <http://www.slideshare.net/apnic>>RSS > <https://blog.apnic.net/feed/ <https://blog.apnic.net/feed/>>LinkedIn > <https://www.linkedin.com/company/apnic <https://www.linkedin.com/company/apnic>> > >
> > *From:*Manoj Adhikari <manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>> > *Sent:* Monday, 28 November 2022 4:21 PM > *To:* Dave Phelan <dave.phelan@apnic.net <mailto:dave.phelan@apnic.net>> > *Cc:* btnog@nog.bt <mailto:btnog@nog.bt>; Awal Haolader <awal@apnic.net <mailto:awal@apnic.net>> > *Subject:* [btNOG] Re: Issue with Installing and Configuring LibreNMS on > Ubuntu 20.04 (NginX) > > Thank you dave. Will try on apache then :-) > > thank you for the link too :-) > > > > *Manoj Adhikari * > > *M* > > > > > > +975 77102200 <tel:+975%2077102200> > > > > > *P* > > > > > > +975 2 322828 <tel:+975%202%20322828> > > > > > *E* > > > > > > manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com> <mailto:manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>> > > > > > *W* > > > > > > +975 77102200 > > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo...
> > > > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked...
> > > > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co...
> > > > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instag... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instag...
> > App Social Buttons Image > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo... App Social Buttons Image < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked... App Social Buttons Image < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co...
> > Create your own email signature > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisest... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisest...
> > On Mon, Nov 28, 2022 at 3:33 AM Dave Phelan <dave.phelan@apnic.net <mailto:dave.phelan@apnic.net> > <mailto:dave.phelan@apnic.net <mailto:dave.phelan@apnic.net>>>
wrote:
> > Hi Manoj, > Whilst it is 18.04, this one installs the correct versions of Maria > and PHP. > I don’t have instructions with NGINX(we use Apache), but it doesn’t > appear that the webserver is your issue here. > > Dave > > *From:*Manoj Adhikari <manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com> > <mailto:manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>>> > *Sent:* Monday, 28 November 2022 12:42 AM > *To:* btnog@nog.bt <mailto:btnog@nog.bt> <mailto:btnog@nog.bt <mailto:btnog@nog.bt>> > *Cc:* Dave Phelan <dave.phelan@apnic.net <mailto:dave.phelan@apnic.net> > <mailto:dave.phelan@apnic.net <mailto:dave.phelan@apnic.net>>>; Awal Haolader > <awal.haolader@apnic.net <mailto:awal.haolader@apnic.net> <mailto:awal.haolader@apnic.net <mailto:awal.haolader@apnic.net>>>; Hervey > Allen <hervey@nsrc.org <mailto:hervey@nsrc.org> <mailto:hervey@nsrc.org <mailto:hervey@nsrc.org>>> > *Subject:* Issue with Installing and Configuring LibreNMS on Ubuntu > 20.04 (NginX) > > Dear All > > I am trying to install and configure LibreNMS on Ubuntu 20.04. This > is the first time I am not doing it on Ubuntu 18. I referred to the > following two links: > > 1.
https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... < https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.roseho... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.roseho...
> 2. https://docs.librenms.org/Installation/Install-LibreNMS/ <https://docs.librenms.org/Installation/Install-LibreNMS/> > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.libre... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.libre...
> > I tried many fresh installs and reinstalls as both the links always > reach deadened with different errors. Some of the errors I encountered: > > 1. PHP version 7.4 is older than 8.1 > 2. NginX can't load. > 3. Cant change the default password of the mariaDB. > 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf > 5. Deadend while running ./scripts/composer_wrapper.php
install
> --no-dev > > Many have commented on the two links that these installation guides > are missing a few steps, thus, the error. > > Therefore I wanted to request the community if you have tried
out
> installing LibreNMS on Ubuntu 20 and have the correct and detailed > guide. It may be a link used in NMM training or anything that will > help me la. > > Thanking you in advance > > Best Regards > > Manoj Adhikari (MJ) > > > > *Manoj Adhikari * > > *M* > > > > > > +975 77102200 <tel:+975%2077102200> > > > > > *P* > > > > > > +975 2 322828 <tel:+975%202%20322828> > > > > > *E* > > > > > > manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com> <mailto:manoj.adhikari.bt@gmail.com <mailto:manoj.adhikari.bt@gmail.com>> > > > > > *W* > > > > > > +975 77102200 > > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo...
> > > > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked...
> > > > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co...
> > > > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instag... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instag...
> > App Social Buttons Image > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebo... App Social Buttons Image < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linked... App Social Buttons Image < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.co...
> > Create your own email signature > <
https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisest... < https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.wisest...
> > > _______________________________________________ > Go to the btnog mailing list on Orbit -- orbit.apnic.net/mailing-list/btnog@nog.bt <http://orbit.apnic.net/mailing-list/btnog@nog.bt> > Explore orbit.apnic.net <http://orbit.apnic.net>, where the APNIC community connect, discuss and share information related to Internet addressing and networking. > To unsubscribe send an email to btnog-leave@nog.bt <mailto:btnog-leave@nog.bt>

Dear Terry
Thank you so much for the guide and the links. This is very helpful. I will give it a try :-)
Best Regards
Manoj Adhikari
M +975 77102200 P +975 2 322828 E manoj.adhikari.bt@gmail.com W +975 77102200 https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/ [image: App Social Buttons Image] https://www.facebook.com/manojmjadhikari [image: App Social Buttons Image] https://www.linkedin.com/in/manojmjadhikari/ [image: App Social Buttons Image] https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Tue, Nov 29, 2022 at 3:41 AM Terry Sweetser terry.sweetser@apnic.net wrote:
Hi Manoj, how are you doing?
On anything Ubuntu based (before 22.x) that is missing php-8.1, try this:
(Lifted from https://www.cloudbooklet.com/how-to-install-or-upgrade-php-8-1-on-ubuntu-20-... )
You’ll find the same on https://docs.librenms.org/Installation/Install-LibreNMS/#prepare-linux-serve... under Ubuntu 20.04 install instructions.
To get an updated MariaDB on the same box, try: https://computingforgeeks.com/how-to-install-mariadb-on-ubuntu-lts-linux/
All up, the instructions on LibreNMS are a little laggy, the base packages like DB and PHP always now need attention.
*Terry Sweetser* Training Delivery Manager South Asia and Oceania e: terry.sweetser@apnic.net p: +61 7 3858 3100 www.apnic.net
Join the conversation: *blog.apnic.net https://blog.apnic.net/*
[image: Facebook] https://www.facebook.com/APNIC [image: Twitter] https://twitter.com/apnic [image: YouTube] https://www.youtube.com/user/apnicmultimedia [image: Flickr] https://www.flickr.com/photos/apnic/ [image: Weibo] http://weibo.com/APNICrir [image: Slideshare] http://www.slideshare.net/apnic [image: RSS] https://blog.apnic.net/feed/ [image: LinkedIn] https://www.linkedin.com/company/apnic
*From:* Manoj Adhikari manoj.adhikari.bt@gmail.com *Sent:* Monday, 28 November 2022 4:21 PM *To:* Dave Phelan dave.phelan@apnic.net *Cc:* btnog@nog.bt; Awal Haolader awal@apnic.net *Subject:* [btNOG] Re: Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX)
Thank you dave. Will try on apache then :-)
thank you for the link too :-)
*Manoj Adhikari *
*M*
+975 77102200 <+975%2077102200>
*P*
+975 2 322828 <+975%202%20322828>
*E*
manoj.adhikari.bt@gmail.com
*W*
+975 77102200
[image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778062732%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=4ULpPMsnh6S2rEIUcny7GPMwl93jiah6olKVECfJCX4%3D&reserved=0 [image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 [image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0
On Mon, Nov 28, 2022 at 3:33 AM Dave Phelan dave.phelan@apnic.net wrote:
Hi Manoj, Whilst it is 18.04, this one installs the correct versions of Maria and PHP. I don’t have instructions with NGINX(we use Apache), but it doesn’t appear that the webserver is your issue here.
Dave
*From:* Manoj Adhikari manoj.adhikari.bt@gmail.com *Sent:* Monday, 28 November 2022 12:42 AM *To:* btnog@nog.bt *Cc:* Dave Phelan dave.phelan@apnic.net; Awal Haolader < awal.haolader@apnic.net>; Hervey Allen hervey@nsrc.org *Subject:* Issue with Installing and Configuring LibreNMS on Ubuntu 20.04 (NginX)
Dear All
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rosehosting.com%2Fblog%2Fhow-to-install-and-configure-librenms-on-ubuntu-20-04%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hTWwryuuwXy8kSgM7RLCWVP6TyhEfbYAD0E5HSOvuoo%3D&reserved=0 2. https://docs.librenms.org/Installation/Install-LibreNMS/ https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.librenms.org%2FInstallation%2FInstall-LibreNMS%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=%2FoFef6NrRDmSe9q138N5bYD4fsHMz2jAD5ODIMKZmg4%3D&reserved=0
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
- PHP version 7.4 is older than 8.1
- NginX can't load.
- Cant change the default password of the mariaDB.
- Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf
- Deadend while running ./scripts/composer_wrapper.php install
--no-dev
Many have commented on the two links that these installation guides are missing a few steps, thus, the error.
Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la.
Thanking you in advance
Best Regards
Manoj Adhikari (MJ)
*Manoj Adhikari *
*M*
+975 77102200 <+975%2077102200>
*P*
+975 2 322828 <+975%202%20322828>
*E*
manoj.adhikari.bt@gmail.com
*W*
+975 77102200
[image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmanojmjadhikari&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=5I27pXUey%2F61boFiQsYHfuh%2FBuG%2BzAT4hsBxkkRU3MQ%3D&reserved=0 [image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanojmjadhikari%2F&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=v4NajILgOwF5QyWUknPpdfNPKGcFMQSE4T9AM%2Brqh%2Bs%3D&reserved=0 [image: App Social Buttons Image] https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FManoJonaM&data=05%7C01%7C%7Ca839d233ff334605f65108dad108b997%7C127d8d0d7ccf473dab096e44ad752ded%7C0%7C0%7C638052132778219010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hcihAEe10RpxTin1VR2C6iqRL3cLHsIa4q7rxqH%2FFLY%3D&reserved=0

On 27-11-22 06:41, Manoj Adhikari wrote:
Dear All
Hello Manoj,
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
- https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ubuntu-20-04/
- https://docs.librenms.org/Installation/Install-LibreNMS/ https://docs.librenms.org/Installation/Install-LibreNMS/
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
- PHP version 7.4 is older than 8.1
- NginX can't load.
- Cant change the default password of the mariaDB.
- Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf
- Deadend while running ./scripts/composer_wrapper.php install --no-dev
Ugh. No fun.
Many have commented on the two links that these installation guides are missing a few steps, thus, the error.
Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la.
:-) So, we have now moved our training platform to version 22.04 of Ubuntu Linux. The LibreNMS version we have installed is quite old as installing latest has gotten considerably harder. I have CC'ed Brian Candler in this message, but overall the approach that my be simplest is to install Docker under your Linux version and then install LibreNMS latest using Docker:
https://docs.librenms.org/Installation/Docker/
These are basic instructions, but LibreNMS is now looking for nginx and MariaDB.
Here are some instructions for installing under Ubuntu 22.04 (one commenter used these instructions on 22.04 on August 29, 2022).
Otherwise, here are the 20.04 instructions available:
https://www.howtoforge.com/tutorial/how-to-setup-librenms-monitoring-tool-wi...
however, these, I believe, are now a bit old and some of the comments indicate not quite 100% correct.
The good news, the project appears to continue to move forward. Looking at the project documentation at:
https://docs.librenms.org/Installation/Install-LibreNMS/
the 22.04 instructions look like they may be closer to being up to date. As you saw, 20.04 may be hard, or if you are installing on a preconfigured 20.04 installation (i.e., you have other packages you are using on that install) the LibreNMS requirements may be detailed enough that running the service on a dedicated VM or Docker container is the better way to go.
I hope this helps.
Good luck Manoj!
- Hervey
Thanking you in advance
Best Regards Manoj Adhikari (MJ)
Manoj Adhikari
M +975 77102200 <tel:+975 77102200>
P +975 2 322828 <tel:+975 2 322828>
E manoj.adhikari.bt@gmail.com mailto:manoj.adhikari.bt@gmail.com
W +975 77102200
https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/
App Social Buttons Image https://www.facebook.com/manojmjadhikari App Social Buttons Image https://www.linkedin.com/in/manojmjadhikari/ App Social Buttons Image https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=

On 30/11/2022 08:20, Hervey Allen wrote:
On 27-11-22 06:41, Manoj Adhikari wrote:
Dear All
Hello Manoj,
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
1. https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ubuntu-20-04/
2. https://docs.librenms.org/Installation/Install-LibreNMS/ https://docs.librenms.org/Installation/Install-LibreNMS/
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
1. PHP version 7.4 is older than 8.1 2. NginX can't load. 3. Cant change the default password of the mariaDB. 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf 5. Deadend while running ./scripts/composer_wrapper.php install --no-dev
Hi Manoj,
You've found the official installation instructions at https://docs.librenms.org/Installation/Install-LibreNMS/ but as Hervey says, I suggest you install on Ubuntu 22.04 (even though they do still provide instructions for 20.04). This will at least solve your PHP version issue.
I would in any case strongly recommend running LibreNMS in its own dedicated VM, because it has a lot of dependencies and you don't want other applications to interfere with it (or vice versa). And therefore, you can choose Ubuntu 22.04 for that VM, regardless of what you're running elsewhere.
What we've been using until now for NSRC NMM training is the pre-built VM image that they publish here:
https://docs.librenms.org/Installation/Images/ https://github.com/librenms/packer-builds/releases/tag/21.2.0
Unfortunately, this is now nearly 2 years old, and the version of LibreNMS it contains is significantly buggy (e.g. lots of links don't work). But they have no plans to publish a new VM image.
So I think Hervey is right. Either install from scratch in a fresh VM with Ubuntu 22.04 (and you may have to engage with the community to find out which steps are missing or broken in the installation instructions); or use the Docker image.
The attractiveness of Docker is that the entire application and all its dependencies are pre-built and bundled together in a single image. And, I suspect this is what we'll be moving to soon in NMM.
The things to be aware of, if you've not used docker before, are:
1. The image downloads will be large - hundreds of MB. Make sure you have sufficient bandwidth - or patience :-)
2. The setup will create multiple containers (e.g. for librenms itself, mariadb, redis etc). However, this should all be taken care of for you by docker-compose, which has a file that tells it what it needs to run:
https://github.com/librenms/docker/blob/master/examples/compose/docker-compo...
Just follow the instructions at https://docs.librenms.org/Installation/Docker/ and you should be OK.
3. You need to be aware, that whenever you upgrade your setup, you will need to destroy and recreate all your containers with new versions of the software. This in turn means that they need to be started in a way that stores their state in "data volumes", so that you don't lose data.
Again, this should all be taken care of for you by the docker-compose file. For example, you can see:
services: db: image: mariadb:10.5 ... volumes: - "./db:/var/lib/mysql"
This is the mariadb container, and this says "the /var/lib/mysql directory inside the container should map to the 'db' subdirectory of the current directory on the host" (i.e. the directory where you're running docker-compose)
So as long as mariadb stores all its persistent state under /var/lib/mysql, which I believe it does, you should be good: the files will actually be stored outside of the container, on your host's filesystem, and whenever you upgrade mariadb to a newer version, it will pick up the database files left around by the old version.
There's a bit of a learning curve to get to grips with docker properly, but I think it's worth a try, given that it's as simple as "docker-compose up". Things might get a bit more complex when you want to *change* how things are done, for example if you want to deploy with HTTPS and certificates. You'll need to check whether the Netbox container itself can handle this, by giving it extra configuration options at startup time, or whether you'll need to run a front-end proxy like Apache or Nginx.
Still: it's very easy to spin up and test, and once you know this, it will be useful for other applications too.
Good luck, and let us know how you get on!
Regards,
Brian.

On 30-11-22 00:52, Brian Candler wrote:
On 30/11/2022 08:20, Hervey Allen wrote:
On 27-11-22 06:41, Manoj Adhikari wrote:
Dear All
Hello Manoj,
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
1. https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ubuntu-20-04/ 2. https://docs.librenms.org/Installation/Install-LibreNMS/ https://docs.librenms.org/Installation/Install-LibreNMS/
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
1. PHP version 7.4 is older than 8.1 2. NginX can't load. 3. Cant change the default password of the mariaDB. 4. Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf 5. Deadend while running ./scripts/composer_wrapper.php install --no-dev
Hi Manoj,
You've found the official installation instructions at https://docs.librenms.org/Installation/Install-LibreNMS/ but as Hervey says, I suggest you install on Ubuntu 22.04 (even though they do still provide instructions for 20.04). This will at least solve your PHP version issue.
I would in any case strongly recommend running LibreNMS in its own dedicated VM, because it has a lot of dependencies and you don't want other applications to interfere with it (or vice versa). And therefore, you can choose Ubuntu 22.04 for that VM, regardless of what you're running elsewhere.
What we've been using until now for NSRC NMM training is the pre-built VM image that they publish here:
https://docs.librenms.org/Installation/Images/ https://github.com/librenms/packer-builds/releases/tag/21.2.0
Unfortunately, this is now nearly 2 years old, and the version of LibreNMS it contains is significantly buggy (e.g. lots of links don't work). But they have no plans to publish a new VM image.
So I think Hervey is right. Either install from scratch in a fresh VM with Ubuntu 22.04 (and you may have to engage with the community to find out which steps are missing or broken in the installation instructions); or use the Docker image.
The attractiveness of Docker is that the entire application and all its dependencies are pre-built and bundled together in a single image. And, I suspect this is what we'll be moving to soon in NMM.
The things to be aware of, if you've not used docker before, are:
- The image downloads will be large - hundreds of MB. Make sure you
have sufficient bandwidth - or patience :-)
- The setup will create multiple containers (e.g. for librenms itself,
mariadb, redis etc). However, this should all be taken care of for you by docker-compose, which has a file that tells it what it needs to run:
https://github.com/librenms/docker/blob/master/examples/compose/docker-compo...
Just follow the instructions at https://docs.librenms.org/Installation/Docker/ and you should be OK.
- You need to be aware, that whenever you upgrade your setup, you will
need to destroy and recreate all your containers with new versions of the software. This in turn means that they need to be started in a way that stores their state in "data volumes", so that you don't lose data.
Again, this should all be taken care of for you by the docker-compose file. For example, you can see:
services: db: image: mariadb:10.5 ... volumes: - "./db:/var/lib/mysql"
This is the mariadb container, and this says "the /var/lib/mysql directory inside the container should map to the 'db' subdirectory of the current directory on the host" (i.e. the directory where you're running docker-compose)
So as long as mariadb stores all its persistent state under /var/lib/mysql, which I believe it does, you should be good: the files will actually be stored outside of the container, on your host's filesystem, and whenever you upgrade mariadb to a newer version, it will pick up the database files left around by the old version.
There's a bit of a learning curve to get to grips with docker properly, but I think it's worth a try, given that it's as simple as "docker-compose up". Things might get a bit more complex when you want to *change* how things are done, for example if you want to deploy with HTTPS and certificates. You'll need to check whether the Netbox container itself can handle this, by giving it extra configuration options at startup time, or whether you'll need to run a front-end proxy like Apache or Nginx.
Still: it's very easy to spin up and test, and once you know this, it will be useful for other applications too.
Good luck, and let us know how you get on!
Regards,
Brian.
Thank you Brian!
I've learned a lot from reading through your details. Can't wait to give this a try myself.
Cheers, - Hervey

Dear Brian, Hervey, Dave, Dr. Phillip & Terry
thank you so much for all the feedback and links and the guide. I could finally install LibreNMS on Ubuntu 2022 successfully ...... yaaaayyyy !!!
[image: image.png]
Thank you to all. I am never going back to Ubuntu 20 or 18 henceforth :-)
One last help i need, I tried different snmpd examples to setup my SNMPv3 for my devices, didnt work. If you all have a correct example on V3 setup on the /etc/snmp/snmpd.conf. Please do share. Trying to keep both v2 and v3 as some of my devices don't support SNMPv3 (i know right :-) )
Cheers and thank you all once again :-)
Manoj (MJ) Adhikari
On Wed, Nov 30, 2022 at 2:52 PM Brian Candler brian@nsrc.org wrote:
On 30/11/2022 08:20, Hervey Allen wrote:
On 27-11-22 06:41, Manoj Adhikari wrote:
Dear All
Hello Manoj,
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub...
<
https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub...
https://docs.librenms.org/Installation/Install-LibreNMS/
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
- PHP version 7.4 is older than 8.1
- NginX can't load.
- Cant change the default password of the mariaDB.
- Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf
- Deadend while running ./scripts/composer_wrapper.php install
--no-dev
Hi Manoj,
You've found the official installation instructions at https://docs.librenms.org/Installation/Install-LibreNMS/ but as Hervey says, I suggest you install on Ubuntu 22.04 (even though they do still provide instructions for 20.04). This will at least solve your PHP version issue.
I would in any case strongly recommend running LibreNMS in its own dedicated VM, because it has a lot of dependencies and you don't want other applications to interfere with it (or vice versa). And therefore, you can choose Ubuntu 22.04 for that VM, regardless of what you're running elsewhere.
What we've been using until now for NSRC NMM training is the pre-built VM image that they publish here:
https://docs.librenms.org/Installation/Images/ https://github.com/librenms/packer-builds/releases/tag/21.2.0
Unfortunately, this is now nearly 2 years old, and the version of LibreNMS it contains is significantly buggy (e.g. lots of links don't work). But they have no plans to publish a new VM image.
So I think Hervey is right. Either install from scratch in a fresh VM with Ubuntu 22.04 (and you may have to engage with the community to find out which steps are missing or broken in the installation instructions); or use the Docker image.
The attractiveness of Docker is that the entire application and all its dependencies are pre-built and bundled together in a single image. And, I suspect this is what we'll be moving to soon in NMM.
The things to be aware of, if you've not used docker before, are:
- The image downloads will be large - hundreds of MB. Make sure you
have sufficient bandwidth - or patience :-)
- The setup will create multiple containers (e.g. for librenms itself,
mariadb, redis etc). However, this should all be taken care of for you by docker-compose, which has a file that tells it what it needs to run:
https://github.com/librenms/docker/blob/master/examples/compose/docker-compo...
Just follow the instructions at https://docs.librenms.org/Installation/Docker/ and you should be OK.
- You need to be aware, that whenever you upgrade your setup, you will
need to destroy and recreate all your containers with new versions of the software. This in turn means that they need to be started in a way that stores their state in "data volumes", so that you don't lose data.
Again, this should all be taken care of for you by the docker-compose file. For example, you can see:
services: db: image: mariadb:10.5 ... volumes: - "./db:/var/lib/mysql"
This is the mariadb container, and this says "the /var/lib/mysql directory inside the container should map to the 'db' subdirectory of the current directory on the host" (i.e. the directory where you're running docker-compose)
So as long as mariadb stores all its persistent state under /var/lib/mysql, which I believe it does, you should be good: the files will actually be stored outside of the container, on your host's filesystem, and whenever you upgrade mariadb to a newer version, it will pick up the database files left around by the old version.
There's a bit of a learning curve to get to grips with docker properly, but I think it's worth a try, given that it's as simple as "docker-compose up". Things might get a bit more complex when you want to *change* how things are done, for example if you want to deploy with HTTPS and certificates. You'll need to check whether the Netbox container itself can handle this, by giving it extra configuration options at startup time, or whether you'll need to run a front-end proxy like Apache or Nginx.
Still: it's very easy to spin up and test, and once you know this, it will be useful for other applications too.
Good luck, and let us know how you get on!
Regards,
Brian.

On 07/12/2022 11:53, Manoj Adhikari wrote:
thank you so much for all the feedback and links and the guide. I could finally install LibreNMS on Ubuntu 2022 successfully ...... yaaaayyyy !!!
image.png
Thank you to all. I am never going back to Ubuntu 20 or 18 henceforth :-)
Congratulations! Yes, better to use 22.04 going forwards; it has over 4 years of support remaining. At least until 24.04 comes out :-)
One last help i need, I tried different snmpd examples to setup my SNMPv3 for my devices, didnt work. If you all have a correct example on V3 setup on the /etc/snmp/snmpd.conf. Please do share. Trying to keep both v2 and v3 as some of my devices don't support SNMPv3 (i know right :-) )
Sure. For the snmp agent (snmpd), you need to create the user like this:
|$ sudo systemctl stop snmpd $ sudo net-snmp-create-v3-user -x AES -a SHA -A NetManage admin $ sudo systemctl start snmpd|
And you can test it like this:
$ snmpstatus -v3 -l authNoPriv -u admin -a SHA -A NetManage localhost
This above for SNMPv3 with authNoPriv (authentication, but no privacy/encryption): username "admin" and authentication password "NetManage". With this selection, tcpdump still shows the OIDs being requested and returned - but the auth credentials are secure.
If you want authPriv, which encrypts the data as well, then I believe you'll need to supply an encryption password:
|$ sudo net-snmp-create-v3-user -x AES -a SHA -A NetManage -X blahblah admin|
Regards,
Brian.

On 07/12/2022 13:24, Brian Candler wrote:
|$ sudo net-snmp-create-v3-user -x AES -a SHA -A NetManage admin|
Oh I forgot, add flag "-ro" to ensure the user is read-only.
$ sudo net-snmp-create-v3-user -ro -A NetManage -a SHA -x AES admin
It *is* necessary to stop snmpd before running this command, and restart it afterwards. The "net-snmp-create-v3-user" command creates a temporary file, which snmpd picks up at startup time.

Awesome, thanks Brian! Will do so :-)
Manoj Adhikari
M +975 77102200 P +975 2 322828 E manoj.adhikari.bt@gmail.com W +975 77102200 https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/ [image: App Social Buttons Image] https://www.facebook.com/manojmjadhikari [image: App Social Buttons Image] https://www.linkedin.com/in/manojmjadhikari/ [image: App Social Buttons Image] https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Wed, Dec 7, 2022 at 7:28 PM Brian Candler brian@nsrc.org wrote:
On 07/12/2022 13:24, Brian Candler wrote:
$ sudo net-snmp-create-v3-user -x AES -a SHA -A NetManage admin
Oh I forgot, add flag "-ro" to ensure the user is read-only.
$ sudo net-snmp-create-v3-user -ro -A NetManage -a SHA -x AES admin
It *is* necessary to stop snmpd before running this command, and restart it afterwards. The "net-snmp-create-v3-user" command creates a temporary file, which snmpd picks up at startup time.

Finally some good discussions on the mailing list!
Thanks Manoj for asking, and Doc/Brian/Hervey/Dave for the responses and guides.
Have a great weekend everyone :-)
Cheers, -- Tashj
On Thu, 8 Dec 2022 at 00:39, Manoj Adhikari manoj.adhikari.bt@gmail.com wrote:
Awesome, thanks Brian! Will do so :-)
Manoj Adhikari
M +975 77102200 <+975%2077102200> P +975 2 322828 <+975%202%20322828> E manoj.adhikari.bt@gmail.com W +975 77102200 https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/ [image: App Social Buttons Image] https://www.facebook.com/manojmjadhikari [image: App Social Buttons Image] https://www.linkedin.com/in/manojmjadhikari/ [image: App Social Buttons Image] https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Wed, Dec 7, 2022 at 7:28 PM Brian Candler brian@nsrc.org wrote:
On 07/12/2022 13:24, Brian Candler wrote:
$ sudo net-snmp-create-v3-user -x AES -a SHA -A NetManage admin
Oh I forgot, add flag "-ro" to ensure the user is read-only.
$ sudo net-snmp-create-v3-user -ro -A NetManage -a SHA -x AES admin
It *is* necessary to stop snmpd before running this command, and restart it afterwards. The "net-snmp-create-v3-user" command creates a temporary file, which snmpd picks up at startup time.
Go to the btnog mailing list on Orbit -- orbit.apnic.net/mailing-list/btnog@nog.bt Explore orbit.apnic.net, where the APNIC community connect, discuss and share information related to Internet addressing and networking. To unsubscribe send an email to btnog-leave@nog.bt

Thank you Brian and congrats Manoj! :-) Glad it is working on 22.04.
Cheers, - Hervey
On 07-12-22 05:24, Brian Candler wrote:
On 07/12/2022 11:53, Manoj Adhikari wrote:
thank you so much for all the feedback and links and the guide. I could finally install LibreNMS on Ubuntu 2022 successfully ...... yaaaayyyy !!!
image.png
Thank you to all. I am never going back to Ubuntu 20 or 18 henceforth :-)
Congratulations! Yes, better to use 22.04 going forwards; it has over 4 years of support remaining. At least until 24.04 comes out :-)
One last help i need, I tried different snmpd examples to setup my SNMPv3 for my devices, didnt work. If you all have a correct example on V3 setup on the /etc/snmp/snmpd.conf. Please do share. Trying to keep both v2 and v3 as some of my devices don't support SNMPv3 (i know right :-) )
Sure. For the snmp agent (snmpd), you need to create the user like this:
|$ sudo systemctl stop snmpd $ sudo net-snmp-create-v3-user -x AES -a SHA -A NetManage admin $ sudo systemctl start snmpd|
And you can test it like this:
$ snmpstatus -v3 -l authNoPriv -u admin -a SHA -A NetManage localhost
This above for SNMPv3 with authNoPriv (authentication, but no privacy/encryption): username "admin" and authentication password "NetManage". With this selection, tcpdump still shows the OIDs being requested and returned - but the auth credentials are secure.
If you want authPriv, which encrypts the data as well, then I believe you'll need to supply an encryption password:
|$ sudo net-snmp-create-v3-user -x AES -a SHA -A NetManage -X blahblah admin|
Regards,
Brian.

Dear Hervey
apologies for the delayed response. Well, i tried everything on Ubuntu 20 and still could not get it up.
So here it is finally:
[image: image.png]
Will now try on Ubuntu 22. I am hoping this time it will work like suggest by all and the links shared :-)
Thanks and cheers.
Manoj Adhikari
M +975 77102200 P +975 2 322828 E manoj.adhikari.bt@gmail.com W +975 77102200 https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/ [image: App Social Buttons Image] https://www.facebook.com/manojmjadhikari [image: App Social Buttons Image] https://www.linkedin.com/in/manojmjadhikari/ [image: App Social Buttons Image] https://twitter.com/ManoJonaM
Create your own email signature https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=
On Wed, Nov 30, 2022 at 2:20 PM Hervey Allen hervey@nsrc.org wrote:
On 27-11-22 06:41, Manoj Adhikari wrote:
Dear All
Hello Manoj,
I am trying to install and configure LibreNMS on Ubuntu 20.04. This is the first time I am not doing it on Ubuntu 18. I referred to the following two links:
https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub... < https://www.rosehosting.com/blog/how-to-install-and-configure-librenms-on-ub...
- https://docs.librenms.org/Installation/Install-LibreNMS/ https://docs.librenms.org/Installation/Install-LibreNMS/
I tried many fresh installs and reinstalls as both the links always reach deadened with different errors. Some of the errors I encountered:
- PHP version 7.4 is older than 8.1
- NginX can't load.
- Cant change the default password of the mariaDB.
- Error while editing /etc/php/7.4/fpm/pool.d/librenms.conf
- Deadend while running ./scripts/composer_wrapper.php install --no-dev
Ugh. No fun.
Many have commented on the two links that these installation guides are missing a few steps, thus, the error.
Therefore I wanted to request the community if you have tried out installing LibreNMS on Ubuntu 20 and have the correct and detailed guide. It may be a link used in NMM training or anything that will help me la.
:-) So, we have now moved our training platform to version 22.04 of Ubuntu Linux. The LibreNMS version we have installed is quite old as installing latest has gotten considerably harder. I have CC'ed Brian Candler in this message, but overall the approach that my be simplest is to install Docker under your Linux version and then install LibreNMS latest using Docker:
https://docs.librenms.org/Installation/Docker/
These are basic instructions, but LibreNMS is now looking for nginx and MariaDB.
Here are some instructions for installing under Ubuntu 22.04 (one commenter used these instructions on 22.04 on August 29, 2022).
Otherwise, here are the 20.04 instructions available:
https://www.howtoforge.com/tutorial/how-to-setup-librenms-monitoring-tool-wi...
however, these, I believe, are now a bit old and some of the comments indicate not quite 100% correct.
The good news, the project appears to continue to move forward. Looking at the project documentation at:
https://docs.librenms.org/Installation/Install-LibreNMS/
the 22.04 instructions look like they may be closer to being up to date. As you saw, 20.04 may be hard, or if you are installing on a preconfigured 20.04 installation (i.e., you have other packages you are using on that install) the LibreNMS requirements may be detailed enough that running the service on a dedicated VM or Docker container is the better way to go.
I hope this helps.
Good luck Manoj!
- Hervey
Thanking you in advance
Best Regards Manoj Adhikari (MJ)
Manoj Adhikari
M +975 77102200 <tel:+975 77102200>
P +975 2 322828 <tel:+975 2 322828> E manoj.adhikari.bt@gmail.com <mailto:
manoj.adhikari.bt@gmail.com>
W +975 77102200
https://www.facebook.com/manojmjadhikari https://www.linkedin.com/in/manojmjadhikari/ https://twitter.com/ManoJonaM https://www.instagram.com/manoj_mj_adhikari/
App Social Buttons Image https://www.facebook.com/manojmjadhikari App Social Buttons Image https://www.linkedin.com/in/manojmjadhikari/ App Social Buttons Image https://twitter.com/ManoJonaM
Create your own email signature <
https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&a...
-- Hervey Allen Assistant Director, Network Startup Resource Center hervey@nsrc.org http://nsrc.org/ : http://facebook.com/nsrc.org GPG Fingerprint: AC08 31CB E453 6C65 2AB3 4EDB CEEB 5A74 C6E5 624F

This tutorial has become outdated with the latest Ubuntu releases. I would recommend following the official LibreNMS documentation for Ubuntu 20.04. The Zibtek team has found success by ensuring PHP 8.1 is installed, enabling the Nginx config for LibreNMS, setting proper MariaDB credentials, and running Composer to install dependencies. Following the official docs and these extra steps should get your LibreNMS install working. https://www.zibtek.com/technology Good luck!
Activity Summary
- 115 days inactive
- 115 days old
- btnog@nog.bt
- 8 participants
- 19 comments