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.
- 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
Leave a Comment