安装php7.2

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm 
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum remove php-common -y  
yum install -y php72w php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring

启动httpd systemctl start httpd

下载安装wordpress

tar xf wordpress-5.2.3-zh_CN.tar.gz cd /var/www/html/ mv /root/wordpress ./wordpress 创建数据库的支持

create database wordpress;
create user wpuser@localhost identified by 'lxq';
grant all privileges on wordpress.* to wpuser@localhost identified by 'lxq';

安装过程:

安装phpadmin

unzip phpMyAdmin-4.9.0.1-all-languages.zip 
mv phpMyAdmin-4.9.0.1-all-languages ./phpadmin
mv phpadmin 
mv phpadmin/ /var/www/html/

访问http://192.168.159.131/phpadmin/