Build your Zabbix installation
Select an option in each column. Repository and package commands below are generated for your selection.
Add Zabbix packages from the SepehrSabz mirror
The release package installs Zabbix's signing key and apt source definition. The final command points that source at the SepehrSabz mirror.
source /etc/os-release
sudo apt update && sudo apt install -y wget
wget "https://mirror.sepehrsabz.ir/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu${VERSION_ID}_all.deb"
sudo dpkg -i "zabbix-release_latest_7.4+ubuntu${VERSION_ID}_all.deb"
sudo sed -i 's|https://repo.zabbix.com|https://mirror.sepehrsabz.ir|g' /etc/apt/sources.list.d/zabbix.list
sudo apt updatePackage signatures are still checked using Zabbix's repository key. The mirror changes where package bytes are downloaded, not who signs them.
Install server, frontend, SQL scripts, and Agent 2
sudo apt install mariadb-server
sudo systemctl enable --now mariadb
sudo apt install zabbix-server-mysql zabbix-frontend-php \
zabbix-apache-conf zabbix-sql-scripts zabbix-agent2If you already operate a supported MySQL or MariaDB service, keep it and install only the Zabbix packages.
Create and initialize the Zabbix database
Replace CHOOSE_A_STRONG_PASSWORD in both the SQL and server configuration commands.
sudo mysql -uroot -p
CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'CHOOSE_A_STRONG_PASSWORD';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
SET GLOBAL log_bin_trust_function_creators = 1;
QUIT;zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | \
mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
sudo mysql -uroot -p -e "SET GLOBAL log_bin_trust_function_creators = 0;"DBPassword=CHOOSE_A_STRONG_PASSWORD/etc/zabbix/zabbix_server.conf with a privileged editor and restrict access to the configuration file.Start Zabbix and open the frontend
sudo systemctl restart zabbix-server zabbix-agent2 apache2
sudo systemctl enable zabbix-server zabbix-agent2 apache2
systemctl --no-pager --full status zabbix-server zabbix-agent2http://YOUR_SERVER_IP/zabbix, enter the database credentials, and complete the setup wizard.Default frontend sign-in
| Field | Default | Next action |
|---|---|---|
| Username | Admin | Change the password immediately after signing in. |
| Password | zabbix |
Install Agent 2 on another Ubuntu host
Add the mirrored repository using step 02, then install and configure only the agent:
sudo apt install zabbix-agent2
sudoedit /etc/zabbix/zabbix_agent2.conf
# Set Server=, ServerActive=, and Hostname= for your environment.
sudo systemctl enable --now zabbix-agent2Other platforms and configurations
This is a SepehrSabz mirror guide, not the Zabbix website. For PostgreSQL, Nginx, containers, proxies, upgrades, or another operating system, use the official Zabbix download selector and installation manual, replacing only the repository hostname with mirror.sepehrsabz.ir when the corresponding path exists on this mirror.