X

How To Install Zabbix Server 5.0 On Debian 11

In this tutorial how to install zabbix server 5.0 on debian 11. Zabbix is an open source server resource and network monitoring tools.

How To Install Xen Orchestra On Ubuntu 18.04 For Manage XEN Server

How To Install KVM Server on CentOS 7 – Apache Cloud Stack KVM

#######################################
Operating system: Debian GNU/Linux 11 (bullseye)
IP address : 10.66.100.15
RAM  : 2GB
DISK space : 50GB
vCPU  : 2
Service  : ZABBIX
PHP version : 7.4
MariaDB  : 15.1
Hostname : zabbix-server.technologyrss.local
#######################################

Step #01: Install zabbix 5.0.

apt update && apt upgrade -y
wget https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-release/zabbix-release_5.0-2+debian11_all.deb
dpkg -i zabbix-release_5.0-2+debian11_all.deb
apt update
apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent

Install some dependency package and database server.

apt -y install software-properties-common gnupg2
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
add-apt-repository "deb [arch=amd64] http://mariadb.mirror.liquidtelecom.com/repo/10.5/debian $(lsb_release -cs) main"
apt update
apt install -y mariadb-server mariadb-client

Step #02: Configure database (you can replace user password from zabbix@123).

mysql -uroot -p

Then create database and user using below command.

create database zabbix_db character set utf8 collate utf8_bin;
create user zabbix_user@localhost identified by 'zabbix@123';
GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT, REFERENCES, RELOAD on *.* TO 'zabbix_user'@'localhost' WITH GRANT OPTION;
grant all privileges on zabbix_db.* to zabbix_user@localhost;
FLUSH PRIVILEGES;

Step #03: Import zabbix default database.

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

Default mysql root password is blank, not needed type any password.

Step #04: Add database name, database user and database password

nano /etc/zabbix/zabbix_server.conf

Insert below three lines into this file, but must be replace database name and database user.

DBName=zabbix_db
DBUser=zabbix_user
DBPassword=zabbix@123

Step #05: Setup php time zone.

nano /etc/zabbix/apache.conf

Add your time zone from last line

php_value[date.timezone] = Europe/Riga

Step #06: Restart and enable all services.

systemctl restart zabbix-server zabbix-agent apache2
systemctl enable zabbix-server zabbix-agent apache2

Access your server ip address and complete web installation process.

http://10.66.100.15/zabbix/

Now install from web browser then login using default user name and password.

Click Next step

Check of pre-requisites, if all is ok then click Next step

Configure database connection like database name, user and password then click Next step

click Next step

Click Finish

Now using default user name and password.

Username : Admin (Must be use ‘A’ is capital)

Password : zabbix

If needed more help, so please see my YouTube channel for more information.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.
Leave a Comment