Step 1: Install Zabbix server, nginx, database and agent

wget <https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+bionic_all.deb>
sudo dpkg -i zabbix-release_5.0-1+bionic_all.deb
sudo apt update
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-agent mysql-server

Step 2: Configure database

Set password for MySQL root (validate password plugin [Y/n]: N ;other Y/n]: Y)

sudo mysql_secure_installation

Create user and database (insert highlighted in bold, the password can be changed)

sudo mysql -uroot -p

Enter password:

mysql> create database zabbix character set utf8 collate utf8_bin;

mysql> grant all privileges on zabbix. to zabbix@localhost identified by '1qaz@WSX';*

mysql> exit

#Import database shema (password: 1qaz@WSX)

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

Edit Zabbix configuration file

sudo nano /etc/zabbix/zabbix_server.conf

Change/uncomment the parameters:

DBHost=localhost