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.
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.
- How To Install Zabbix Server 6.4 On AlmaLinux 8 Server - August 9, 2024
- How To Clear RAM Memory Cache Buffer Linux Server - February 29, 2024
- How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 - February 1, 2024
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.
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.