How to install Zabbix 6.4 on Oracle Linux 8

By | 23 Ekim 2022

Hello everyone,

In this blog post, you will learn how to set up Zabbix 6.4 pre-release version on Oracle Linux. Don’t forget that; pre-release versions don’t have any support but you can explore many new features before the next Zabbix 7.0 TLS.


Before we get started, be sure you have;

·        Oracle Linux 8 server (freshly installed and updated)

·        A root account.

Let’s get started!

Check out the Linux version using with below command.

Malake İçeriği

Mysql Database Installation

You have to choose a database before the Zabbix installation. There are two options Mysql or PostgreSQL. In my installation, I will use the most used variant of the Zabbix database: Mysql.

Use this command below to install Mysql.

dnf install mysql-server -y

Check out the version after installation.

mysql -V

Start and enable the Mysql database before the secure mode installation step.

systemctl enable mysqld --now

Use this command below to install Mysql with secure mode and set the root password.


Login the Mysql with your new root password.

mysql -uroot -p

Open the Zabbix official website for the installation commands.

Use the platform chooser for the command sets.

Scroll down the page and find your commands.

Step a: Install the Zabbix repository

rpm -Uvh
dnf clean all

Step b: Switch the DNF module version to PHP

dnf module switch-to php:7.4

Step c: Install Zabbix server, frontend, and agent

When the installation, if you want to don’t answer the yes/no questions use the “-y” parameter after the command set.

dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent -y

Continue the other commands.

Step d: Create an initial database for Zabbix

Use the root password to access the Mysql console.

mysql -uroot -p
create database zabbix character set utf8mb4 collate utf8mb4_bin;
create user zabbix@localhost identified by 'Tokat60!';
grant all privileges on zabbix.* to zabbix@localhost;
set global log_bin_trust_function_creators = 1;

Import the initial schema to the database that you newly created.

Note: Use your Zabbix database user password and wait some time. This command takes 2 minutes to return the console.

zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

Check out the Zabbix database schema (optional)

If you want to be sure of the importing schemas use this command below to check out the Zabbix tables in the database.

mysql -uroot -p
use zabbix;
show tables;

Let’s continue with the other step of “d” Zabbix command sets.

Disable log_bin_trust_function_creators option after importing database schema.

mysql -uroot -p
set global log_bin_trust_function_creators = 0;

Step e: Configure the database for the Zabbix server

By default, the Zabbix configuration file is located in /etc/zabbix/. Open and configure the zabbix_server.conf file use with any editor to set up database password.

I used the nano editor to configure it.

nano /etc/zabbix/zabbix_server.conf

Find the DBPassword line on the file.

Delete the “#” line from the first line and write your new password.

Save and exit the configuration file.

Write the configuration files.

Step f: Start Zabbix server, agent, and apache processes

Use this command below to enable and start the process.

systemctl restart zabbix-server zabbix-agent httpd php-fpm
systemctl enable zabbix-server zabbix-agent httpd php-fpm

Make sure all Zabbix components are running (optional)

·        Mysql database

·        Zabbix server

·        Apache

systemctl status mysqld
systemctl status zabbix-server
systemctl status httpd

Before the Zabbix frontend installation, check out the Oracle firewall state, ports, and services.

firewall-cmd --state
firewall-cmd --permanent --zone=public --list-ports
firewall-cmd --permanent --zone=public --list-services

Allow the TCP/80 port or Apache(HTTP) service on the firewall. Use the commands below to allow HTTP service on the firewall.

firewall-cmd --permanent --add-service=http
firewall-cmd --reload
firewall-cmd --permanent --zone=public --list-services

Step g: Frontend installation

Write your “Server_IP_Address/zabbix” on any browser.

Here is the Zabbix 6.4 !

Click the Next step.

All checks of pre-requisites show OK. Click the Next step.

Fill in the database password correctly and click the next step.

Don’t forget the change in the time zone.

Next step.

Click the Finish !

By default Username is: Admin and Password is: zabbix

Here is the Zabbix 6.4 !

There are many differences on the Global view dashboard;

·        Top Host widget configured to show Zabbix CPU.

·        Item value widget that shows Zabbix Server per second values dynamically.

·        New digital clock.

·        Geomap widget that is configured with Riga coordinates.

Let’s change the Geomap widget with our coordinates.

This is the biggest change on the menu bar since the 4.0 version. We will look at all details in the next blog posts.

For this blog post tutorial, we looked at how to install the Zabbix 6.4 pre-release. This can be very useful when installing the 6.4 version on your systems.

We will look at new features on 6.4 in the next blog post.

Thanks for reading.

One thought on “How to install Zabbix 6.4 on Oracle Linux 8

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir