Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Quick install Zabbix 3.0 in Ubuntu 16.04 xenial with PostgreSQL
# License: CC0 1.0 or newer
# You can download this script here:
wget ""
sudo dpkg -i zabbix-release_3.0-1+xenial_all.deb
sudo apt-get update
sudo apt-get install zabbix-server-pgsql zabbix-frontend-php libapache2-mod-php php-bcmath php-mbstring php7.0-xml php-pgsql
# Zabbix can't work without password (with ident), so you need to create user with password:
sudo -u postgres createuser --no-superuser --pwprompt zabbix
sudo -u postgres createdb zabbix --owner=zabbix
# Get link to fresh sources here:
wget ""
tar -xzpf zabbix-3.0.5.tar.gz
sudo -u zabbix psql zabbix < zabbix-3.0.5/database/postgresql/schema.sql
sudo -u zabbix psql zabbix < zabbix-3.0.5/database/postgresql/images.sql
sudo -u zabbix psql zabbix < zabbix-3.0.5/database/postgresql/data.sql
# Set DBPassword
sudo editor /etc/zabbix/zabbix_server.conf
sudo service zabbix-server restart
sudo systemctl enable zabbix-server
sudo sed -i s/mod_php5.c/mod_php7.c/ /etc/zabbix/apache.conf
# Take list from
sudo sed -i 's/\;date\.timezone\ =/date.timezone\ =\ Asia\/Yekaterinburg/' /etc/php/7.0/apache2/php.ini
sudo service apache2 restart
# Now login to
# After setup wizard, use login/password: admin/zabbix
# If you use Nginx as proxy, add this to Nginx config:
# proxy_buffer_size 128k;
# proxy_buffers 4 256k;
# proxy_busy_buffers_size 256k;

This comment has been minimized.

Copy link

@DeepBlueMussel DeepBlueMussel commented Sep 3, 2017

Excellent script, worked perfectly on the first run for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment