Zabbix Documentation 4.4

3.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.22.43.23.4

User Tools

Site Tools


manual:installation:install_from_packages:debian_ubuntu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:installation:install_from_packages:debian_ubuntu [2019/04/02 06:04]
127.0.0.1 external edit
manual:installation:install_from_packages:debian_ubuntu [2019/09/13 06:15] (current)
yuriii [Frontend configuration]
Line 5: Line 5:
 Official Zabbix packages are available for:  Official Zabbix packages are available for: 
  
 +  * Debian 10 (Buster)
   * Debian 9 (Stretch)   * Debian 9 (Stretch)
   * Debian 8 (Jessie)   * Debian 8 (Jessie)
Line 10: Line 11:
   * Ubuntu 16.04 (Xenial Xerus) LTS   * Ubuntu 16.04 (Xenial Xerus) LTS
   * Ubuntu 14.04 (Trusty Tahr) LTS   * Ubuntu 14.04 (Trusty Tahr) LTS
 +  * Raspbian (Buster)
   * Raspbian (Stretch)   * Raspbian (Stretch)
  
Line 16: Line 18:
 Install the repository configuration package. This package contains apt (software package manager) configuration files. ​ Install the repository configuration package. This package contains apt (software package manager) configuration files. ​
  
-For **Debian ​9**, run the following commands:+For **Debian ​10**, run the following commands:
  
-**Note!** For Debian ​8, substitute '​stretch'​ with '​jessie'​ in the commands.+**Note!** For Debian ​9, substitute ​'​buster'​ with '​stretch' in the commands. For Debian 8, substitute '​buster' with '​jessie'​ in the commands.
  
-  # wget https://​repo.zabbix.com/​zabbix/​4.2/​debian/​pool/​main/​z/​zabbix-release/​zabbix-release_4.2-1+stretch_all.deb +  # wget https://​repo.zabbix.com/​zabbix/​4.4/​debian/​pool/​main/​z/​zabbix-release/​zabbix-release_4.4-1+buster_all.deb 
-  # dpkg -i zabbix-release_4.2-1+stretch_all.deb+  # dpkg -i zabbix-release_4.4-1+buster_all.deb
   # apt update   # apt update
  
 For **Ubuntu 18.04 (bionic)**, run the following commands: For **Ubuntu 18.04 (bionic)**, run the following commands:
  
-  # wget https://​repo.zabbix.com/​zabbix/​4.2/​ubuntu/​pool/​main/​z/​zabbix-release/​zabbix-release_4.2-1+bionic_all.deb +  # wget https://​repo.zabbix.com/​zabbix/​4.4/​ubuntu/​pool/​main/​z/​zabbix-release/​zabbix-release_4.4-1+bionic_all.deb 
-  # dpkg -i zabbix-release_4.2-1+bionic_all.deb+  # dpkg -i zabbix-release_4.4-1+bionic_all.deb
   # apt update   # apt update
  
Line 35: Line 37:
 For **Raspbian**,​ run the following commands: For **Raspbian**,​ run the following commands:
  
-  # wget https://​repo.zabbix.com/​zabbix/​4.2/​raspbian/​pool/​main/​z/​zabbix-release/​zabbix-release_4.2-2+stretch_all.deb +  # wget https://​repo.zabbix.com/​zabbix/​4.4/​raspbian/​pool/​main/​z/​zabbix-release/​zabbix-release_4.4-1+buster_all.deb 
-  # dpkg -i zabbix-release_4.2-2+stretch_all.deb+  # dpkg -i zabbix-release_4.4-1+buster_all.deb
   # apt update   # apt update
- 
 ==== Server/​proxy/​frontend installation ==== ==== Server/​proxy/​frontend installation ====
  
Line 48: Line 49:
  
   # apt install zabbix-proxy-mysql   # apt install zabbix-proxy-mysql
 +
 +Substitute '​mysql'​ in the commands with '​pgsql'​ to use PostgreSQL, or with '​sqlite3'​ to use SQLite3 (proxy only).
  
 To install Zabbix frontend: To install Zabbix frontend:
  
-  # apt install zabbix-frontend-php+  # apt install zabbix-frontend-php ​zabbix-apache-conf
  
-Substitute 'mysql' in the commands ​with 'pgsql' ​to use PostgreSQL, or with '​sqlite3'​ to use SQLite3 (proxy only).+Substitute 'apache' in the command ​with 'nginx' ​if using the Nginx web server.
  
 === Creating database === === Creating database ===
Line 108: Line 111:
 It's time to start Zabbix server process and make it start at system boot: It's time to start Zabbix server process and make it start at system boot:
  
-  # service zabbix-server start +  # service zabbix-server ​apache2 php-fpm ​start 
-  # update-rc.d zabbix-server enable+  # update-rc.d zabbix-server ​apache2 php-fpm ​enable
  
-Substitute '​zabbix-server'​ with '​zabbix-proxy'​ to start Zabbix proxy process.+Substitute '​zabbix-server'​ with '​zabbix-proxy'​ to start Zabbix proxy process. Substitute '​apache2'​ with '​nginx'​ for Nginx web server.
  
 === SELinux configuration === === SELinux configuration ===
Line 123: Line 126:
 === Frontend configuration === === Frontend configuration ===
  
-Apache configuration file for Zabbix frontend is located in /etc/​apache2/​conf-enabled/​zabbix.conf. Some PHP settings are already configured. But it's necessary to uncomment the "​date.timezone"​ setting and [[http://​php.net/​manual/​en/​timezones.php|set the right timezone]] for you.+Depending on the web server used (Apache/Nginx) edit the corresponding ​configuration file for Zabbix frontend
 + 
 +  * For Apache the configuration file is located in ''​/etc/zabbix/apache.conf''​. Some PHP settings are already configured. But it's necessary to uncomment the %%"%%date.timezone%%"%% setting and [[http://​php.net/​manual/​en/​timezones.php|set the right timezone]] for you.
  
   php_value max_execution_time 300   php_value max_execution_time 300
Line 133: Line 138:
   php_value always_populate_raw_post_data -1   php_value always_populate_raw_post_data -1
   # php_value date.timezone Europe/Riga   # php_value date.timezone Europe/Riga
 +
 +  * The zabbix-nginx-conf package installs a separate Nginx server for Zabbix frontend. Its configuration file is located in ''/​etc/​zabbix/​nginx.conf''​. For Zabbix frontend to work, it's necessary to uncomment and set ''​listen''​ and/or ''​server_name''​ directives.
 +
 +  # listen 80;
 +  # server_name example.com;​
 +
 +  * Zabbix uses its own dedicated php-fpm connection pool with Nginx:
 +
 +Its configuration file is located in ''/​etc/​zabbix/​php-fpm.conf''​. Some PHP settings are already configured. But it's necessary to set the right [[http://​php.net/​manual/​en/​timezones.php|date.timezone]] setting for you.
 +
 +  php_value[max_execution_time] = 300
 +  php_value[memory_limit] = 128M
 +  php_value[post_max_size] = 16M
 +  php_value[upload_max_filesize] = 2M
 +  php_value[max_input_time] = 300
 +  php_value[max_input_vars] = 10000
 +  ; php_value[date.timezone] = Europe/Riga
  
 Now you are ready to proceed with [[manual/​installation/​install#​installing_frontend|frontend installation steps]] which will allow you to access your newly installed Zabbix. Now you are ready to proceed with [[manual/​installation/​install#​installing_frontend|frontend installation steps]] which will allow you to access your newly installed Zabbix.