How To Install Zabbix 5.0 On Ubuntu 18.04: Step #01
How To Install Zabbix 5.0 On Ubuntu 18.04: Step #01
How To Install Zabbix 5.0 On Ubuntu 18.04: Step #01
Share0
Tweet0
Pin0
LinkedIn
0SHARES
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.
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
Change hostname
root@ubuntu-1804:~# vi /etc/hosts
10.66.10.6 Zabbix-Srv
root@ubuntu-1804:~# vi /etc/hostname
Zabbix-Srv
root@ubuntu-1804:~# vi /etc/cloud/cloud.cfg
preserve_hostname: true
root@ubuntu-1804:~# reboot
root@Zabbix-Srv:~# vi /etc/php/7.2/apache2/php.ini
Comment out and change to date.timezone=Asia/Dhaka
root@Zabbix-Srv:~# 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.
root@Zabbix-Srv:~# 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 zabbix_user@localhost
identified by 'passw0rd@123';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit
root@Zabbix-Srv:~# 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.
root@Zabbix-Srv:~# vi /etc/zabbix/zabbix_server.conf
DBName=zabbix_db
DBUser=zabbix_user
DBPassword=passw0rd@123
Author
Recent Posts
Admin
0
Article Rating
root@Zabbix-Server:~# reboot
Apache web server install using command. It’s popular web server on the
world.
root@Zabbix-Server:~# apt update
Then install zabbix main package using below command.
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
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
http://10.66.50.20/zabbix/