How To Install Zabbix 5.0 On Ubuntu 18.04
Great news! Zabbix already release two beta version. Now I want to share how to install zabbix 5.0 on Ubuntu 18.04. Zabbix 5.0 is is new look for dashboard and other settings is same as old.
My serve info :
Server IP : 10.66.10.6
Disk : 25 GB
RAM : 1GB
vCPU : 2
Web Server : Apache
Database : MariaDB
PHP : 7.2 Must be for Zabbix 5.0
Step #01: For ready update and upgrade and change host name.
[email protected]:~# apt update
[email protected]:~# apt upgrade -y
[email protected]:~# apt autoremove -y
Change hostname
[email protected]:~# vi /etc/hosts
10.66.10.6 Zabbix-Srv
[email protected]:~# vi /etc/hostname
Zabbix-Srv
[email protected]:~# vi /etc/cloud/cloud.cfg
preserve_hostname: true
[email protected]:~# reboot
N.B: Must be preserve_hostname: true otherwise not save server host name for ubuntu 18.04.
Step #02: Install php package and Zabbix 5.0
[email protected]:~# wget https://repo.zabbix.com/zabbix/4.5/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.5-1+bionic_all.deb
[email protected]:~# dpkg -i zabbix-release_4.5-1+bionic_all.deb
[email protected]:~# apt update
[email protected]:~# add-apt-repository -y ppa:ondrej/php
[email protected]:~# apt-get update
[email protected]:~# apt-get install php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-intl php7.2-mysql php7.2-xml php7.2-zip php7.2-bcmath -y
[email protected]:~# apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent -y
Edit date and time zone from /etc/php/7.2/apache2/php.ini
[email protected]:~# vi /etc/php/7.2/apache2/php.ini
Comment out and change to date.timezone=Asia/Dhaka
[email protected]:~# vi /etc/zabbix/apache.conf
Comment out and change to php_value date.timezone Asia/Dhaka
Step #03: Create database and import database into created database.
[email protected]:~# mysql -uroot -p
By default mysql root password is blank. after login mysql terminal then create database with user password.
MariaDB [(none)]> create database zabbix_db character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all privileges on zabbix_db.* to [email protected] identified by ‘[email protected]’;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit
[email protected]:~# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uroot -p zabbix_db
Check Zabbix server config file for database name, database password and database user are included.
[email protected]:~# vi /etc/zabbix/zabbix_server.conf
DBName=zabbix_db
DBUser=zabbix_user
[email protected]
Now restart all service using below command.
[email protected]:~# systemctl restart zabbix-server zabbix-agent apache2
[email protected]:~# systemctl enable zabbix-server zabbix-agent apache2
Browse server ip address using any browser. This is default user name and password for Zabbix server.
Server URL : http://10.66.10.6/zabbix
User Name : Admin [Must be use ‘A’]
Password : zabbix
Step #04: Now frontend install using browser. New welcome page for Zabbix 5.0.
This is welcome page. Click Next step
Step #05: Check of pre-requisites for before installation Zabbix 5.0.
Check pre-requisite all is ok then Click Next step
Step #06: Check configuration database connection.
Configure database connection already created from Step #03 Click Next step
Step #07: You can edit host and Name.
Pre-installation summary just see this then Click Next step
Zabbix server details Click Next step
Step #08: If any missing so now check pre-installation summary.
Pre-installation summary just see this then Click Next step
Step #09: Finally Congratulations! You have successfully installed Zabbix frontend.
Click Finish
Now login and see new look for Zabbix 5.0 version as like below.