ox01 安装wordpress
环境 centos 7
1.apache
yum install httpd
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
2.mariadb
yum -y install mariadb-server mariadb
systemctl start mariadb
mysql_secure_installation
3.php7.2
yum-config-manager --enable remi-php72
yum -y install php php-opcache
yum -y install php-mysqlnd php-pdo
yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-soap curl curl-devel
systemctl restart httpd.service
systemctl start httpd.service
systemctl stop httpd.service
systemctl start mariadb.service
sudo systemctl enable mariadb.service
网站目录 /var/www/html/