LAMP环境搭建wordpress

本文提供了一步步更新的LAMP环境搭建WordPress教程,针对旧教程中PHP版本过低的问题,详细介绍了如何在CentOS上部署Apache、MariaDB和PHP服务,确保兼容最新版WordPress。
摘要由CSDN通过智能技术生成

翻找网上的教程基本都是之前的
很多都不匹配,比如PHP版本过低不支持新版wordpress
这里做一个更新,每一步都有详细说明


1.部署apache服务

#安装http服务
[root@xiudaochengxian ~]# yum -y install httpd
#启动http服务,并加入开机启动项
[root@xiudaochengxian ~]# systemcel start httpd
[root@xiudaochengxian ~]# systemcel enable httpd
#查看http服务状态
[root@xiudaochengxian ~]# systemcel status httpd
#打开浏览器输入本机地址
出现apache默认界面即为安装成功
#关闭防火墙
[root@xiudaochengxian ~]# systemcel stop firewalld

2.部署MariaDB服务

也可用MySQL,但是MariaDB安装使用都方便

MariaDB详细安装步骤点此

#安装mariadb
[root@xiudaochengxian ~]# yum -y install mariadb mariadb-server
#初始化数据库
[root@xiudaochengxian ~]# mysql_secure_installation
#启动数据库服务,并加入开机启动项
[root@xiudaochengxian ~]# systemcel start mariadb
[root@xiudaochengxian ~]# systemcel enable mariadb
#查看mariadb服务启动状态
[root@xiudaochengxian ~]# systemcel status mariadb

3.部署PHP服务

分界线下面是升级操作,非必须

#安装php和php-mysql(如果未安装此包,打开wordpress可能会报错)
[root@xiudaochengxian ~]# yum -y install php php-mysql
  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值