How to install zabbix 5.2 on debian 10


Install and configure Zabbix server for your platform (debian 10 buster)

Install Zabbix repository

# wget

when run this command:

# dpkg -i zabbix-release_5.2-1+debian10_all.deb

i’ve got error:

dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable

Solution: If you use su to become root, you have to enter

# su  -
# dpkg -i zabbix-release_5.2-1+debian10_all.deb

Packege must install normally:

root@zabbix:~# dpkg -i zabbix-release_5.2-1+debian10_all.deb
Selecting previously unselected package zabbix-release.
(Reading database ... 36929 files and directories currently installed.)
Preparing to unpack zabbix-release_5.2-1+debian10_all.deb ...
Unpacking zabbix-release (1:5.2-1+debian10) ...
Setting up zabbix-release (1:5.2-1+debian10) ...
Installing new version of config file /etc/apt/sources.list.d/zabbix.list ...
Installing new version of config file /etc/apt/trusted.gpg.d/zabbix-official-repo.gpg ...

Then run:

# apt update

Install Zabbix server, frontend, agent

in my case i chose nginx instead of apache web-server.

# apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-agent

In this instruction from zabbix it is not clear where the database server should have appeared. Therefore, we install mariadb-server

# apt-get install mariadb-server

 Create initial database

# mysql -uroot -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit;

On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix

Configure the database for Zabbix server

Edit file /etc/zabbix/zabbix_server.conf


Starting from version 5.0, Zabbix frontend requires PHP version 7.2 or later. Unfortunately, older versions of Debian & Ubuntu provide only PHP versions below 7.2.

Restart web-server.

Open Zabbix frontend URL in a browser. If you have installed Zabbix from packages, the URL is:

  • for Apache: http://<server_ip_or_name>/zabbix
  • for Nginx: http://<server_ip_or_name>

You should see the first screen of the frontend installation wizard.

How to install zabbix 5.2 on debian 10

Read next part of official guide


How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Scroll to Top