Here is the chronological step-by-step summary of the Zabbix Server setup on Ubuntu 26.04.

1. Database & Repository Setup

  • Install MySQL Server: Run updates and install the SQL backend:
    sudo apt update && sudo apt upgrade -y
    sudo apt install mysql-server -y
  • Add Zabbix Repository: Download and install the official Zabbix 7.0 LTS repository package:
  • wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.0+ubuntu26.04_all.deb 
    dpkg -i zabbix-release_7.0-2+ubuntu26.04_all.deb
    sudo apt update

2. Core Components Installation

  • Install Zabbix Stack: Install the server, frontend dashboard, agent, and web server dependencies:
    sudo apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent2

3. Database Configuration & Schema Import

  • Create Zabbix Database: Log into MySQL (sudo mysql -u root) and execute the following structure commands:
    CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
    CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'your_password';
    GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
    SET GLOBAL log_bin_trust_function_creators = 1;
    EXIT;
  • Import Initial Schema: Populate the core database structure:
    zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -u zabbix -p zabbix
  • Restore MySQL Settings: Re-disable security configurations by running:
    sudo mysql -u root -e "SET GLOBAL log_bin_trust_function_creators = 0;"

4. Application Configuration

  • Set Database Password: Open /etc/zabbix/zabbix_server.conf, locate the DBPassword= line, and supply your password string.
  • Fix Apache Web Server Modules: Enable the proxy architecture required by Ubuntu 26.04’s modern PHP deployment configurations:
    sudo a2dismod mpm_prefork
    sudo a2enmod mpm_event proxy proxy_http proxy_fcgi setenvif
    sudo a2enconf zabbix-frontend-php

5. Starting Services & Initialization

  • Launch & Enable Services: Start the monitoring stack and ensure it boots automatically:
    sudo systemctl restart zabbix-server zabbix-agent2 apache2 php*-fpm
    sudo systemctl enable zabbix-server zabbix-agent2 apache2 php*-fpm
  • Finalize via Browser: Navigate to your server IP address (e.g., http://192.168.1) to complete the setup wizard. Log in using default credentials (Username: Admin / Password: zabbix).

 

ADVERTISEMENT
 
Scroll to Top