搭建php-fpm工作方式的LAMP环境,实现wordpress正常访问

本文详细介绍了如何在CentOS7系统上搭建以php-fpm工作方式的LAMP环境,包括安装httpd2.4、配置虚拟主机、编译安装php、设置php-fpm连接以及安装和配置mysql,最终成功实现wordpress网站的正常访问。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值