![install cacti on ubuntu 17.10 install cacti on ubuntu 17.10](https://www.itzgeek.com/wp-content/uploads/2018/04/Install-TeamViewer-on-Ubuntu-18.04-Accept-License-Agreement.png)
Next, configure your preferred time zone, max_execution time and memory limit by editing 2 files: /etc/php/7.4/apache2/php.ini and /etc/php/7.4/cli/php.ini files.Įdit the following lines and specify the timezone, memory_limit and max_execution_time parameters. You can verify the version of PHP installed by running the command:
#INSTALL CACTI ON UBUNTU 17.10 INSTALL#
$ sudo apt install libapache2-mod-php php-mysql php-xml php-gd php-snmp php-json php-intl php-mbstring php-ldap php-gmp -y To install the default PHP version and associated extensions from Ubuntu repositories, run: The latest PHP version is PHP 8.0 but version 7.4 will work as expected.
![install cacti on ubuntu 17.10 install cacti on ubuntu 17.10](https://wpcademy.com/wp-content/uploads/2019/03/Cacti_installing-3.jpg)
The default PHP version in Ubuntu repositories is PHP 7.4 at the time of writing this tutorial. Step 3: Install PHP and Associated PHP ExtensionsĬacti is PHP driven and it’s essential to install PHP and the required modules for Cacti to function as expected. GRANT ALL ON cacti_db.* TO IDENTIFIED BY ‘password’ įinally, save the changes and exit MariaDB:Īt this point, we have installed and fully configured the database server.
![install cacti on ubuntu 17.10 install cacti on ubuntu 17.10](https://www.tecmint.com/wp-content/uploads/2017/11/Cacti-Pre-Installation-Checks.png)
Next, create a database user and grant all privileges on the user: Log in to MariaDB.ĬREATE DATABASE cacti_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci Thereafter, restart MariaDB for the changes to come into effect.Ĭacti requires a database where all the polled data will be stored. Make the following changes under the section. Therefore, edit the 50-server.cnf configuration file as follows: To check if Apache is running, invoke the command:Ī few tweaks are required for optimization of MariaDB database server.
#INSTALL CACTI ON UBUNTU 17.10 FREE#
An excellent choice for a web server is Apache, which is a free and open-source feature-rich web server. Since Cacti runs on the front end, we need to spin up a web server. Right off the bat, being by updating the system package lists as shown: