Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例

          Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例

                                                作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

 

 

 

一.安装依赖包及数据库授权

博主推荐阅读:
  https://www.cnblogs.com/yinzhengjie/p/12019502.html

 

二.布署WordPress博客程序

1>.下载wordpress软件

官方网站:
    https://cn.wordpress.org/

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第1张图片

2>.解压缩WordPress博客程序到网页站点目录下 

[[email protected] ~]# yum -y install unzip zip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * epel: mirrors.yun-idc.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
Resolving Dependencies
--> Running transaction check
---> Package unzip.x86_64 0:6.0-20.el7 will be installed
---> Package zip.x86_64 0:3.0-11.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                      Arch                          Version                            Repository                   Size
=================================================================================================================================
Installing:
 unzip                        x86_64                        6.0-20.el7                         base                        170 k
 zip                          x86_64                        3.0-11.el7                         base                        260 k

Transaction Summary
=================================================================================================================================
Install  2 Packages

Total download size: 430 k
Installed size: 1.1 M
Downloading packages:
(1/2): unzip-6.0-20.el7.x86_64.rpm                                                                        | 170 kB  00:00:00     
(2/2): zip-3.0-11.el7.x86_64.rpm                                                                          | 260 kB  00:00:10     
---------------------------------------------------------------------------------------------------------------------------------
Total                                                                                             40 kB/s | 430 kB  00:00:10     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : zip-3.0-11.el7.x86_64                                                                                         1/2 
  Installing : unzip-6.0-20.el7.x86_64                                                                                       2/2 
  Verifying  : unzip-6.0-20.el7.x86_64                                                                                       1/2 
  Verifying  : zip-3.0-11.el7.x86_64                                                                                         2/2 

Installed:
  unzip.x86_64 0:6.0-20.el7                                        zip.x86_64 0:3.0-11.el7                                       

Complete!
[[email protected] ~]# 
[[email protected] ~]# yum -y install unzip zip
[[email protected] ~]# unzip wordpress-5.0-zh_CN.zip 
[[email protected] ~]# 
[[email protected] ~]# ll
total 15916
-rw-r--r-- 1 root root  4323896 Dec 11 09:51 phpMyAdmin-4.0.10.20-all-languages.tar.xz
drwxr-xr-x 5 root root     4096 Dec 10  2018 wordpress
-rw-r--r-- 1 root root 11966441 Dec 11 09:51 wordpress-5.0-zh_CN.zip
[[email protected] ~]# 
[[email protected] ~]# mv wordpress /var/www/html/
[[email protected] ~]# 
[[email protected] ~]# ll
total 15912
-rw-r--r-- 1 root root  4323896 Dec 11 09:51 phpMyAdmin-4.0.10.20-all-languages.tar.xz
-rw-r--r-- 1 root root 11966441 Dec 11 09:51 wordpress-5.0-zh_CN.zip
[[email protected] ~]# 

3>.配置wordpress与数据库相连接

[[email protected] ~]# cd /var/www/html/wordpress/
[[email protected] /var/www/html/wordpress]# 
[[email protected] /var/www/html/wordpress]# 
[[email protected] /var/www/html/wordpress]# ll
total 196
-rw-r--r--  1 root root   418 Sep 24  2013 index.php
-rw-r--r--  1 root root 19935 Jan  6  2018 license.txt
-rw-r--r--  1 root root  6989 Dec 10  2018 readme.html
-rw-r--r--  1 root root  5458 May  1  2018 wp-activate.php
drwxr-xr-x  9 root root  4096 Dec 10  2018 wp-admin
-rw-r--r--  1 root root   364 Dec 19  2015 wp-blog-header.php
-rw-r--r--  1 root root  1889 May  2  2018 wp-comments-post.php
-rw-r--r--  1 root root  2735 Dec 10  2018 wp-config-sample.php
drwxr-xr-x  5 root root  4096 Dec 10  2018 wp-content
-rw-r--r--  1 root root  3669 Aug 20  2017 wp-cron.php
drwxr-xr-x 19 root root 12288 Dec 10  2018 wp-includes
-rw-r--r--  1 root root  2422 Nov 20  2016 wp-links-opml.php
-rw-r--r--  1 root root  3306 Aug 22  2017 wp-load.php
-rw-r--r--  1 root root 37286 Oct 21  2018 wp-login.php
-rw-r--r--  1 root root  8048 Jan 11  2017 wp-mail.php
-rw-r--r--  1 root root 17421 Oct 23  2018 wp-settings.php
-rw-r--r--  1 root root 30091 Apr 29  2018 wp-signup.php
-rw-r--r--  1 root root  4620 Oct 23  2017 wp-trackback.php
-rw-r--r--  1 root root  3065 Aug 31  2016 xmlrpc.php
[[email protected] /var/www/html/wordpress]# 
[[email protected] /var/www/html/wordpress]# cp wp-config-sample.php wp-config.php        
[[email protected] /var/www/html/wordpress]# 
[[email protected] /var/www/html/wordpress]# vim wp-config.php           #如下图所示,编辑数据库相关配置信息

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第2张图片

4>.访问WordPress的WebUI的安装界面,如下图所示,填写相应的信息

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第3张图片

5>.安装WordPress成功

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第4张图片

    也可以使用PhpMyAdmin的WebUI查看wordpress数据库,如下图所示。

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第5张图片

6>.安装成功后,点击"登录"就会进入到如下图所示到界面,输入咱们在安装界面配置到密码登录即可

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第6张图片

7>.wordpress登录成功

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第7张图片

 

三>.修改wordpress的默认主题

1>.访问wordpress博客的默认主题页面

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第8张图片

2>.登录博客系统,如下图所示,点击"外观"并启用自己喜欢的主题

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第9张图片

3>.启用主题成功

Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例_第10张图片

4>.再次访问wordpress博客的默认主题页面

5>.至此,wordpress博客搭建成功

  workpress博客有很多有趣的插件,感兴趣的小伙伴可以试着安装一下,当然也有很多主题,尝试点点鼠标就能对该软件有个大致了解。

  明人不说暗话,你完全可以买台便宜点的阿里云服务器,用该软件搭建一个自己的博客系统。

你可能感兴趣的:(Httpd服务进阶知识-基于Apache Modele的LAMP架构之WordPress案例)