wordpress是全球用户数量最大的开源网站网站程序,这篇文章就详细的教大家使用宝塔来搭建wordpress,教程十分详细且简单,目前最快、最简单、最不会踩坑的方式!就算是毫无建站经验的小白,看着一篇文章也就够了!
![图片[1]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408143108517-image.png)
首先你需要云服务器和安装宝塔
所需环境
- Nginx(推荐1.20+)
- MySQL(最低MySQL 5.5.5,推荐MySQL8.0+)
- PHP(最低PHP7.2,推荐PHP8.0+,选择主题推荐的环境)
- Redis
WordPress 仍然可以在 PHP7.2+ 以及 MySQL 5.5.5+ 上工作。 然而,这些版本已经结束了它们的官方支持周期,并且可能使您的站点暴露于安全漏洞之中。
创建网站
在宝塔面板点击网站,按下图操作,同时要确保已经将要使用的域名解析到你的服务器中
![图片[2]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408122559735-image.png)
点击指定网站目录
![图片[3]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408123641784-image.png)
全选并删除
![图片[4]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408123741256-image.png)
点击远程下载,从URL下载,填入以下地址并点击确定
https://cn.wordpress.org/latest-zh_CN.zip
![图片[5]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408123940519-image.png)
解压压缩包
![图片[6]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408124242486-image.png)
删除压缩包后进入wordpress文件夹
![图片[7]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408124347671-image.png)
全选并剪切
![图片[8]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408124500547-image.png)
回到网站根目录
![图片[9]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408124552998-image.png)
粘贴刚才剪切的所有文件
![图片[10]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408124643913-image.png)
粘贴后,这个空文件夹就无用了,点击删除
![图片[11]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408124749437-image.png)
配置网站环境
进入软件商店,设置PHP7.4,安装图中所示扩展(fileinfo,opcache,redis,imagemagick,exif)
![图片[12]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408131006188-image.png)
按下图设置伪静态,选择wordpress即可
![图片[13]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408131840469-image.png)
设置SSL证书,最好使用付费证书,因为付费SSL证书兼容的浏览器会更多,免费证书可能在部分浏览器依旧提示不安全,当然也可以使用免费的Let's Encrypt,不过有效期只有一个月。
如果想使用付费SSL证书可以前往玄灵云联系客服了解详情,购买证书会帮您部署好。
![图片[14]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408132054773-image.png)
安装wordpress
浏览器访问创建网站时所用的域名
![图片[15]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408135217918-image.png)
前往宝塔面板复制之前创建的数据库名和密码
![图片[16]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408135308754-image.png)
填写重要信息
- 数据库名,宝塔中复制的地址,在宝塔中与用户名一致
- 用户名,宝塔中复制的地址,在宝塔中与数据库名一致
- 密码,宝塔中复制的数据库密码
- 数据库主机,默认即可,一般为
localhost,127.0.0.1也是一样的都指向本地数据库 - 表前缀,一般不改
![图片[17]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408135426291-image.png)
开始运行
![图片[18]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408135955846-image.png)
填写网站标题和管理员信息并开始安装
![图片[19]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408140203616-image.png)
前往登录页
![图片[20]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408140310218-image.png)
填写用户名和密码登录
![图片[21]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408140346761-image.png)
配置网站
安装redis插件,你也可以使用这个插件
![图片[22]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408140630997-image.png)
启用插件
![图片[23]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408140715693-image.png)
刷新页面可看到顶部有入口了,进入插件启用功能
![图片[24]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408140915736-image.png)
WP Super Cache插件
安装WP OPcache插件(非必须)
![图片[25]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408141814618-image.png)
启用功能
![图片[26]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408141753148-image.png)
设置固定链接为/%post_id%.html方便SEO
![图片[27]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408142100609-image.png)
已经差不多了,该设置的,也都设置了
相关问题
编辑与设置分类,建议使用英语,空格部分用英文连字符
![图片[28]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408142508346-image.png)
标签管理,建议使用Wenprise Pinyin Slug插件,自动将中文标签转为拼音别名
![图片[29]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408142752395-image.png)
主题启用,将主题压缩包上传并解压到/wp-content/themes目录下,在到wordpress中启用即可
![图片[30]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408143328834-image.png)
![图片[31]-在宝塔面板中部署wordpress中文版包含配置以及使用-王先生笔记](https://wxsnote.cn/wp-content/uploads/2024/04/20240408143229723-image.png)
主题推荐
2024-06-27 12:41:18,某些文章具有时效性,若有错误或已失效,请在下方留言或加入QQ群:
399019539 联系群主反馈。注意一些链接无法访问可能是你网络的原因,如Github,并非资源地址失效。
登录后可快速点此处反馈,点击登录








![WordPress网站开启Nginx静态加速提高并发[其它程序也可借鉴]-王先生笔记](https://wxsnote.cn/wp-content/uploads/2025/12/20251231174946136-6f2dcc0ff91b1bd6cfb4278d1cb0fd7f.jpg)








请登录后查看评论内容