Zabbix Documentation 5.2

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


manual:installation:install_from_packages:frontend_on_rhel7

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
manual:installation:install_from_packages:frontend_on_rhel7 [2020/02/17 15:04]
marinagen third party PHP repositories moved up
manual:installation:install_from_packages:frontend_on_rhel7 [2020/02/17 15:09] (current)
marinagen formatting to make table of contents better
Line 62: Line 62:
  
 ==== Technical details of new packages ==== ==== Technical details of new packages ====
-=== zabbix-web-deps-scl ​===+**zabbix-web-deps-scl** 
 This package pulls common PHP dependenencies of Zabbix frontend from Red Hat Software Collections. This package pulls common PHP dependenencies of Zabbix frontend from Red Hat Software Collections.
   # repoquery --requires zabbix-web-deps-scl   # repoquery --requires zabbix-web-deps-scl
Line 75: Line 76:
 Configuration file is located at ''/​etc/​opt/​rh/​rh-php72/​php-fpm.d/​zabbix.conf''​. Configuration file is located at ''/​etc/​opt/​rh/​rh-php72/​php-fpm.d/​zabbix.conf''​.
  
-=== zabbix-web-mysql-scl ​===+**zabbix-web-mysql-scl** 
 Meta package that pulls ''​zabbix-web''​ package and MySQL module for PHP, together with common PHP dependencies. Meta package that pulls ''​zabbix-web''​ package and MySQL module for PHP, together with common PHP dependencies.
   # repoquery --requires zabbix-web-mysql-scl   # repoquery --requires zabbix-web-mysql-scl
Line 82: Line 84:
   zabbix-web-deps-scl   zabbix-web-deps-scl
  
-=== zabbix-web-pgsql-scl ​===+**zabbix-web-pgsql-scl** 
 Meta package that pulls ''​zabbix-web''​ package and PostgreSQL module for PHP, together with common PHP dependencies. Meta package that pulls ''​zabbix-web''​ package and PostgreSQL module for PHP, together with common PHP dependencies.
   # repoquery --requires zabbix-web-pgsql-scl   # repoquery --requires zabbix-web-pgsql-scl
Line 89: Line 92:
   zabbix-web-deps-scl   zabbix-web-deps-scl
  
-=== zabbix-nginx-conf-scl ​===+**zabbix-nginx-conf-scl** 
 This package pulls Nginx from Red Hat Software Collections. This package pulls Nginx from Red Hat Software Collections.
   # repoquery --requires zabbix-nginx-conf-scl   # repoquery --requires zabbix-nginx-conf-scl
Line 114: Line 118:
 Official Zabbix 5.0 frontend packages use php-fpm with both Apache and Nginx. Official Zabbix 5.0 frontend packages use php-fpm with both Apache and Nginx.
  
-==== Upgrade process with Apache ​====+=== Upgrade process with Apache ===
 This section provides Apache-specific instructions for upgrading Zabbix frontend and server from version 4.0 or 4.4 to 5.0. For Nginx-specific instructions see [[:​manual/​installation/​install_from_packages/​frontend_on_rhel7?​do=edit#​upgrade_process_with_nginx|Upgrade process with Nginx]]. This section provides Apache-specific instructions for upgrading Zabbix frontend and server from version 4.0 or 4.4 to 5.0. For Nginx-specific instructions see [[:​manual/​installation/​install_from_packages/​frontend_on_rhel7?​do=edit#​upgrade_process_with_nginx|Upgrade process with Nginx]].
 \\ \\
Line 121: Line 125:
 It is assumed that both frontend and server run on the same box. If you have different setuo, make adjustments accordingly.\\ It is assumed that both frontend and server run on the same box. If you have different setuo, make adjustments accordingly.\\
  
-=== Remove old frontend ​===+**Remove old frontend** 
 Existing Zabbix frontend must be removed before starting an upgrade. Existing Zabbix frontend must be removed before starting an upgrade.
 Old configuration file will be moved to ''/​etc/​httpd/​conf.d/​zabbix.conf.rpmsave''​ by rpm.  Old configuration file will be moved to ''/​etc/​httpd/​conf.d/​zabbix.conf.rpmsave''​ by rpm. 
   yum remove zabbix-web-*   yum remove zabbix-web-*
  
-=== Install SCL repository ​===+**Install SCL repository** 
 On ''​RHEL''​ run  On ''​RHEL''​ run 
   yum-config-manager --enable rhel-server-rhscl-7-rpms   yum-config-manager --enable rhel-server-rhscl-7-rpms
Line 140: Line 146:
   yum-config-manager --enable ol7_latest ol7_optional_latest   yum-config-manager --enable ol7_latest ol7_optional_latest
  
-=== Install Zabbix 5.0 release package and enable Zabbix-deprecated repository ​===+**Install Zabbix 5.0 release package and enable Zabbix-deprecated repository** 
 Install ''​zabbix-release-5.0''​ package. Install ''​zabbix-release-5.0''​ package.
   rpm -Uvh https://​repo.zabbix.com/​zabbix/​4.5/​rhel/​7/​x86_64/​zabbix-release-4.5-2.el7.noarch.rpm   rpm -Uvh https://​repo.zabbix.com/​zabbix/​4.5/​rhel/​7/​x86_64/​zabbix-release-4.5-2.el7.noarch.rpm
Line 152: Line 159:
   ...   ...
  
-=== Install new frontend packages ​===+**Install new frontend packages** 
   yum install zabbix-web-mysql-scl   yum install zabbix-web-mysql-scl
  
 Official Zabbix 5.0 frontend packages use php-fpm. Update timezone in ''/​etc/​opt/​rh/​rh-php72/​php-fpm.d/​zabbix.conf''​ file. Official Zabbix 5.0 frontend packages use php-fpm. Update timezone in ''/​etc/​opt/​rh/​rh-php72/​php-fpm.d/​zabbix.conf''​ file.
  
-=== Update remaining packages and restart Zabbix server ​===+** Update remaining packages and restart Zabbix server** 
   yum update zabbix-*   yum update zabbix-*
 <note important>​Restarting Zabbix server will upgrade the database. Make sure the database is backed up.</​note>​ <note important>​Restarting Zabbix server will upgrade the database. Make sure the database is backed up.</​note>​
   systemctl restart zabbix-server   systemctl restart zabbix-server
  
-=== Update remaining services ​===+** Update remaining services ​** 
 Start and enable php-fpm service. Start and enable php-fpm service.
   systemctl start rh-php72-php-fpm   systemctl start rh-php72-php-fpm
Line 170: Line 180:
   systemctl restart httpd   systemctl restart httpd
  
-==== Upgrade process with Nginx ====+=== Upgrade process with Nginx ===
 Upgrading to Zabbix 5.0 with Nginx requires few more steps to be performed. Upgrading to Zabbix 5.0 with Nginx requires few more steps to be performed.