1、搭建php-fpm工作方式的LAMP环境,实现wordpress正常访问
实验环境
系统:CentOS7
IP:192.168.253.128
http版本:2.4
关闭防火墙和selinux
systemctl stop firewalld
setenforce 0
安装httpd2.4
cd /usr/local/src
wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.34.tar.gz ##这是官网的httpd2.4tar包地址
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.6.3.tar.gz ##官网的apr包
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.6.1.tar.gz ##官网的apr-util地址
tar -xf apr-1.6.3.tar.gz
更多请访问http://iis3.com/server/
tar -xf apr-util-1.6.1.tar.gz
tar -xf httpd-2.4.34.tar.gz
mv apr-1.6.3 /usr/local/src/httpd-2.4.34/srclib/apr
mv apr-util-1.6.1 /usr/local/src/httpd-2.4.34/srclib/apr-util
cd httpd-2.4.34
yum install pcre pcre-devel openssl openssl-devel gcc gcc-devel gcc-c++ expat-devel -y
./configure –prefix=/usr/local/apache