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

Template: Streamlining open source design contributions

As designers working at Canonical, we’re always thinking about open source. We believe that encouraging…

8 hours ago

Beyond Mythos: responding to a new threat landscape

Canonical’s security philosophy has always been built on the premise that vulnerabilities exist and will…

1 day ago

A look into Ubuntu Core 26: Building a local AI inference appliance in a virtual machine

Welcome to this blog series which explores innovative uses of Ubuntu Core. Throughout this series,…

1 day ago

How to Install CodeIgniter on Ubuntu 26.04

In this tutorial, we are going to install CodeIgniter on Ubuntu 26.04. CodeIgniter is a…

1 day ago

How to Install VirtualBox in Ubuntu 26.04 LTS

Virtualbox has been around for almost 2 decades now. It was launched in 2007 as…

2 days ago

A decade of Ubuntu on IBM Z and IBM LinuxONE

This year we celebrate a decade of Ubuntu Server support on the s390x architecture: marking…

4 days ago