How To Upgrade Zabbix 5.0 To 5.4 on Ubuntu 20.04

In this tutorial for upgrade zabbix system from version 5.0 to 5.4. ZABBIX is an open source network monitoring tools. So I will try to provide zabbix server upgrade using testing lab.

###############################

Operating system:

 ubuntu 20.04

Zabbix version :

 5.0.16

Mysql version :

 8

Php version :

 7.4
###############################

Step : Check all version using below command.

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

Step : Create backup zabbix server.

root@ubuntu20:~#:

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

Step : Create upgrade using below command.

root@ubuntu20:~#: wget wget https://repo.zabbix.com/zabbix/5.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.4-1%2Bubuntu20.04_all.deb
root@ubuntu20:~#: dpkg -i zabbix-release_5.4-1+ubuntu20.04_all.deb
root@ubuntu20:~#: apt-get update
root@ubuntu20:~#: apt-get install --only-upgrade zabbix-server-mysql zabbix-agent zabbix-frontend-php
root@ubuntu20:~#: apt -y autoremove
root@ubuntu20:~#: tail -f /var/log/zabbix/zabbix_server.log

Step : Move old config file

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

Then restart below service.

Sponsored
root@ubuntu20:~#: systemctl restart zabbix-server zabbix-agent nginx php7.4-fpm
root@ubuntu20:~#: systemctl enable zabbix-server zabbix-agent nginx php7.4-fpm

Check log for upgrade status.

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

If see any problem please see YouTube channel for more details.

 

Ubuntu Server Admin

Recent Posts

Canonical announces first Ubuntu Desktop image for Qualcomm Dragonwing™ Platform with Ubuntu 24.04

This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…

17 hours ago

The long march towards delivering CRA compliance

Time is running out to be in full compliance with the EU Cyber Resilience Act,…

17 hours ago

Extra Factor Authentication: how to create zero trust IAM with third-party IdPs

Identity management is vitally important in cybersecurity. Every time someone tries to access your networks,…

2 days ago

Ubuntu Weekly Newsletter Issue 889

Welcome to the Ubuntu Weekly Newsletter, Issue 889 for the week of April 20 –…

3 days ago

From pidfd to Shimanami Kaido: My RubyKaigi 2025 Experience

Introduction I just returned from RubyKaigi 2025, which ran from April 16th to 18th at…

4 days ago

The hitchhiker’s guide to infrastructure modernization

One of my favourite authors, Douglas Adams, once said that “we are stuck with technology…

7 days ago