Zabbix 7 is an enterprise-grade open-source monitoring solution for networks, servers, and cloud services. This guide installs Zabbix Server 7.0 LTS on Ubuntu 24.04 LTS with MySQL and Nginx.
Tested and valid on:
- Ubuntu 24.04 LTS
Prerequisites
- Ubuntu 24.04 LTS server
- MySQL 8.0 installed
- Nginx and PHP 8.3-FPM installed
- A user with sudo privileges
Step 1 – Add the Zabbix Repository
Download and install the Zabbix repository package:
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_7.0-1+ubuntu24.04_all.deb
sudo apt update
Step 2 – Install Zabbix Components
Install server, frontend, and agent:
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent -y
Step 3 – Create the Database
Create the Zabbix MySQL database:
sudo mysql
CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'ZabbixPass123!';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Step 4 – Import the Schema
Import the Zabbix database schema:
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
Step 5 – Configure the Zabbix Server
Edit the server config:
sudo nano /etc/zabbix/zabbix_server.conf
Set:
DBPassword=ZabbixPass123!
Step 6 – Configure Nginx and PHP
Edit the Zabbix Nginx config:
sudo nano /etc/zabbix/nginx.conf
Uncomment and set listen and server_name, then restart services:
sudo systemctl restart zabbix-server zabbix-agent nginx php8.3-fpm
sudo systemctl enable zabbix-server zabbix-agent nginx php8.3-fpm
Step 7 – Complete the Web Setup
Visit the Zabbix URL and complete the web installer. Default credentials: Admin / zabbix — change them immediately.
Conclusion
Zabbix 7.0 LTS is now installed on Ubuntu 24.04 LTS. Configure hosts, triggers, and notification channels to monitor your entire infrastructure from a single dashboard.