Ad Widget

Collapse

Cannot install zabbix-web-mysql as I have php7.4 and php5.6 required.. ideas

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • curtash
    Junior Member
    • Jan 2020
    • 2

    #1

    Cannot install zabbix-web-mysql as I have php7.4 and php5.6 required.. ideas

    Hi All,

    Really excited to hopefully be using Zabbix but I'm having great difficulty installing and I'm not sure where I'm going wrong.

    My server is CentOS 7, Apache, MySQL, PHP 7.4, with Vesta CP

    I've opened ports: 80/443 10051 10050

    I've watched and followed the video on the download page a few times. I've also followed the package install and the version on the documents section.

    1st Issue I came across which I guess is the main problem is when installing sudo yum install zabbix-web-mysql i get errors relating to the PHP version I have:

    Code:
    -->-->
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: uk.mirror.nsec.pt
     * epel: mirror.freethought-internet.co.uk
     * extras: repo.uk.bigstepcloud.com
     * remi: mirror.netweaver.uk
     * remi-php55: mirror.netweaver.uk
     * remi-php56: mirror.netweaver.uk
     * remi-safe: mirror.netweaver.uk
     * remi-test: mirror.netweaver.uk
     * updates: repo.uk.bigstepcloud.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-web-mysql.noarch 0:4.4.4-1.el7 will be installed
    --> Processing Dependency: zabbix-web = 4.4.4-1.el7 for package: zabbix-web-mysql-4.4.4-1.el7.noarch
    --> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.4.4-1.el7.noarch
    Package php-mysql-5.4.45-18.el7.remi.x86_64 is obsoleted by php-mysqlnd-7.4.2~RC1-1.el7.remi.x86_64 which is already installed
    --->Running transaction check
    ---> Package zabbix-web.noarch 0:4.4.4-1.el7 will be installed
    --> Processing Dependency: php-ldap for package: zabbix-web-4.4.4-1.el7.noarch
    ---> Package zabbix-web-mysql.noarch 0:4.4.4-1.el7 will be installed
    --> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.4.4-1.el7.noarch
    Package php-mysql-5.4.45-18.el7.remi.x86_64 is obsoleted by php-mysqlnd-7.4.2~RC1-1.el7.remi.x86_64 which is already installed
    --> Running transaction check
    ---> Package php-ldap.x86_64 0:5.6.40-15.el7.remi will be installed
    --> Processing Dependency: php-common(x86-64) = 5.6.40-15.el7.remi for package: php-ldap-5.6.40-15.el7.remi.x86_64
    ---> Package zabbix-web-mysql.noarch 0:4.4.4-1.el7 will be installed
    --> Processing Dependency: php-mysql for package: zabbix-web-mysql-4.4.4-1.el7.noarch
    Package php-mysql-5.4.45-18.el7.remi.x86_64 is obsoleted by php-mysqlnd-7.4.2~RC1-1.el7.remi.x86_64 which is already installed
    --> Finished Dependency Resolution
    Error: Package: php-ldap-5.6.40-15.el7.remi.x86_64 (remi-php56)
               Requires: php-common(x86-64) = 5.6.40-15.el7.remi
               Installed: php-common-7.4.2~RC1-1.el7.remi.x86_64 (@remi-modular-test)
                   php-common(x86-64) = 7.4.2~RC1-1.el7.remi
               Available: php-common-5.4.16-46.el7.x86_64 (base)
                   php-common(x86-64) = 5.4.16-46.el7
               Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
                   php-common(x86-64) = 5.4.16-46.1.el7_7
               Available: php-common-5.4.45-17.el7.remi.x86_64 (remi)
                   php-common(x86-64) = 5.4.45-17.el7.remi
               Available: php-common-5.4.45-18.el7.remi.x86_64 (remi)
                   php-common(x86-64) = 5.4.45-18.el7.remi
               Available: php-common-5.5.38-11.el7.remi.x86_64 (remi-php55)
                   php-common(x86-64) = 5.5.38-11.el7.remi
               Available: php-common-5.5.38-12.el7.remi.x86_64 (remi-php55)
                   php-common(x86-64) = 5.5.38-12.el7.remi
               Available: php-common-5.6.40-14.el7.remi.x86_64 (remi-php56)
                   php-common(x86-64) = 5.6.40-14.el7.remi
               Available: php-common-5.6.40-15.el7.remi.x86_64 (remi-php56)
                   php-common(x86-64) = 5.6.40-15.el7.remi
    Error: Package: zabbix-web-mysql-4.4.4-1.el7.noarch (zabbix)
               Requires: php-mysql
               Available: php-mysql-5.4.16-46.el7.x86_64 (base)
                   php-mysql = 5.4.16-46.el7
               Available: php-mysql-5.4.16-46.1.el7_7.x86_64 (updates)
                   php-mysql = 5.4.16-46.1.el7_7
               Available: php-mysql-5.4.45-17.el7.remi.x86_64 (remi)
                   php-mysql = 5.4.45-17.el7.remi
               Available: php-mysql-5.4.45-18.el7.remi.x86_64 (remi)
                   php-mysql = 5.4.45-18.el7.remi
               Available: php-mysqlnd-5.4.16-46.el7.x86_64 (base)
                   php-mysql = 5.4.16-46.el7
               Available: php-mysqlnd-5.4.16-46.1.el7_7.x86_64 (updates)
                   php-mysql = 5.4.16-46.1.el7_7
               Available: php-mysqlnd-5.4.45-17.el7.remi.x86_64 (remi)
                   php-mysql = 5.4.45-17.el7.remi
               Available: php-mysqlnd-5.4.45-18.el7.remi.x86_64 (remi)
                   php-mysql = 5.4.45-18.el7.remi
               Available: php-mysqlnd-5.5.38-11.el7.remi.x86_64 (remi-php55)
                   php-mysql = 5.5.38-11.el7.remi
               Available: php-mysqlnd-5.5.38-12.el7.remi.x86_64 (remi-php55)
                   php-mysql = 5.5.38-12.el7.remi
               Available: php-mysqlnd-5.6.40-14.el7.remi.x86_64 (remi-php56)
                   php-mysql = 5.6.40-14.el7.remi
               Available: php-mysqlnd-5.6.40-15.el7.remi.x86_64 (remi-php56)
                   php-mysql = 5.6.40-15.el7.remi
               Installed: php-mysqlnd-7.4.2~RC1-1.el7.remi.x86_64 (@remi-modular-test)
                   Not found
    One of the steps that I could not follow (guessing as above did not install) was to update the /etc/httpd/conf.d/zabbix.conf with the timezone because it did not exist. I therefore created one and added what I think should have been correct:

    Code:
    #
    # Zabbix monitoring system php web frontend
    #
    
    Alias /zabbix /usr/share/zabbix
    
    <Directory "/usr/share/zabbix">
        Options FollowSymLinks
        AllowOverride None
        Require all granted
    
        <IfModule mod_php7.c>
            php_value max_execution_time 300
            php_value memory_limit 512M
            php_value post_max_size 128M
            php_value upload_max_filesize 128M
            php_value max_input_time 300
            php_value max_input_vars 10000
            php_value always_populate_raw_post_data -1
            php_value date.timezone Europe/London
        </IfModule>
    </Directory>
    
    <Directory "/usr/share/zabbix/conf">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/app">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/include">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/local">
        Require all denied
    </Directory>
    So unfortunately i cannot load the gui. Any guidance would be much appreciated.
  • curtash
    Junior Member
    • Jan 2020
    • 2

    #2
    Just a quick note in case others come here. I sorted it by doing the following:

    sudo yum install php74-php-pecl-mysql
    sudo yum remove php-common
    rpm -Uvh https://repo.zabbix.com/zabbix/4.4/r...el7.noarch.rpm
    sudo yum --enablerepo=remi-php74 install zabbix-web-mysql
    sudo yum -y install zabbix-get zabbix-agent zabbix-server-mysql
    yum clean all

    Comment

    Working...