• zabbix server 4.0 lts 升级php7.4


     背景:等保3级测评,zabbix4.0 自带的PHP版本5.4.16 存在漏洞,要求整改

    现有版本查看

     

    准备YUM源

    yum -y install  epel-release yum-utils
    yum install -y  http://rpms.remirepo.net/enterprise/remi-release-7.rpm
    yum-config-manager --disable remi-php54 #禁用php54
    yum-config-manager --enable remi-php73  #启用php74

    安装依赖

    rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/graphite2-1.3.10-1.el7_3.x86_64.rpm
    rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/harfbuzz-1.7.5-2.el7.x86_64.rpm
    rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/fribidi-1.0.2-1.el7_7.1.x86_64.rpm
    rpm -Uvh https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libraqm-0.7.0-4.el7.x86_64.rpm

     正式升级php

    systemctl stop httpd
    yum update php*
    systemctl start httpd

    #如果如题如下错误,请手动安装一下依赖

    rpm -Uvh https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libsodium-1.0.18-1.el7.x86_64.rpm

     

    zabbix页面报错处理:

    #能正常登录的,只是报PHP配置错误,根据提示修改/etc/php.ini文件,重启httpd即可

     

     

  • 相关阅读:
    iOS 自带系统语音识别
    对iOS10新增Api的详细探究
    iOS 技术前瞻
    iOS 之 byte NSString NSData类型转换
    iOS 文本属性
    基本力
    xamarin mac 基础知识 之 界面
    xamarin mac 之 基础知识
    xamarin mac 之 资料
    I方法 thinkphp
  • 原文地址:https://www.cnblogs.com/vcdx/p/16262161.html
Copyright © 2020-2023  润新知