843 views
asked in Technology by
Install and configure Zabbix 7 with Apache and MySQL for Ubuntu 24.04 LTS

1 Answer

answered by

Chirag's Technology Tutorial

*********************************************************************************

*   Install and configure Zabbix 7 with Apache and MySQL for Ubuntu 24.04 LTS *

*********************************************************************************

YouTube video Link:

https://youtu.be/dZZIe9RdTZg

Zabbix is widely regarded as a powerful and reliable monitoring tool. The 7.0 LTS (Long Term Support) release introduces a range of new features and substantial enhancements. This comprehensive guide will walk you through installing Zabbix 7.0 LTS on an Ubuntu 24.04 ARM64 system using Apache and MySQL.

Prerequisites

Before starting, make sure you have:

1. System Requirements: Ensure your system has at least 2GB RAM and a multi-core processor for the installation.

2. Root Privileges: This guide assumes you are logged in as a root user or have sudo privileges.

Step 1: Update and Upgrade Your System

First, update your system to ensure all packages are up to date:

sudo apt update
sudo apt upgrade -y

Step 2: Install Apache2

Install Apache:

sudo apt install apache2 -y

Enable Apache to Start on Boot:

sudo systemctl enable apache2
sudo systemctl start apache2

Open Firewall for HTTP and HTTPS:

sudo ufw allow in "Apache Full"

Step 3: Install MySQL Server

Install MySQL:

sudo apt install mariadb-server -y

Start and enable the MariaDB service:

sudo systemctl start mariadb
sudo systemctl enable mariadb

Secure MySQL Installation:

sudo mysql_secure_installation

Follow the prompts to set a strong root password and configure the security options.

Create Zabbix Database and User:

sudo mysql -u root -p

Inside the MySQL shell, run:

mysql> CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
mysql> CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'admin@123';
mysql> GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
mysql> SET GLOBAL log_bin_trust_function_creators = 1;
mysql> FLUSH PRIVILEGES;
mysql> EXIT;

Replace 'admin@123' with a secure password of your choice.

Step 4: Install Zabbix Server and Agent

Add Zabbix Repository:

wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_latest+ubuntu24.04_all.deb
sudo apt update

Install Zabbix Server, Frontend, and Agent:

sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent -y

Step 5: Configure Zabbix Database

Import Initial Schema:

zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix --database=Zabbix

Enter the password for the Zabbix MySQL user when prompted.

Disable log_bin_trust_function_creators option after importing database schema.

# mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;


mysql> FLUSH PRIVILEGES;

mysql> quit;

Edit Zabbix Server Configuration File:

sudo nano /etc/zabbix/zabbix_server.conf

Find and set the following parameters:

DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=admin@123  # Replace with the password you set for Zabbix

Save and Exit (Ctrl+O, Enter, Ctrl+X in Nano).

Step 6: Configure PHP for Zabbix

Edit Zabbix Apache Configuration:

sudo nano /etc/zabbix/apache.conf

Find and adjust the php_value settings as needed, for example:

php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value date.timezone Asia/Kolkata  # Replace with your timezone

Save and Exit (Ctrl+O, Enter, Ctrl+X in Nano).

Step 7: Start Zabbix Server and Apache2

Restart Apache and Zabbix Server:

sudo systemctl restart apache2
sudo systemctl enable zabbix-server zabbix-agent
sudo systemctl start zabbix-server zabbix-agent

Verify the Zabbix Server Status:

sudo systemctl status zabbix-server

Step 8: Configure Zabbix Frontend

Access Zabbix Web Interface: Open your web browser and navigate to 

http://192.168.224.134/zabbix

Zabbix Setup Wizard:

Follow the on-screen instructions in the Zabbix setup wizard.

Enter the database details you configured earlier (DBName: zabbix, DBUser: zabbix, DBPassword: admin@123).

Complete Installation:

After finishing the setup, you should be able to log in to Zabbix with the default credentials:

Username: Admin
Password: zabbix

Step 9: Secure the Installation

Change the Default Admin Password: After logging in, go to Administration > Users and change the password for the Admin user.

Optional: Configure HTTPS for Apache if needed for secure access.

You now have Zabbix 7 installed and configured on Ubuntu 24.04 LTS with Apache and MySQL. Let me know if you need further assistance with customization or troubleshooting!

For any doubts and query, please write on YouTube video comments section.

Note : Flow the Process shown in video.

Please, Subscribe and like for more videos:

https://www.youtube.com/@chiragstutorial

Don't forget to, Follow, Like, Share &, Comment

Thanks & Regards,

Chitt Ranjan Mahto "Chirag"

_____________________________________________________________________

Note: All scripts used in this demo will be available in our website.

Link will be available in description.

#chirags 

#chiragstutorial 

#chiragsTechnologytutorial

#chiragsTechnologytutorials

#Technologytutorial 

#Technology 

#Technologycourse 

#installZabbix

#installZabbix7

#installZabbix7inUbuntu

#Zabbix7inUbuntuApache

#UbuntuApacheZabbix7

#chriagstutorial

chirags, chirags tutorial, chirags Technology tutorial, chirags Technology tutorial, Zabbix tutorial, Zabbix7, Zabbix 7 course, install Zabbix 7, Zabbix7_tutorial, Zabbix7 php, chirags Zabbix tutorial, chirags tutorial, chirag tutorial, Install and configure Zabbix 7 with Apache and MySQL for Ubuntu 24.04 LTS

Most popular tags

laravel postgresql laravel-10 replication ha postgresql mongodb laravel-11 mongodb database mongodb tutorial ubuntu 24.04 lts streaming-replication mysql database laravel postgresql backup laravel login register logout database mysql php laravel 11 - login with otp valid for 10 minutes. user and admin registration user and admin login multiauth technlogy asp.net asp.net c# mysql master slave replication centos linux laravel sql server schedule backup autobackup postgresql django python haproxy load balancer install self sign ssl laravel 11 gaurds zabbix 7 how to install graylog on ubuntu 24.04 lts | step-by-step asp.net core mvc .net mvc network upload c# ssl integration sql server on ubuntu 22.04 lts mssql server ms sql server sql server user access in postgres mysql password change cent os linux configure replica laravel 11 socialite login with google account google login kubernetes (k8s) install nginx load balancer install install and configure .net 8.0 in ubuntu 24.04 lts php in iis php with iis php tutorial chirags php tutorials chirags php tutorial chirags tutorial laravel 11 guards mongodb sharding metabase business analytics metabase postgresql 16 to postgresql 17 postgresql migration letsencrypt mongodb crud rocky linux laravel custom captcha laravel 11 captcha laravel captcha mongo dll php.ini debian 12 nginx apache nextcloud gitea in ubuntu git gitea npm error node js mysql ndb cluster mysql cluster ssl oracle login register logout in python debian windows shell batch file bat file time stamp date time shopping cart in laravel centos rhel swap memeory rhel 5.5
...