How To Install Zabbix Server On Ubuntu 19.045 min read
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 Install OsTicket On Ubuntu 16.04
★ How To Install Zabbix Server 3.4.4 Into Ubuntu 17.04
- Zabbix Server IP address is : 10.66.50.20
- Default User Name : Admin [Must be ‘A’ is capital]
- Default Password : zabbix
Remember it user name Admin is ‘A’ must be capital.
Step #01: Must be server update and upgrade.
[email protected]:~# 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.
[email protected]:~# reboot
Apache web server install using command. It’s popular web server on the world.
[email protected]:~# apt install apache2 -y
Now Service apache start
[email protected]:~# service apache2 start
Step #02: Downlaod Zabbix latest repo from below link.
[email protected]:~# 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
[email protected]:~# dpkg -i zabbix-release_4.2-1+bionic_all.deb
Run update command for latest update.
[email protected]:~# apt update
Then install zabbix main package using below command.
[email protected]:~# 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.
[email protected]:~# 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 [email protected] 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.
[email protected]:~# cd /usr/share/doc/zabbix-server-mysql/
Then run below command
[email protected]:/usr/share/doc/zabbix-server-mysql/# zcat create.sql.gz | mysql -uroot zabbix -p
Zabbix server config file must be insert below lines.
[email protected]:~# 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.
[email protected]:~# vi /etc/php/7.2/apache2/php.ini
My time zone Asia/Dhaka
Now restart zabbix and apache service using below command.
[email protected]:~# service apache2 restart [email protected]:~# service zabbix-server start
Finally browser your server ip address like as bwlow.
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.
- How To Install Odoo 16 on Ubuntu 22.04 - May 14, 2023
- 12 Steps to Organize Photos on Your Computer - March 20, 2023
- 9 Ways to Speed Up Your MacBook Yosemite - February 21, 2023
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!
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.
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
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.