Atlantic.Net Blog

How to Install Zabbix Server on a CentOS 6.7 Server

Brendan Bonner
by Atlantic.Net (39posts) under VPS Hosting
Zabbix Vision by Walker Cahall

Zabbix Vision by Walker Cahall

Verified and Tested 11/23/15


This how-to will show you how to install Zabbix 2.4 Server on a CentOS 6 installation. Zabbix is an open source monitoring tool that is ideal for monitoring your cloud servers. However, it can monitor many other types of devices. Installing Zabbix can help you find issues with your server before an outage occurs.


– A CentOS 6.7 server running LAMP. Please see this post for details on installing LAMP on CentOS 6.7.

–  If you do not have a CentOS 6.7 server, try a Virtual Private Server today!

Install Zabbix on CentOS 6

To install Zabbix server, you will need to find out if your CentOS installation is 32-bit or 64-bit.

To do this run the command:

uname -i
Install Zabbix

uname -i

If it says x86_64, you are using a 64-bit installation.

uname -a

uname -a

If it says i368, you are using a 32-bit installation.

We will then need to install the Zabbix repository from Zabbix.
For CentOS 6.7 64-Bit, run the following command:

sudo rpm -ivh

For CentOS 6.7 32-Bit, run the following command:

sudo rpm -ivh

After installing the Zabbix repository, you can now install the Zabbix server. Do that by running the command:

sudo yum install zabbix-server-mysql zabbix zabbix-agent zabbix-web

Now, we need to make some configuration changes before going through the web installation.

Edit /etc/php.ini with your favorite editor and change the following:

Under Resource limits

max_execution_time = 600
php.ini max_execution_time

php.ini max_execution_time

max_input_time = 600
php.ini max_input_time

php.ini max_input_time

memory_limit= 256M
php.ini memory_limit

php.ini memory_limit

Under Data Handling

post_max_size = 32M
php.ini post_max_size

php.ini post_max_size

Under File Uploads

upload_max_filesize = 16M
php.ini upload_max_filesize

php.ini upload_max_filesize

Under Module Settings

date.timezone = 'UTC'
php.ini date.timezone

php.ini date.timezone

You can change this to a timezone of your choice. In this example, we are using UTC. For a complete list of PHP timezones, go here.

Once done with the php.ini configurations, we can set up the database.

mysql -u root -p

When prompted, enter your MySQL root password that you set up when installing MySQL.

In MySQL, enter the following commands:

create database zabbix character set utf8 collate utf8_bin;

Make sure you set your own secure password where it says [insert-password-here]

grant all privileges on zabbix.* to [email protected] identified by '[insert-password-here]';
flush privileges;

After creating the database, we need to add the initial Zabbix schema and data. To do that, run the following commands (for the MySQL commands, you will be prompted for the Zabbix password you set when you created the database):

cd /usr/share/doc/zabbix-server-mysql-2.4.7/create/
mysql -u zabbix -p zabbix < schema.sql
mysql -u zabbix -p zabbix < images.sql
mysql -u zabbix -p zabbix < data.sql

Once schema and data have been added to the database, we need to edit the Zabbix configuration file.

Use a text editor to edit /etc/zabbix/zabbix_server.conf and make sure the following are set:


Once the conf file is set, you can now start the Zabbix server and restart Apache.

sudo service zabbix-server start
sudo service httpd restart

Now, we can go to the web installation. In your browser, go to http://yourhostname-or-ipaddress/zabbix

If you are unsure what you IP address is, run the following:

Sample ifconfig


In our example, we would put in the address bar and get the following page. Click Next

Welcome to Zabbix

Welcome to Zabbix

Make sure everything says OK. If not, look at your php.ini file and make the appropriate changes.

Click next if everything is OK.

Prerequisite Check

Prerequisite Check


Input your database information that you set up earlier and click test connection.

If it says OK click next, if not check your database information again to see if it is accurate.

Enter your database information accordingly.

Configure Database

For most installations, you can keep the defaults. If you would like, you can set a name for the installation. Once done, click next.

Enter your localhosts information

Server Details

Verify your installation and click next.

Review your settings and select Next

Pre-Install Summary

Click finished to go to the login page.


Note the path to your configuration file and select Finish

You can then log into Zabbix with the default logins.

Username: Admin

Password: zabbix

First Log in

You may now log in with your default username and password.


Congratulations! You have now installed Zabbix on Centos 6.7. Thank you for following along this how to! Come back for updates, and try a VPS Hosting solution from Atlantic.Net.

Get A Free To Use Cloud VPS

Free Tier Includes:
G2.1GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G2.1GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom