Ad Widget

Collapse

Having trouble installing frontend on Amazon Linux 2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grayaii
    Junior Member
    • Nov 2020
    • 3

    #1

    Having trouble installing frontend on Amazon Linux 2

    I'm on Amazon Linux 2 and I'm following the instructions here:
    Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


    I've successfully installed the repo:


    And I've successfully installed the backend packages:
    - zabbix-server-pgsql
    - zabbix-agent

    But I cannot get the front-end packages to install:
    yum -y --disablerepo="*" --enablerepo="zabbix-frontend" install zabbix-web-pgsql-scl zabbix-nginx-conf-scl

    I always get the error:
    Error: Package: zabbix-web-deps-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-php72
    Error: Package: zabbix-web-pgsql-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-php72-php-pgsql
    Error: Package: zabbix-nginx-conf-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-nginx116-nginx
    Error: Package: zabbix-web-deps-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-php72-php-ldap
    Error: Package: zabbix-web-deps-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-php72-php-fpm
    Error: Package: zabbix-web-deps-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-php72-php-xml
    Error: Package: zabbix-web-deps-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-php72-php-bcmath
    Error: Package: zabbix-web-deps-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-php72-php-mbstring
    Error: Package: zabbix-web-deps-scl-5.0.5-1.el7.noarch (zabbix-frontend)
    Requires: rh-php72-php-gd

    I tried all sort of crazy things like:
    yum install https://dl.fedoraproject.org/pub/epe...t-7.noarch.rpm
    or
    yum-config-manager --enable epel
    or
    amazon-linux-extras enable epel

    But "yum search rh-php72" does not find and I cannot find a way to install those dependencies.

    I've read most of the previous searches for this topic https://www.zabbix.com/forum/search?q=rh-php72

    But I cannot find a solution to install the zabbix frontend on amazon linux 2:
    # uname -a
    Linux ip-10-20-0-142.ccointernal.com 4.14.200-155.322.amzn2.x86_64 #1 SMP Thu Oct 15 20:11:12 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

    Any help would be awesome,

    Thanks,
    Alex


  • grayaii
    Junior Member
    • Nov 2020
    • 3

    #2
    I'm wondering if the solution is simply NOT to use yum at all.
    Instead, I can install docker, and install the zabbix server and zabbix frontend containers on the EC2 instance, and then use RDS postgres (or maybe even EFS (which is a managed NFS drive) for the persistent database.
    Kinda like what this guy did:
    https://medium.com/@leandrobarbosa_5...r-794f39ab7665

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      You cannot use rh-php72 on Amazon Linux 2. The only official Zabbix packages available on Amazon Linux 2 are those that do not depend on rh-php72. In other words, it's just zabbix-web package for frontend. Other settings should be set by yourself without depending on the package.
      Also note that Amazon Linux 2 has been updated independently and is not fully compatible with RHEL 7.

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        Package rh-php72 comes from an CentOS repository called centos-release-scl. On CentOS you enable this repository with:
        Code:
        yum install centos-release-scl

        Comment

        Working...