Ad Widget

Collapse

installation Failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kua
    Junior Member
    • Nov 2018
    • 2

    #1

    installation Failed

    CentOS 7.5.1804
    Apache 2.4.6
    mysql 14.14 distrib 5.7.24
    php 7.2.11
    php-mysqlnd 7.2.11

    step 1. yum -y install http://repo.zabbix.com/zabbix/4.0/rh...el7.noarch.rpm -- success
    step 2. yum -y install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent -- error
    vv

    [root@localhost ~]# Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
    * base: mirror.kakao.com
    * elrepo: repos.lax-noc.com
    * epel: mirror.premi.st
    * extras: mirror.kakao.com
    * remi-php72: ftp.riken.jp
    * remi-safe: ftp.riken.jp
    * updates: mirror.kakao.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-agent.x86_64 0:4.0.1-1.el7 will be installed
    ---> Package zabbix-get.x86_64 0:4.0.1-1.el7 will be installed
    ---> Package zabbix-server-mysql.x86_64 0:4.0.1-1.el7 will be installed
    ---> Package zabbix-web-mysql.noarch 0:4.0.1-1.el7 will be installed
    --> Processing Dependency: zabbix-web = 4.0.1-1.el7 for package: zabbix-web-mysql-4.0.1-1.el7.noarch
    --> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.0.1-1.el7.noarch
    Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.2.11-1.el7.remi.x86_64 which is already installed
    --> Running transaction check
    ---> Package zabbix-web.noarch 0:4.0.1-1.el7 will be installed
    --> Processing Dependency: php-ldap for package: zabbix-web-4.0.1-1.el7.noarch
    ---> Package zabbix-web-mysql.noarch 0:4.0.1-1.el7 will be installed
    --> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.0.1-1.el7.noarch
    Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.2.11-1.el7.remi.x86_64 which is already installed
    --> Running transaction check
    ---> Package php-ldap.x86_64 0:7.2.11-1.el7.remi will be installed
    ---> Package zabbix-web-mysql.noarch 0:4.0.1-1.el7 will be installed
    --> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.0.1-1.el7.noarch
    Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.2.11-1.el7.remi.x86_64 which is already installed
    --> Finished Dependency Resolution
    Error: Package: zabbix-web-mysql-4.0.1-1.el7.noarch (zabbix)
    Requires: php-mysql
    Available: php-mysql-5.4.16-45.el7.x86_64 (base)
    php-mysql = 5.4.16-45.el7
    Available: php-mysqlnd-5.4.16-45.el7.x86_64 (base)
    php-mysql = 5.4.16-45.el7
    Available: php-pecl-mysql-1.0.0-0.17.20160812git230a828.el7.remi.7.2.x86_64 (remi-php72)
    php-mysql = 1:1.0.0
    Installed: php-mysqlnd-7.2.11-1.el7.remi.x86_64 (@remi-php72)
    Not found
    Available: php-mysqlnd-7.2.10-1.el7.remi.x86_64 (remi-php72)
    Not found
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
    what is the problem?? TT
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Zabbix's official repository is made up of OS standard packages.
    If the environment of PHP 7.2 which is not OS standard is installed, dependency of package can not be resolved, and installation with yum command may be impossible.

    It is the easiest way to return to the OS standard PHP 5.4 environment.
    If you are installing PHP 7.2 as it is, you can give up installing with the yum command and install the package of the Web front end by rpm command ignoring the dependency.

    Comment

    • ingus.vilnis
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2014
      • 908

      #3
      If I remember correctly PHP packages from Webtatic repository replace CentOS PHP 5.4 packages without any additional woodoo magic. Remi packages don't.

      Comment

      • nameuser
        Member
        • Apr 2018
        • 39

        #4
        I have the same issue but with PHP7 from remi repo.


        yum install:
        Code:
        <..>
        ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
        ---> Package zabbix-web-mysql.noarch 0:4.0.1-1.el7 will be installed
        --> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.0.1-1.el7.noarch
        Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.1.24-1.el7.remi.x86_64 which is already installed
        --> Finished Dependency Resolution
        Error: Package: zabbix-web-mysql-4.0.1-1.el7.noarch (zabbix)
                   Requires: php-mysql
                   Available: php-mysql-5.4.16-45.el7.x86_64 (base)
                       php-mysql = 5.4.16-45.el7
                   Available: php-mysqlnd-5.4.16-45.el7.x86_64 (base)
                       php-mysql = 5.4.16-45.el7
                   Available: php-pecl-mysql-1.0.0-0.14.20160428git45881bd.el7.remi.7.1.x86_64 (remi-php71)
                       php-mysql = 1:1.0.0
                   Available: php-pecl-mysql-1.0.0-0.15.20160812git230a828.el7.remi.7.1.x86_64 (remi-php71)
                       php-mysql = 1:1.0.0
                   Available: php56u-mysqlnd-5.6.37-1.ius.centos7.x86_64 (ius)
                       php-mysql = 5.6.37-1.ius.centos7
                   Available: php56u-mysqlnd-5.6.38-1.ius.centos7.x86_64 (ius)
                       php-mysql = 5.6.38-1.ius.centos7
                   Installed: php-mysqlnd-7.1.24-1.el7.remi.x86_64 (@remi-php71)
                       Not found
                   Available: php-mysqlnd-7.1.23-1.el7.remi.x86_64 (remi-php71)
                       Not found
         You could try using --skip-broken to work around the problem
         You could try running: rpm -Va --nofiles --nodigest

        deps:


        Code:
        root@localhost ~ # yum deplist zabbix-web-mysql --verbose
        Loading "fastestmirror" plugin
        Config time: 0.010
        Yum version: 3.4.3
        rpmdb time: 0.000
        Setting up Package Sacks
        Loading mirror speeds from cached hostfile
         * base: mirror.logol.ru
         * elrepo: ftp.nluug.nl
         * epel: epel.hysing.is
         * extras: mirror.logol.ru
         * ius: ftp.acc.umu.se
         * remi-php71: mirror.netweaver.uk
         * remi-safe: mirror.netweaver.uk
         * updates: mirror.reconn.ru
        pkgsack time: 3.121
        Searching pkgSack for dep: php-mysql
        Searching pkgSack for dep: zabbix-web
        package: zabbix-web-mysql.noarch 4.0.1-1.el7
          dependency: php-mysql
           provider: php56u-mysqlnd.x86_64 5.6.38-1.ius.centos7
           provider: php56u-mysqlnd.x86_64 5.6.37-1.ius.centos7
           provider: php-pecl-mysql.x86_64 1.0.0-0.15.20160812git230a828.el7.remi.7.1
           provider: php-pecl-mysql.x86_64 1.0.0-0.14.20160428git45881bd.el7.remi.7.1
           provider: php-mysqlnd.x86_64 5.4.16-45.el7
           provider: php-mysql.x86_64 5.4.16-45.el7
          dependency: zabbix-web = 4.0.1-1.el7
           provider: zabbix-web.noarch 4.0.1-1.el7
        php

        Code:
        root@localhost ~ # php -v
        PHP 7.1.24 (cli) (built: Nov  7 2018 18:45:17) ( NTS )
        Copyright (c) 1997-2018 The PHP Group
        Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies


        Code:
        root@localhost ~ # yum list installed php*
        Loaded plugins: fastestmirror
        Loading mirror speeds from cached hostfile
         * base: mirror.corbina.net
         * elrepo: elrepo.mirrors.arminco.com
         * epel: mirror.linux-ia64.org
         * extras: mirror.corbina.net
         * ius: mirrors.ircam.fr
         * remi-php71: mirror.reconn.ru
         * remi-safe: mirror.reconn.ru
         * updates: mirror.corbina.net
        Installed Packages
        php.x86_64                                                                                 7.1.24-1.el7.remi                                                                                     @remi-php71
        php-bcmath.x86_64                                                                          7.1.24-1.el7.remi                                                                                     @remi-php71
        php-cli.x86_64                                                                             7.1.24-1.el7.remi                                                                                     @remi-php71
        php-common.x86_64                                                                          7.1.24-1.el7.remi                                                                                     @remi-php71
        php-fedora-autoloader.noarch                                                               1.0.0-1.el7                                                                                           @epel
        php-fpm.x86_64                                                                             7.1.24-1.el7.remi                                                                                     @remi-php71
        php-gd.x86_64                                                                              7.1.24-1.el7.remi                                                                                     @remi-php71
        php-json.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
        php-ldap.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
        php-mbstring.x86_64                                                                        7.1.24-1.el7.remi                                                                                     @remi-php71
        php-mysqlnd.x86_64                                                                         7.1.24-1.el7.remi                                                                                     @remi-php71
        php-odbc.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
        php-pdo.x86_64                                                                             7.1.24-1.el7.remi                                                                                     @remi-php71
        php-pear.noarch                                                                            1:1.10.6-1.el7.remi                                                                                   @remi-php71
        php-pecl-memcache.x86_64                                                                   3.0.9-0.9.20170802.e702b5f.el7.remi.7.1                                                               @remi-php71
        php-process.x86_64                                                                         7.1.24-1.el7.remi                                                                                     @remi-php71
        php-snmp.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
        php-soap.x86_64                                                                            7.1.24-1.el7.remi                                                                                     @remi-php71
        php-xml.x86_64                                                                             7.1.24-1.el7.remi                                                                                     @remi-php71
        php-xmlrpc.x86_64                                                                          7.1.24-1.el7.remi                                                                                     @remi-php71
        php71.x86_64                                                                               1.0-1.el7.remi                                                                                        @remi-safe
        php71-php-cli.x86_64                                                                       7.1.24-1.el7.remi                                                                                     @remi-safe
        php71-php-common.x86_64                                                                    7.1.24-1.el7.remi                                                                                     @remi-safe
        php71-php-json.x86_64                                                                      7.1.24-1.el7.remi                                                                                     @remi-safe
        php71-runtime.x86_64                                                                       1.0-1.el7.remi                                                                                        @remi-safe
        Any chance to fix it?

        Comment

        • nameuser
          Member
          • Apr 2018
          • 39

          #5
          I dont know why but removing IUS repository from repolist is solution.

          So I did this:
          1. yum remove php*
          2. yum clean all
          3. rm /etc/yum.repos.d/ius*
          4. yum install zabbix-web-mysql

          Hope you will solve this issue the same way.
          Anyway, I don't know why removing 3rd party repo (ius) fix that for me

          Comment

          • steeladept
            Member
            • Sep 2018
            • 69

            #6
            Originally posted by Atsushi
            Zabbix's official repository is made up of OS standard packages.
            If the environment of PHP 7.2 which is not OS standard is installed, dependency of package can not be resolved, and installation with yum command may be impossible.
            My experience is this isn't strictly correct. I have been using PHP 7.2 (remi) since the beginning without issue. The main difference between this build and mine (and the reason I required 7.2) was MySQL 8.0 was used.

            I did have issues with the Webtatic repo, personally, but as Ingus mentioned, that may work better for the user. The key for me seemed to be to install and configure the PHP modules before starting the server. For some reason, when I installed and started the server, it seemed to set variables that I couldn't unset. Once I restarted from scratch, I did it in this order and it worked fine: 1) Install all Repos, 2) Install PHP 7.2 and then Zabbix components, 3) Configure PHP, 4) Start the server.

            Honestly, it doesn't make sense to me why this works and the other way didn't. And perhaps there is a lot to be said about the variance of MySQL 8 components instead of MySQL 14.14 distrib 5.7.24 (whatever that is in the MySQL numbering equivalent); but I will say that sticking to the OS default 5.4 PHP is not a requirement.

            Comment


            • Atsushi
              Atsushi commented
              Editing a comment
              It depends on the repository and version they use.
              If they can not solve the problem themselves, I think they should use the default repository.

              If they set up properly and they are using the latest packages, they can install without worrying about the order. The question of the first questioner is irrelevant whether it is MySQL 8.0 or not. It is a problem of php-mysql and php-mysqlnd dependency.

              If they are using PHP 7.2 on remi to install Zabbix 4.0 in the CentOS 7 environment, just follow the steps below.

              # yum update
              # reboot
              # yum install http://repo.zabbix.com/zabbix/4.0/rh...el7.noarch.rpm
              # yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
              # yum --enablerepo=remi-php72 install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent

              --- added
              I actually tried creating the environment, but it seems to fail if PHP 7.2 is installed first.
              If they want to reinstall PHP, they can install it by the following procedure.

              # yum remove php-common
              # yum --enablerepo=remi-php72 install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent

              PHP version specification in /etc/httpd/conf.d/zabbix.conf file is required.
              (mod_php5.c -> mod_php7.c)
              Last edited by Atsushi; 13-11-2018, 04:34.
          • roysa
            Junior Member
            • Apr 2019
            • 1

            #7
            Just fixed it by installing php-pecl-mysql.x86_64 (remi package) and then zabbix-web-mysql.
            Centos 7.6.1810, PHP 7.1 remi

            Comment

            • melpheos
              Member
              • Dec 2008
              • 64

              #8
              Originally posted by roysa
              Just fixed it by installing php-pecl-mysql.x86_64 (remi package) and then zabbix-web-mysql.
              Centos 7.6.1810, PHP 7.1 remi
              This is an old topic but this reponse helped me and solved my php 7.4 installation issue

              Comment

              • jaida1978
                Junior Member
                • Mar 2020
                • 7

                #9
                Originally posted by melpheos

                This is an old topic but this reponse helped me and solved my php 7.4 click testinstallation issue

                If you are installing PHP 7.2 as it is, you can give up installing with the yum command and install the package of the Web front end by rpm command ignoring the dependency
                Last edited by jaida1978; 13-05-2020, 18:16.

                Comment

                Working...