3 Installation From Packages (Zabbix Documentation 2
3 Installation From Packages (Zabbix Documentation 2
3 Installation From Packages (Zabbix Documentation 2
4]
Zabbix Documentation 2.4
1.8 2.0 2.2
2.4
3.0
3 Installation from packages
From distribution packages
Several popular OS distributions have Zabbix packages provided. You can use these packages to install Zabbix.
OS distributions may lack the latest version of Zabbix in their repositiories.
From Zabbix official repository
Zabbix SIA provides official RPM and DEB packages for Red Hat Enterprise Linux, Debian and Ubuntu LTS.
Package files are available at repo.zabbix.com. yum and apt repositories are also available on the server. A stepbystep tutorial for
installing Zabbix from packages is provided here.
Red Hat Enterprise Linux / CentOS
Supported for versions: RHEL6, Oracle Linux 6, CentOS 6
Installing repository configuration package
Install the repository configuration package. This package contains yum configuration files.
Zabbix 2.4 for RHEL6, Oracle Linux 6, CentOS 6:
Installing Zabbix packages
Install Zabbix packages. Example for Zabbix server and web frontend with mysql database.
Zabbix official repository provides fping, iksemel, libssh2 packages as well. These packages are located in the nonsupported
directory.
Example for installing Zabbix agent only.
Creating initial database
Create zabbix database and user on MySQL. See database creation scripts for MySQL.
Import initial schema and data.
# cd /usr/share/doc/zabbix-server-mysql-2.4.0/create
# mysql -uroot zabbix < schema.sql
# mysql -uroot zabbix < images.sql
# mysql -uroot zabbix < data.sql
https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages 1/3
1/19/2016 3 Installation from packages [Zabbix Documentation 2.4]
Starting Zabbix server process
Edit database configuration in zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
Start Zabbix server process.
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured.
It's necessary to uncomment the “date.timezone” setting and set the right timezone for you. After changing the configuration file
restart the apache web server.
Zabbix frontend is available at http://zabbixfrontendhostname/zabbix [http://zabbixfrontendhostname/zabbix] in the browser. Default
username/password is Admin/zabbix.
Debian / Ubuntu
Supported for version: Debian 7 (Wheezy), Ubuntu 14.04 LTS (Trusty Tahr)
Installing repository configuration package
Install the repository configuration package. This package contains apt configuration files.
Zabbix 2.4 for Debian 7:
# wget http://repo.zabbix.com/zabbix/2.4/debian/pool/main/z/zabbix-release/zabbix-release_2.4-1+wheezy_all.deb
# dpkg -i zabbix-release_2.4-1+wheezy_all.deb
# apt-get update
Zabbix 2.4 for Ubuntu 14.04 LTS:
# wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-1+trusty_all.deb
# dpkg -i zabbix-release_2.4-1+trusty_all.deb
# apt-get update
Installing Zabbix packages
Install Zabbix packages. dbconfigcommon will create the database and populate the initial schema and data automatically. If backend
db is located on a different server, please set dbc_remote_questions_default='true' in /etc/dbconfigcommon/config.
Example for Zabbix server and web frontend with mysql database.
The zabbixfrontendphp package, during installation, will configure a font, which is used on generated images. If you updated the
package from any other repository and text is empty on graphs or maps, please check if a “ttfdejavucore” package is installed and
https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages 2/3
1/19/2016 3 Installation from packages [Zabbix Documentation 2.4]
try to execute “dpkgreconfigure zabbixfrontendphp” command.
Example for installing Zabbix agent only.
Editing PHP configuration for Zabbix frontend
Apache configuration file for Zabbix frontend is located in /etc/apache2/conf.d/zabbix (For ubuntu 14.04, the file is located in
/etc/apache2/confavailable/zabbix.conf). Some PHP settings are already configured.
It's necessary to uncomment the “date.timezone” setting and set the correct timezone for you. After changing the configuration file
restart the apache web server.
Zabbix frontend is available at http://zabbixfrontendhostname/zabbix [http://zabbixfrontendhostname/zabbix] in the browser. Default
username/password is Admin/zabbix.
Troubleshooting
See the section on installationspecific issue troubleshooting.
https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages 3/3