Cacti Install in Ubuntu
Cacti Install in Ubuntu
Cacti Install in Ubuntu
txt
Report
Share
Download
1. Prerequisites
sudo apt update
2. Install Apache & PHP
sudo apt install -y apache2 php-mysql libapache2-mod-php
3. Install PHP Extensions
sudo apt install -y php-xml php-ldap php-mbstring php-gd php-gmp
4. Install MariaDB
sudo apt install -y mariadb-server mariadb-client
5. Install SNMP
sudo apt install -y snmp php-snmp rrdtool librrds-perl
6. Database Tuning
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
Add/Update
collation-server = utf8mb4_unicode_ci
max_heap_table_size = 128M
tmp_table_size = 64M
join_buffer_size = 64M
innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_buffer_pool_size = 512M
innodb_flush_log_at_timeout = 3
innodb_read_io_threads = 32
innodb_write_io_threads = 16
innodb_io_capacity = 5000
innodb_io_capacity_max = 10000
7. PHP Configuration
sudo nano /etc/php/7.4/apache2/php.ini
date.timezone = US/Central
memory_limit = 512M
max_execution_time = 60
8. Create Database
sudo mysql -u root -p
<Directory /opt/cacti>
Options +FollowSymLinks
AllowOverride None
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
Order Allow,Deny
Allow from all
</IfVersion>
<IfModule mod_php.c>
php_flag magic_quotes_gpc Off
php_flag short_open_tag On
php_flag register_globals Off
php_flag register_argc_argv On
php_flag track_vars On
# this setting is necessary for some locales
php_value mbstring.func_overload 0
php_value include_path .
</IfModule>
DirectoryIndex index.php
</Directory>
Username: admin
Password: admin