📌 Note the highlighted information
sudo apt install -y vim wget php-cgi php-common php-mbstring php-net-socket php-gd php-xml-util php-mysql php-bcmath php-imap php-snmp libapache2-mod-php libc6
create database zabbix_db character set utf8mb4 collate utf8mb4_bin;
create user zabbix_user@localhost identified by 'zabbix_PWD';
grant all privileges on zabbix_db.* to zabbix_user@localhost;
set global log_bin_trust_function_creators = 1;
📌 For Ubuntu 22.04 LTS
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-2+ubuntu22.04_all.deb
📌 For Ubuntu 24.04 LTS
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-2+ubuntu24.04_all.deb
sudo apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
sudo zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix_user -p'zabbix_PWD' zabbix_db
set global log_bin_trust_function_creators = 0;