Wordpress 5.3版本需要PHP7.3以上
安装了Centos 8 2019的版本。
根据网上的教程,安装了httpd,mysql 8,php等相关软件。
发现Centos 安装wordpress 并不顺利。多次试验,发现使用yum install php 版本均为7.2
而Wordpress 5.3版本需要php 7.3以上才支持。
现将几个安装步骤分享一下:
1. 删除原来的php及相关扩展
yum remove php*
2. 安装新版php 7.4
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install dnf-utils http://195.154.241.117/enterprise/remi-release-8.rpm
dnf install dnf-utils https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-8.rpm
dnf module list php
dnf module enable php:remi-7.4
dnf module reset php
dnf module enable php:remi-7.4
dnf install php php-cli php-common
dnf install php-mysql
3.reboot重启