LAMP搭建Wordpress博客

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
云数据库 RDS MySQL Serverless,价值2615元额度,1个月
简介:

准备工作

首先,先搭建完成基础的LAMP(可参照文章:华为云主机CentOS 7.3安装LAMP)环境,然后着手搭建wordpress个人博客。

1
2
3
4
5
6
7
cd /usr/local/apache2.4/htdocs
rm -rf *
wget https://cn.wordpress.org/wordpress-4.8.1-zh_CN.zip
unzip wordpress-4.8.1-zh_CN.zip 
cp -r wordpress/* .
rm -rf wordpress wordpress-4.8.1-zh_CN.zip
/usr/local/apache2.4/bin/apachectl graceful

配置数据库

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[root@plinuxos  local ] # /usr/local/mysql/bin/mysql -uroot mysql -p
Enter password: 
Reading table information  for  completion of table and column names
You can turn off this feature to get a quicker startup with -A
 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection  id  is 12
Server version: 5.6.35 MySQL Community Server (GPL)
 
Copyright (c) 2000, 2016, Oracle and /or  its affiliates. All rights reserved.
 
Oracle is a registered trademark of Oracle Corporation and /or  its
affiliates. Other names may be trademarks of their respective
owners.
 
Type  'help;'  or  '\h'  for  help. Type  '\c'  to  clear  the current input statement.
 
mysql> create database blog;
Query OK, 1 row affected (0.00 sec)
 
mysql> grant all on blog.* to  'blog' @ '127.0.0.1'  identified by  'centoslinux' ;
Query OK, 0 rows affected (0.00 sec)
 
mysql>  exit
Bye
[root@plinuxos  local ] # /usr/local/mysql/bin/mysql -ublog -pcentoslinux -h127.0.0.1
Warning: Using a password on the  command  line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection  id  is 13
Server version: 5.6.35 MySQL Community Server (GPL)
 
Copyright (c) 2000, 2016, Oracle and /or  its affiliates. All rights reserved.
 
Oracle is a registered trademark of Oracle Corporation and /or  its
affiliates. Other names may be trademarks of their respective
owners.
 
Type  'help;'  or  '\h'  for  help. Type  '\c'  to  clear  the current input statement.
 
mysql>

配置Wordpress

1、登录网页

wKiom1mFOUuAKTlRAAC3SD_QaUE345.png-wh_50

2、填写数据库信息

wKioL1mFP7fBdsSmAACSh7__COA558.png-wh_50

3、编辑wp-config.php文件,可以赋予写权限,也可以手动编辑。

wKiom1mFP7iSRbcEAACNRhqP54Y298.png-wh_50

4、填写博客相关信息

wKiom1mFQWmjJ0MxAACs04q6NuY980.png-wh_50

5、完成配置。

wKiom1mFQaWCx2KlAABI69s5ZX0167.png-wh_50

6、后台与前台

后台页面:

wKioL1mFQm7C9od4AAEDbPDOnto582.png-wh_50

前台页面:

wKiom1mFQm-TE3yHAAEibPtofpY581.png-wh_50



















本文转自Grodd51CTO博客,原文链接:http://blog.51cto.com/juispan/1953782,如需转载请自行联系原作者
相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
2月前
|
关系型数据库 MySQL Apache
怎么在树莓派上搭建WordPress博客网站,并发布到外网可访问?
怎么在树莓派上搭建WordPress博客网站,并发布到外网可访问?
|
7月前
|
Linux Docker 容器
用Docker-Compose一分钟搭建Wordpress博客系统
用Docker-Compose一分钟搭建Wordpress博客系统
122 0
用Docker-Compose一分钟搭建Wordpress博客系统
|
2月前
|
关系型数据库 MySQL PHP
wordpress博客系统详细安装部署教程
wordpress博客系统详细安装部署教程
wordpress博客系统详细安装部署教程
|
6月前
|
NoSQL 安全 PHP
手把手教你搭建WordPress博客网站并发布至公网(上
手把手教你搭建WordPress博客网站并发布至公网
175 0
|
7月前
|
域名解析 网络协议
如何为树莓派上的WordPress博客网站配置自己的域名,并且外网可访问?
如何为树莓派上的WordPress博客网站配置自己的域名,并且外网可访问?
|
4月前
|
弹性计算 关系型数据库 MySQL
带你读《弹性计算技术指导及场景应用》——2. 免费试用ECS,轻松搭建WordPress博客平台使用
带你读《弹性计算技术指导及场景应用》——2. 免费试用ECS,轻松搭建WordPress博客平台使用
188 0
|
4月前
|
前端开发
wordpress博客趣主题个人静态网页模板
博客趣wordpress页面模板适合个人博客,个人模板等内容分享。
97 0
|
9月前
|
NoSQL 安全 PHP
如何搭建WordPress博客网站,并且发布至公网上?
如何搭建WordPress博客网站,并且发布至公网上?
|
5月前
|
API 数据安全/隐私保护 Python
随手写了个博客多平台发布脚本:Python自动发布文章到Wordpress
作为一名技术博主,提高博客发布效率是我们始终追求的目标。在这篇文章中,我将分享一个基于Python的脚本,能够实现博客多平台发布,具体来说,是自动发布文章到WordPress。通过这个简单而高效的脚本,我们能够省去繁琐的手动发布步骤,提升工作效率。
随手写了个博客多平台发布脚本:Python自动发布文章到Wordpress
|
6月前
|
网络安全 数据库 数据安全/隐私保护
手把手教你搭建WordPress博客网站并发布至公网(下)
手把手教你搭建WordPress博客网站并发布至公网
84 0