wordpress配置安装

1、首先进行lamp框架的搭建

服务器环境:Linux Centos 7.2.1511 64位

内存:2G 

磁盘空间100GB

IP地址:10.55.10.79

进行httpd,php,php-mysql,mariadb-server的安装,安装均使用yum安装

~]# yum -y install httpd php php-mysql mariadb-server

进行防火墙和selinux的关闭

systemctl stop firewalld.service

systemctl disable firewalld.service

编辑selinux的配置文档/etc/sel/etc/selinux/config将SELINUX=选项设置为disable

setenforce=0

2、配置httpd server

创建itblog网站目录

mkdir /itblog

创建虚拟主机

 vim /etc/httpd/conf.d/virtualhosts.conf

<VirtualHost *:80>

ServerName itblog.cptw.com.cn

DocumentRoot "/itblog"

<Directory "/itblog">

Options None

AllowOverride None

Require all granted

</Directory>

</VirtualHost>

注释掉/etc/httpd/conf/httpd.conf中的DocumentRoot

进行http服务开启

systemctl start httpd

通过ssl -tnl查看80端口是否已经开启或者通过systemctl status httpd进行状态查看

 

3、配置mariadb,创建wordpress所需的数据库

root@itblog wordpress]# mysql

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 2

Server version: 5.5.50-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> GRANT ALL ON wpdb.* TO wpuser@'10.%.%.%' IDENTIFIED BY 'wppass';

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> create database wpdb

    -> ;

Query OK, 1 row affected (0.00 sec)

修改mariadb配置文档

vim /etc/my.cf

[mysqld]

skip_name_resolve = ON

开启数据库systemctl start mariadb.service

4、解压wordpress至网站目录

~]#unzip -c wordpress-4.5.3-zh_CN.zip  

~]# cp -rf wordpress /itblog

修改wordpress配置文档

~#] mv wp-config-sample.php wp-config.php

~#]vim wp-config.php

/** WordPress数据库的名称 */

[root@itblog wordpress]# vim wp-config.php

define('DB_NAME', 'wpdb');

/** MySQL数据库用户名 */

define('DB_USER', 'wpuser');

/** MySQL数据库密码 */

define('DB_PASSWORD', '######');

/** MySQL主机 */

define('DB_HOST', '10.55.10.79');

/** 创建数据表时默认的文字编码 */

define('DB_CHARSET', 'utf8');

此时网站即可正常访问并进行初始化设置即可

6、 插件安装

wordpress自带的文档编辑插件很土

安装Kindeditor For WordPress插件即可

安装插件问题

要执行请求的操作,WordPress需要访问您网页服务器的权限。 请输入您的FTP登录凭据

http://www.itbulu.com/wordpress-ftp.html

编辑wp-config-php的配置档,末行添加

define("FS_METHOD", "direct");

define("FS_CHMOD_DIR", 0777);

define("FS_CHMOD_FILE", 0777);

 

原创文章,作者:N23-苏州-void,如若转载,请注明出处:http://www.178linux.com/57393

(0)
N23-苏州-voidN23-苏州-void
上一篇 2016-11-03 23:10
下一篇 2016-11-04 11:07

相关推荐

  • 软件包管理

    软件运行与编译过程:程序源代码——预处理——-编译——-汇编——-链接 静态编译:.a 动态编译:.so 二进制程序的组成:二进制文件、库文件、配置文件、帮助文件。 包的命名:1、源代码:name -VERSION.tar.gz或bz2或xz   &nb…

    Linux干货 2017-04-23
  • 马哥linux0805作业内容

    在/date/testdir/里穿件的新文件自动属于g1组,组g2的成员如:alice能对这些新文件有读写权限,组g3的成员如:tom只能对新文件有读权限,其他用户(不属于g1,g2,g3)不能访问这个文件夹 设置user1,使之新建文件权限为rw——- 3.设置/testdir/f1的权限,使user1用户不可以读写执行,g1组可以…

    Linux干货 2016-08-11
  • grep,sed命令

         文本编辑种类:      行编辑器:sed      全屏编辑器 :nano,vi            vim :vi Mproved      模式化的编辑器: &n…

    Linux干货 2016-08-12
  • 单用户模式破解密码与密码的加密

    当你坐在一台CentOS 6主机前,但是却不知道密码,要怎样破解掉密码进入系统呢? 答案很简单: 1、启动系统,当出现如下界面时,按任意键 2、你会看到这个画面 3、敲击“a”键,执行modifiy the kernel arguments 4、键入“1”键,进入单用户模式 5、至此,你已经成功进入系统,并修改了密码! 是不是觉得Centos6的系统这样安全…

    Linux干货 2016-09-13
  • corosync + pacemaker搭建高可用mysql

    一、实验图     二、环境准备  1)确保时间同步 [root@SQL1 ~]# crontab -e  */5 * * * * /usr/sbin/ntpdate 172.16.2.15 [root@SQL2 ~]#…

    Linux干货 2015-06-30
  • RAID(重要)

    RAID   RAID(Redundent Array of Independent Disk):独立的冗余磁盘阵列,目的是为了结合多个物理驱动器组成单个单元,提高了磁盘的性能或保证数据冗余。RAID能够防止硬件的故障导致数据丢失,但是不能防止人为操作,软件故障、恶意软件感染等造成的数据丢失,因此不能替代备份。 分类有:硬件实现RAID(一是外接式磁盘阵列柜…

    Linux干货 2016-08-30