<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=LibreNMS_-_Install_Script_On_Ubuntu_24.4</id>
	<title>LibreNMS - Install Script On Ubuntu 24.4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=LibreNMS_-_Install_Script_On_Ubuntu_24.4"/>
	<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=LibreNMS_-_Install_Script_On_Ubuntu_24.4&amp;action=history"/>
	<updated>2026-05-02T22:53:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://it-arts.net/index.php?title=LibreNMS_-_Install_Script_On_Ubuntu_24.4&amp;diff=983&amp;oldid=prev</id>
		<title>Admin: Text replacement - &quot;Category:Wiki&quot; to &quot;Category:Wiki

&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;
&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=LibreNMS_-_Install_Script_On_Ubuntu_24.4&amp;diff=983&amp;oldid=prev"/>
		<updated>2026-01-17T08:10:03Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:10, 17 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== install_librenms.sh ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== install_librenms.sh ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=LibreNMS_-_Install_Script_On_Ubuntu_24.4&amp;diff=523&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Category:Wiki  == install_librenms.sh ==   &lt;nowiki&gt; #!/bin/bash  # This script installs LibreNMS on Ubuntu 24.04 LTS  # Update system and install essential utilities echo &quot;Updating system and installing essential utilities...&quot; sudo apt update &amp;&amp; sudo apt upgrade -y sudo apt install -y curl wget gnupg2 lsb-release ca-certificates software-properties-common  # Install required dependencies echo &quot;Installing required dependencies...&quot; sudo apt install -y apache2 mariadb-s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=LibreNMS_-_Install_Script_On_Ubuntu_24.4&amp;diff=523&amp;oldid=prev"/>
		<updated>2025-12-14T10:02:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  == install_librenms.sh ==   &amp;lt;nowiki&amp;gt; #!/bin/bash  # This script installs LibreNMS on Ubuntu 24.04 LTS  # Update system and install essential utilities echo &amp;quot;Updating system and installing essential utilities...&amp;quot; sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y sudo apt install -y curl wget gnupg2 lsb-release ca-certificates software-properties-common  # Install required dependencies echo &amp;quot;Installing required dependencies...&amp;quot; sudo apt install -y apache2 mariadb-s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Wiki]]&lt;br /&gt;
&lt;br /&gt;
== install_librenms.sh ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script installs LibreNMS on Ubuntu 24.04 LTS&lt;br /&gt;
&lt;br /&gt;
# Update system and install essential utilities&lt;br /&gt;
echo &amp;quot;Updating system and installing essential utilities...&amp;quot;&lt;br /&gt;
sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y&lt;br /&gt;
sudo apt install -y curl wget gnupg2 lsb-release ca-certificates software-properties-common&lt;br /&gt;
&lt;br /&gt;
# Install required dependencies&lt;br /&gt;
echo &amp;quot;Installing required dependencies...&amp;quot;&lt;br /&gt;
sudo apt install -y apache2 mariadb-server php php-cli php-mbstring php-gd php-xml php-json php-zip php-mysql php-curl php-bcmath git unzip snmp fping mtr whois&lt;br /&gt;
&lt;br /&gt;
# Enable Apache and MariaDB services&lt;br /&gt;
echo &amp;quot;Enabling Apache2 and MariaDB services to start on boot...&amp;quot;&lt;br /&gt;
sudo systemctl enable apache2&lt;br /&gt;
sudo systemctl enable mariadb&lt;br /&gt;
&lt;br /&gt;
# Start Apache2 and MariaDB services&lt;br /&gt;
echo &amp;quot;Starting Apache2 and MariaDB services...&amp;quot;&lt;br /&gt;
sudo systemctl start apache2&lt;br /&gt;
sudo systemctl start mariadb&lt;br /&gt;
&lt;br /&gt;
# Set up MySQL database for LibreNMS&lt;br /&gt;
echo &amp;quot;Setting up MariaDB for LibreNMS...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Secure the MariaDB installation&lt;br /&gt;
sudo mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
# Log into MariaDB as root and create the LibreNMS database and user&lt;br /&gt;
sudo mysql -u root -e &amp;quot;CREATE DATABASE librenms CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;&amp;quot;&lt;br /&gt;
sudo mysql -u root -e &amp;quot;CREATE USER &amp;#039;librenms&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;librenmspassword&amp;#039;;&amp;quot;&lt;br /&gt;
sudo mysql -u root -e &amp;quot;GRANT ALL PRIVILEGES ON librenms.* TO &amp;#039;librenms&amp;#039;@&amp;#039;localhost&amp;#039;;&amp;quot;&lt;br /&gt;
sudo mysql -u root -e &amp;quot;FLUSH PRIVILEGES;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Install LibreNMS from GitHub&lt;br /&gt;
echo &amp;quot;Cloning LibreNMS repository...&amp;quot;&lt;br /&gt;
cd /opt&lt;br /&gt;
sudo git clone https://github.com/librenms/librenms.git&lt;br /&gt;
sudo chown -R www-data:www-data /opt/librenms&lt;br /&gt;
sudo chmod -R 755 /opt/librenms&lt;br /&gt;
&lt;br /&gt;
# Configure the web server&lt;br /&gt;
echo &amp;quot;Configuring Apache for LibreNMS...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Create a new Apache configuration file for LibreNMS&lt;br /&gt;
sudo bash -c &amp;#039;cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/apache2/sites-available/librenms.conf&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    DocumentRoot /opt/librenms&lt;br /&gt;
    ServerName librenms.local&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;Directory /opt/librenms&amp;gt;&lt;br /&gt;
        AllowOverride All&lt;br /&gt;
        Require all granted&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    ErrorLog ${APACHE_LOG_DIR}/error.log&lt;br /&gt;
    CustomLog ${APACHE_LOG_DIR}/access.log combined&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
EOF&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# Enable the LibreNMS site and rewrite module&lt;br /&gt;
sudo a2ensite librenms.conf&lt;br /&gt;
sudo a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
# Restart Apache to apply the changes&lt;br /&gt;
echo &amp;quot;Restarting Apache2...&amp;quot;&lt;br /&gt;
sudo systemctl restart apache2&lt;br /&gt;
&lt;br /&gt;
# Set up the LibreNMS configuration file&lt;br /&gt;
echo &amp;quot;Setting up LibreNMS configuration file...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Copy the default config file&lt;br /&gt;
sudo cp /opt/librenms/config.php.default /opt/librenms/config.php&lt;br /&gt;
&lt;br /&gt;
# Set permissions for LibreNMS&lt;br /&gt;
echo &amp;quot;Setting proper permissions for LibreNMS...&amp;quot;&lt;br /&gt;
sudo chown -R www-data:www-data /opt/librenms&lt;br /&gt;
sudo chmod -R 755 /opt/librenms&lt;br /&gt;
&lt;br /&gt;
# Install Composer (PHP dependency manager)&lt;br /&gt;
echo &amp;quot;Installing Composer...&amp;quot;&lt;br /&gt;
sudo curl -sS https://getcomposer.org/installer | php&lt;br /&gt;
sudo mv composer.phar /usr/local/bin/composer&lt;br /&gt;
&lt;br /&gt;
# Install PHP dependencies using Composer&lt;br /&gt;
echo &amp;quot;Installing PHP dependencies...&amp;quot;&lt;br /&gt;
cd /opt/librenms&lt;br /&gt;
sudo -u www-data /usr/local/bin/composer install --no-dev&lt;br /&gt;
&lt;br /&gt;
# Set up the LibreNMS database&lt;br /&gt;
echo &amp;quot;Setting up the LibreNMS database...&amp;quot;&lt;br /&gt;
sudo -u www-data php /opt/librenms/scripts/composer_wrapper.php migrate&lt;br /&gt;
&lt;br /&gt;
# Set up cron jobs for LibreNMS&lt;br /&gt;
echo &amp;quot;Setting up cron jobs for LibreNMS...&amp;quot;&lt;br /&gt;
sudo cp /opt/librenms/librenms.cron /etc/cron.d/librenms&lt;br /&gt;
sudo chmod 644 /etc/cron.d/librenms&lt;br /&gt;
&lt;br /&gt;
# Finish installation by running the web-based setup&lt;br /&gt;
echo &amp;quot;LibreNMS should now be accessible at http://librenms.local or http://&amp;lt;your-server-ip&amp;gt;&amp;quot;&lt;br /&gt;
echo &amp;quot;Access the web interface and follow the instructions to finish the setup.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>