X

How To Install Zabbix Server On Ubuntu 19.04

Recently release Ubuntu latest version 19.04. So I want to show how to install Zabbix Server on Ubuntu 19.04. So lets start to installation process. And remember it don’t forget you see my previous post like as below.

How To Configure Static IP address On Ubuntu 18.04
How To Install OsTicket On Ubuntu 16.04
How To Install Zabbix Server 3.4.4 Into Ubuntu 17.04
How To Create Custom Boot Partition On Ubuntu 16.04 Server
  • My Zabbix Server IP address is : 10.66.50.20
  • Zabbix Server Default User Name : Admin
  • Zabbix Server Default Password : zabbix

Remember it user name Admin is ‘A’ must be capital.

Step #01: Must be server update and upgrade

root@Zabbix-Server:~# apt update && apt upgrade -y

If you see update & upgrade error so please see how to solve DPKG Was Interrupted, You Must Manually Run dpkg

After complete this operation then server reboot needed.

root@Zabbix-Server:~# reboot

Apache web server install using command. It’s popular web server on the world.

root@Zabbix-Server:~# apt install apache2 -y

Now Service apache start

root@Zabbix-Server:~# service apache2 start

Step #02: Downlaod Zabbix latest repo from below link.

root@Zabbix-Server:~# wget http://repo.zabbix.com/zabbix/4.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.2-1%2Bbionic_all.deb

After download then run below command for extract

root@Zabbix-Server:~# dpkg -i zabbix-release_4.2-1+bionic_all.deb

Run update command for latest update.

root@Zabbix-Server:~# apt update

Then install zabbix main package using below command.

root@Zabbix-Server:~# apt install zabbix-server-mysql zabbix-frontend-php

Step #03: Create database and user for store all data. I am using mysql database. You can using another database.

root@Zabbix-Server:~# mysql -u root -p

If you using mysql user password then type root password otherwise press Enter.

MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'passw0rd';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> cd database/mysql
    -> mysql -uzabbix -ppassw0rd zabbix < schema.sql 
    -> mysql -uzabbix -ppassw0rd zabbix < images.sql 
    -> mysql -uzabbix -ppassw0rd zabbix < data.sql 
    -> \q

Step #04: Now goto below location for import Zabbix default database.

root@Zabbix-Server:~# cd /usr/share/doc/zabbix-server-mysql/

Then run below command

root@Zabbix-Server:/usr/share/doc/zabbix-server-mysql/# zcat create.sql.gz | mysql -uroot zabbix -p

Zabbix server config file must be insert below lines.

root@Zabbix-Server:~# vi /etc/zabbix/zabbix_server.conf

DBName=zabbix
DBUser=zabbix
DBPassword=passw0rd

Save it Esc. :wq

Step #05: Edit php date time zone. Open php file then enter your location time zone.

root@Zabbix-Server:~# vi /etc/php/7.2/apache2/php.ini

My time zone Asia/Dhaka

Now restart zabbix and apache service using below command.

root@Zabbix-Server:~# service apache2 restart
root@Zabbix-Server:~# service zabbix-server start

Finally browser your server ip address like as bwlow.

http://10.66.50.20/zabbix/

For web installer goto How To Install Zabbix Server On Ubuntu 18.04 on the last page.

If you any query share your opinion using comment box. You can see for YouTube video. Please subscribe my channel for more update.

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.

View Comments (4)

  • Hello, i stuck when installed zabbix-server-mysql and zabbix-fronted-php. It said "The following packages have unmet dependencies:
    zabbix-server-mysql : Depends: libmysqlclient20 (>= 5.7.11) but it is not installable
    E: Unable to correct problems, you have held broken packages"
    Can you help me, please?

    • You follow my provided step? I see Depends: libmysqlclient20 this package. I am try to update this post after fix this issue.
      Thanks.

    • You haven't said what Ubuntu version you are running on but I am getting the same error trying to install Zabbix on Ubuntu 19.10 and it's because libmysqlclient20 is no longer in the 19.10 release, it's been superseded by libmysqlclient21

      libmysqlclient20 is still a package in 19.04
      See here:
      https://packages.ubuntu.com/search?keywords=libmysqlclient2

      It looks like currently Zabbix is only officially supported up to 18.04 but will install o.k. on 19.10

      • You can't see post title? what is my post title Ubuntu 19.10 or 19.04? Please read very carefully.
        Thanks.

Leave a Comment