Ad Widget

Collapse

Zabbix 3.4 with PHP 7 and mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akbar415
    Senior Member
    • May 2015
    • 119

    #1

    Zabbix 3.4 with PHP 7 and mysql

    I'm trying to install Zabbix 3.4 but i get this error message:


    Code:
    # yum install zabbix-web.noarch zabbix-web-mysql.noarch
    Loaded plugins: langpacks, ulninfo
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-web.noarch 0:3.4.14-1.el7 will be installed
    ---> Package zabbix-web-mysql.noarch 0:3.4.14-1.el7 will be installed
    --> Processing Dependency: php-mysql for package: zabbix-web-mysql-3.4.14-1.el7.noarch
    Package php-mysql-5.4.16-45.el7.x86_64 is obsoleted by php-mysqlnd-7.2.10-1.0.1.el7.x86_64 which is already installed
    --> Finished Dependency Resolution
    Error: Package: zabbix-web-mysql-3.4.14-1.el7.noarch (zabbix)
               Requires: php-mysql
               Available: php-mysql-5.4.16-45.el7.x86_64 (ol7_latest)
                   php-mysql = 5.4.16-45.el7
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest

    PHP Doc's say that there is no php-mysql for php7


    This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:

    Zabbix doc in English say to use php 5.4 or later (https://www.zabbix.com/documentation...n/requirements) in portuguese there is a observation about the PHP 7.0 on software requirements -
    A versão 7 do PHP ainda não é suportada.
    (PHP 7 is not supported)- (https://www.zabbix.com/documentation...n/requirements).

    Zabbix 3.4 support php 7 yes or no - this is a problem or just a misunderstanding in the zabbix documentation?

    If yes, how can I use with mysql.

    OS: Oracle Linux 7
    PHP Repo: https://yum.oracle.com/repo/OracleLinux/OL7/
    Zabbix Repo: http://repo.zabbix.com/zabbix/3.4/rhel/7/



  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Zabbix 3.4 can also run on PHP 7.
    However, since the official package of Zabbix can be installed with the standard package configuration, it may not be installed with the yum command in PHP 7 environment other than standard.

    In the repository of PHP being used, I think that it will install it ignoring package dependency.
    For PHP 7, php-mysqlnd package should be needed instead of php-mysql package.

    Comment

    Working...