傲气我 發表於 2025-6-13 00:00:00

WordPress宝塔安装图解教程

<p>使用宝塔的用户越来越多,使用云主机的朋友,宝塔几乎成了标配,下面简站WordPress为大家写一个用宝塔搭建WordPress网站详细教程,以图文的形式一步一步按步骤讲明白搭建过程。</p>
<p>1、第一步:添加网站</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-25061316331T05.png" /></p>
<p>登陆宝塔后台,找到&ldquo;网站&rdquo;,点击进入后,点&ldquo;添加站点&rdquo;,输入域名后,选择创建&ldquo;FTP&rdquo;和&ldquo;数据库&rdquo;,点&ldquo;确定&rdquo;网站就创建成功了。(&ldquo;数据库&rdquo;必须得创建,&ldquo;FTP&rdquo;可创建,也可以不创建。另外,如果是安装了多个版本的PHP,可以选择PHP的版本。WordPress目前的最新版是6.5,建议使用8.0版本的PHP。)</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-25061316331U54.png" /></p>
<p>网站添加成功后,需要对网站进行,基础的设置,比如,伪静态设置,如上图所示。</p>
<p>点&ldquo;伪静态&rdquo;,在出来的选项中选择&ldquo;wordpress&rdquo;</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-25061316331aH.png" /></p>
<p>出现如所所求代码时,&ldquo;保存&rdquo;即可成功设置伪静态。</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163319120.png" /></p>
<p>SSL证书添加,将该域名的SSL证书相应的代码,复制到密钥(KEY)和证书(PEM格式)中,&ldquo;保存并启用证书&rdquo;即可成功安装SSL证书。</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163319236.png" /></p>
<p>SSL安装成功后,可以查看到对应的域名信息和到期日期。</p>
<p>2、第二步:上传wordpress程序</p>
<p>到wordpress官方,下载最新版的wordpress程序:</p>
<p>https://cn.wordpress.org/download/</p>
<p>注意官方的环境要求:官方推荐 PHP 7.4+ 以及 MySQL 版本 8.0+ 或 MariaDB 版本 10.4+。建议PHP版使用php8.0。</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-2506131633202L.png" /></p>
<p>下载完成后在宝塔面板中找到&rdquo;文件&rdquo;,选择&ldquo;wodepress.com&rdquo;文件夹,打开文件夹后,将下载好的wordpress程序上传到该目录。</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163320349.png" /></p>
<p>上传成功后</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163321D1.png" /></p>
<p>&ldquo;解压&rdquo;该文件</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163321Y7.png" /></p>
<p>解压后的文件在&ldquo;wordpress&rdquo;文件夹中,将该文件夹中的全部文件复制到网站根目录中</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163321H8.png" /></p>
<p>从根目录中删除wordpress文件夹和wordpress程序文件包.zip文件</p>
<p>3、第三步:安装wordpress</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163322562.png" /></p>
<p>输入网站域名www.wodepress.com会出现如图所显的安装界面</p>
<p>点&rdquo;现在就开始安装&ldquo;</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163322I5.png" /></p>
<p>在出现的界面里录入相应的数据库帐号信息&rdquo;数据库名&ldquo;、&rdquo;数据库帐号&ldquo;、&rdquo;数据库密码&ldquo;,并&rdquo;提交&ldquo;。</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163322519.png" /></p>
<p>按提示操作即可,点&rdquo;运行安装程序&ldquo;</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-2506131633231K.png" /></p>
<p>录入网站的标题、管理员用户名、密码和邮箱后点&rdquo;安装WordPress&ldquo;即可。</p>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250613/1-250613163323U4.png" /></p>
<p>至此在宝塔搭建wordpress网站的步骤全部完成</p>
<p>接下来就是输入自己的域名/wp-admin,登陆到网站的后台,进行wordpress网站的其它设置。</p>
<p>安装完成之后,是不是觉得wordpress默认界面有点丑陋?别急,那是因为缺少wordpress主题的安装。</p>
<p></p>
頁: [1]
查看完整版本: WordPress宝塔安装图解教程