How to install Zabbix on an Ubuntu 14.04 VPS

zabbix_logopngZabbix is the ultimate enterprise-level software designed for real-time monitoring of millions of metrics collected from tens of thousands of servers, virtual machines and network devices. It uses MySQL, PostgreSQL, SQLite, Oracle or IBM DB2 to store data.
Its backend is written in C and the web frontend is written in PHP. Zabbix offers several monitoring options such as checks that can verify the availability and responsiveness of standard services such as SMTP or HTTP without installing any software on the monitored host.

A Zabbix agent can also be installed on UNIX and Windows hosts to monitor statistics such as CPU load, network utilization, disk space, etc.

Zabbix’s client-server model allows a server to collect rich sets of data that are useful for monitoring the performance of the websites, service, applications etc.. hosted on a server.

This article covers the steps needed for installing Zabbix on an Ubuntu 14.04 VPS.


We will be using our SSD 1 Linux VPS hosting plan for this tutorial.


Make sure your server is fully up to date using:

# apt-get update && apt-get upgrade


First step for you is to install the Zabbix repository configuration package for Ubuntu 14.04 that contains the apt configuration files. Run the following commands:

# wget 

# dpkg -i zabbix-release_2.4-1+trusty_all.deb

Update and install Zabbix:

# apt-get update

# apt-get install zabbix-server-mysql zabbix-frontend-php php5-mysql

Once the installation starts you will be welcomed by the following window:



The installation will ask you whether you want the database for zabbix-server-mysql to be configured with dbconfig-common. Choose yes to avoid creating a database and modifying the Zabbix config files manually.

Then, you will be asked to enter the database administrative user password as shown in the image below:



You should enter your MySQL root password and press Enter.

The following window will ask you to provide a MySQL password for the database that will be created for the Zabbix installation. Enter a password of your choosing, but make it to be a strong one (combination of letters and numbers and minimum 8 characters long).

Once you enter the password, press Enter. Confirm the password in the next window and press Enter again.

The Zabbix installation will proceed and finish.

However, nothing is finished yet. We need to modify some PHP settings so the web installation of Zabbix can be completed. Edit your server php.ini file:

# vim /etc/php5/apache2/php.ini

Locate the following lines and adjust the values as the ones below:

post_max_size = 16M
max_execution_time = 300
max_input_time = 300
date.timezone = "your timezone"

Save and close the file. Restart Apache so the changes can take effect:

# /etc/init.d/apache2 restart

Now, you need to copy the example Apache config to the /etc/apache2/conf-available/ directory so Apache and Zabbix can work together:

# cp /etc/zabbix/apache.conf /etc/apache2/conf-available/zabbix.conf

Enable the config:

# a2enconf zabbix.conf

Make sure that the alias mod is enabled:

# a2enmod alias

Restart Apache:

# /etc/init.d/apache2 restart

Start the Zabbix server:

# service zabbix-server start

Now, open your favorite web browser and navigate to http://your_server_IP/zabbix to complete the Zabbix installation.

You will be welcomed by the installation page

Click on next. In the following window, you should have all the pre-requisites listet as OK as shown in the image below.















Of course, you need to meet the required settings to proceed with the installation. If everything is OK, click Next.

Configure your database connection and enter the database credentials so you can test the database connection. The username and database name is zabbix, the password is the one you entered previosly during the command line installation of Zabbix. Test the database connection and if everything is OK click on Next. Once you finish the installation you will get the login page.

The default username and password for the Zabbix Dashboard are:

username: admin

password: zabbix

Once you log in, change the password immediately.

That is it. You have successfully installed Zabbix on your server. For more information on Zabbix in general or configuring an Zabbix agent/s on one or multiple machines, please visit their official documentation.

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Zabbix for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Install Fail2ban on an Ubuntu 14.04 VPS
How to install Elxis CMS on CentOS 7
Install Symphony CMS on an Ubuntu VPS