利用清华yum源,安装php7.3+wordpress5.2+opcache+event模式
环境准备两台主机
一台 apache + php7.3
一台 mariadb
#安装httpd 2.4 和 php 7.3 相关包 yum install https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-7.rpm vim /etc/yum.repos.d/remi-php73.repo yum install httpd php73-php-fpm php73-php-mysqlnd php73-php-opcache -y #配置php为UDS模式 vi /etc/opt/remi/php73/php-fpm.d/www.conf listen=/var/run/php.sock listen.owner = apache listen.group = apache listen.mode = 0660 #配置httpd 支持 php 的fastcgi模式 vim /etc/httpd/conf.d/test.conf DirectoryIndex index.php ProxyRequests Off ProxyPassMatch ^/(.*.php)unix:/var/run/php.sock|fcgi://localhost/var/www/html/1 systemctl start httpd php73-php-fpm.service #准备wordpress程序文件 mkdir /data/ unzip wordpress-5.2.3-zh_CN.zip mv wordpress/ /var/www/html/ setfacl –R –m u:apache:rwx /var/www/html/wordpress/ #或者chown –R apache.apache /var/www/html/wordpress #在另一台主机上安装mariadb yum install mariadb-server systemctl start mariadb mysql -uroot mysql> create database wordpress; mysql> grant all on wordpress.* to wpuser@'192.168.8.%' identified by "magedu"; mysql> flush privileges; #打开浏览器访问 http://httpd服务器IP/wordpress,进行初始化和安装



