How To Upgrade Zabbix 6.0 To 6.4 on Ubuntu 22.04

In tis tutorial how to upgrade zabbix 6.0 to 6.4 using ubuntu 22.04. This is very important for your system for upgrade zabbix server.

Step : Should be check your current all service version using below command.

root@zbx:~# lsb_release -a && ip r
root@zbx:~# zabbix_server -V
root@zbx:~# mysql -V
root@zbx:~# php -v
root@zbx:~# systemctl stop zabbix-server

Step : Create backup folder for all backup.

root@zbx:~# mkdir backup
root@zbx:~# cp /etc/zabbix/zabbix_server.conf /root/backup
root@zbx:~# cp /etc/zabbix/zabbix_agentd.conf /root/backup
root@zbx:~# cp /etc/zabbix/web/zabbix.conf.php /root/backup
root@zbx:~# mysqldump -u root -p zabbix > /root/backup/zabbix.sql

Then type your mysql root password for backup zabbix database.

Step : Download Zabbix 6.4 version repo using below command.

root@zbx:~# wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb
root@zbx:~# dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb
root@zbx:~# apt-get update
root@zbx:~# apt-get install --only-upgrade zabbix-server-mysql zabbix-agent zabbix-frontend-php

Now check zabbix server log using below command.

root@zbx:~# tail -f /var/log/zabbix/zabbix_server.log

Step : Copy old file from backup folder using below command.

root@zbx:~# cp /root/backup/zabbix_server.conf /etc/zabbix/
root@zbx:~# cp /root/backup/zabbix_agentd.conf /etc/zabbix/
root@zbx:~# cp /root/backup/zabbix.conf.php /etc/zabbix/web/

Restart all service using below command.

root@zbx:~# systemctl restart zabbix-server zabbix-agent nginx php8.1-fpm
root@zbx:~# systemctl enable zabbix-server zabbix-agent nginx php8.1-fpm

Now check zabbix server log using below command.

root@zbx:~# tail -f /var/log/zabbix/zabbix_server.log

Now set global set function for properly upgrade database.

root@zbx:~# mysql -uroot -p

Then run below command for set global function for allow update database.

MariaDB [(none)]> set global log_bin_trust_function_creators = 1;

Then exit from mysql terminal and then check log file for upgrade database.

root@zbx:~# tail -f /var/log/zabbix/zabbix_server.log

Now set global set function.

root@zbx:~# mysql -uroot -p

Now set global setting as like below.

MariaDB [(none)]> set global log_bin_trust_function_creators = 0;

Now check zabbix server version using below command.

root@zbx:~# zabbix_server -V

Done

If you can any error so please see my video for clear concept.

The post How To Upgrade Zabbix 6.0 To 6.4 on Ubuntu 22.04 appeared first on TechnologyRSS.

Ubuntu Server Admin

Recent Posts

Advantech AOM-2721 is now Ubuntu Certified

Canonical announces that the Advantech AOM-2721 is officially joining the list of Ubuntu Certified Hardware.…

5 hours ago

Ruby and Rails Performance Roundup: The Backlog Edition

Yet again instead of tweets, a blog post. The backlog got out of hand -…

5 hours ago

How to Deploy OpenProject on Ubuntu VPS

This article provides a guide demonstrating how to deploy OpenProject on Ubuntu VPS. What is…

5 hours ago

Canonical integrates NVIDIA Nemotron 3.5 Lightning with Ubuntu for always-on AI agents

Canonical is pleased to announce that  NVIDIA’s newly introduced NVIDIA Nemotron 3.5 Lightning, an open,…

2 days ago

Xfwl4’s Second Preview Release

I’m pleased to announce the second preview release of xfwl4, Xfce’s Wayland compositor, version 4.21.1.…

2 days ago

How to Install, Secure, and Set Up MySQL on Ubuntu 26.04 LTS

If you have been using an ecommerce store to place online orders or have been…

3 days ago