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

相关推荐

  • 马哥教育网络班21期-第六周课程练习

    请详细总结vim编辑器的使用并完成以下练习题1、复制/etc/rc.d/rc.sysinit文件至/tmp目录,将/tmp/rc.sysinit文件中的以至少一个空白字符开头的行的行首加#; #cp /etc/rc.d/rc.sysinit /tmp #vim /tmp/rc.sysinit :%s/^[[:space:]]/#…

    Linux干货 2016-08-15
  • 22期第七周课堂练习

    1、创建一个10G分区,并格式为ext4文件系统;        (1) 要求其block大小为2048, 预留空间百分比为2,   卷标为MYDATA, 默认挂载属性包含acl;        (2)   挂载至/data/mydata目录,要求挂载时禁止程…

    Linux干货 2016-10-09
  • Linux软件包管理

    一、rpm包管理工具 1、rpm包简介 rpm是redhat的软件包管理器。rpm包管理器全称rpm: Redhat Package Manager RPM  Package Manager。它的软件包后缀也为.rpm。除此外,debian,deb文件有dpkg包管理器。 rpm包的命名方式: 源代码:name-version.tar.{gz|bz…

    Linux干货 2016-08-21
  • 第十三周作业

    “1、建立samba共享,共享目录为/data,要求:(描述完整的过程)   1)共享名为shared,工作组为magedu;   2)添加组develop,添加用户gentoo,centos和ubuntu,其中gentoo和centos以develop为附加组,ubuntu不属于develop组;密码均为用户名; …

    Linux干货 2017-08-13
  • linux文件权限详解

    基本命令 1.cut : cat /etc/passwd | cut -d’:’ -f7| uniq -c| sort -nr 2.authconfig 修改加密方式 –passalgo=sha256 — update 3.scp 上传文件 -r dir ip:path 传目录 file ip:path传文件 …

    Linux干货 2017-04-03
  • Centos 7 DNS配置及理论详解

    DNS是什么及BIND讲解内容 域名系统(英文:Domain Name System,缩写:DNS)是internet的一项服务。它作为将域名和IP地址相互映射服务,能够使人更方便地访问互联网。DNS使用TCP和UDP端口53。当前,对于每一级域名长度的限制是63个字符,域名总长度则不能超过253个字符。讲解内容:    DNS名称解析方…

    Linux干货 2016-04-25