![install cacti on ubuntu 18 install cacti on ubuntu 18](https://sysadminxpert.com/wp-content/uploads/2018/09/cacti-09.jpg)
- #Install cacti on ubuntu 18 how to
- #Install cacti on ubuntu 18 install
- #Install cacti on ubuntu 18 update
Once you are logged into the MariaDB, you will want to run the following lines to create the Cacti user and database. We will need to log in as the root user to make these. Now that we have MariaDB configured for Cacti, we can create our Cacti Database and user. Then restart MariaDB: sudo systemctl restart mysql If a already exists, then you can add it below. We will want to open up the /etc/mysql/mariadb.cnf file as a sudo user and add the following at the bottom of the page. Next, we will configure the MariaDB config to better suit what we will need for Cacti. Then reload the privileges table to solidify these changes. Remove the test databases and users, as they will not be needed. This way, the server is only accessed by users you make, as well by restricting the root user to only log in directly from the server.
![install cacti on ubuntu 18 install cacti on ubuntu 18](https://wpcademy.com/wp-content/uploads/2019/03/Cacti-installing-4.jpg)
You will want to remove anonymous users and disallow root login remotely. Here you will want to set the root password. You will now need to run the MySQL secure install.
#Install cacti on ubuntu 18 install
sudo apt-get -y install mariadb-server mariadb-client You can run the installation through the apt-get installer. Next, we will need to install MariaDB onto the server for Cacti to use. ServerAdmin will also want to be sure to allow for HTTP and https to ensure that your firewall will allow access. sudo nano /etc/apache2/nfĪdd ServerName and ServerAdmin to the bottom of the file.įill in with your servers hostname and an email address In /etc/apache2/nf, add ServerName and ServerAdmin to the bottom of the file. Next, we will want to set up the admin contact, as well as our server name. In nf change line 25 for ServerTokens, change OS to Prod #
#Install cacti on ubuntu 18 update
Update line 25, from ServerTokens OS to ServerTokens Prod sudo nano /etc/apache2/conf-enabled/nf
![install cacti on ubuntu 18 install cacti on ubuntu 18](https://user-images.githubusercontent.com/61698203/75685773-686ece80-5c9b-11ea-9eda-d0718b68c565.jpg)
This will be done from the /etc/apache2/conf-enabled/nf file. Next, we will want to configure Apache to use basic security by allowing Prod Server Tokens. To set the timezone for your PHP to use, you would go to the /etc/php/7.2/apache2/php.ini and set the date.timezone to your closest region. We will need the server to record time to know what resources were being used at a given time. Use the following installation command: sudo apt-get -y install php libapache2-mod-php php-common php-curl php-gd php-gettext php-gmp php-imap php-intl php-json php-mbstring php-memcache php-mysql php-pear php-pspell php-recode php-snmp php-net-socket php-tidy php-xml php-xmlrpc These are the packages we will need to install. sudo apt-get updateīy default, PHP will not be installed, but we will require it. With a Sudo User, you would want to run updates as shown below. Getting Started to Install CactiĪs with any installation, it is always best to be sure that you have properly updated your server and all default packages.
#Install cacti on ubuntu 18 how to
Furthermore, it will show you how to access the web portal and start the configuration to monitor the health of your server. This guide will focus on showing you how to install Cacti on your server.
![install cacti on ubuntu 18 install cacti on ubuntu 18](https://news-cdn.softpedia.com/images/news2/Ubuntu-MATE-Developers-Makes-the-System-to-Look-Like-Windows-XP-457394-2.jpg)
You can review our Open Source Monitoring Services to view the many free options available. Monitoring your server is a critical step to managing your server and ensuring that you have accurate data to watch the health of your server.