[ZBX-11741] install zabbix-web-mysql should recognize php-sql or php-mysqlnd Created: 2017 Jan 25  Updated: 2017 Nov 22  Resolved: 2017 Nov 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 3.2.3
Fix Version/s: None

Type: Incident report Priority: Blocker
Reporter: erald de Hoog Assignee: Unassigned
Resolution: Won't fix Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Centos 7 with PHP7



 Description   

Tried to install but getting error

yum install zabbix-server-mysql zabbix-web-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.1000mbps.com
  • epel: mirror.1000mbps.com
  • extras: mirror.1000mbps.com
  • remi: nl.mirror.babylon.network
  • remi-php70: nl.mirror.babylon.network
  • remi-safe: nl.mirror.babylon.network
  • updates: centos.mirror.triple-it.nl
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-server-mysql.x86_64 0:3.2.3-1.el7 will be installed
    .............
    --> Processing Dependency: php-mysql for package: zabbix-web-mysql-3.2.3-1.el7.noarch
    Package php-mysql-5.4.45-12.el7.remi.x86_64 is obsoleted by php-mysqlnd-7.0.15-1.el7.remi.x86_64 which is already installed
    --> Finished Dependency Resolution
    Error: Package: zabbix-web-mysql-3.2.3-1.el7.noarch (zabbix)
    Requires: php-mysql
    Available: php-mysql-5.4.16-42.el7.x86_64 (base)
    php-mysql = 5.4.16-42.el7
    Available: php-mysql-5.4.45-11.el7.remi.x86_64 (remi)
    php-mysql = 5.4.45-11.el7.remi
    Available: php-mysql-5.4.45-12.el7.remi.x86_64 (remi)
    php-mysql = 5.4.45-12.el7.remi
    Available: php-mysqlnd-5.4.16-42.el7.x86_64 (base)
    php-mysql = 5.4.16-42.el7
    Available: php-mysqlnd-5.4.45-11.el7.remi.x86_64 (remi)
    php-mysql = 5.4.45-11.el7.remi
    Available: php-mysqlnd-5.4.45-12.el7.remi.x86_64 (remi)
    php-mysql = 5.4.45-12.el7.remi
    Available: php-pecl-mysql-1.0.0-0.8.20151007git294ce3b.el7.remi.7.0.x86_64 (remi-php70)
    php-mysql = 1:1.0.0
    Available: php-pecl-mysql-1.0.0-0.9.20151007git294ce3b.el7.remi.7.0.x86_64 (remi-php70)
    php-mysql = 1:1.0.0
    Installed: php-mysqlnd-7.0.15-1.el7.remi.x86_64 (@remi-php70)
    Not found
    Available: php-mysqlnd-7.0.14-1.el7.remi.x86_64 (remi-php70)
    Not found
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

package php-mysqlnd-7.0.15- is installed.



 Comments   
Comment by jonny [ 2017 Jun 15 ]

I also had this problem and have given up on installing.

Comment by Jonathan W [ 2017 Sep 21 ]

This also effects updates via yum and is still present in 3.4.

Comment by Ted Popesco [ 2017 Nov 14 ]

This appears to be fixed in 3.4.4. I'm running CentOS 6. Previously was on Zabbix 2.2 and PHP 5.6.32 and this issue prevented me from upgrading to PHP 7.1. I upgraded Zabbix to 3.4.4 and then was able to upgrade PHP successfully (via remi-php71).

$ rpm -qa |grep zabbix
zabbix-release-3.4-1.el6.noarch
zabbix-agent-3.4.4-2.el6.x86_64
zabbix-web-3.4.4-2.el6.noarch
zabbix-web-mysql-3.4.4-2.el6.noarch
zabbix-server-mysql-3.4.4-2.el6.x86_64
$ php -v
PHP 7.1.11 (cli) (built: Oct 25 2017 10:38:39) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Comment by dimir [ 2017 Nov 22 ]

You are using php7 from non-official repository. Unfortunately we do not support that.

Generated at Sat Apr 20 00:14:07 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.