背景:等保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
即可