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.www58058.com/57393

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

相關推薦

  • Linux基礎命令 2017-07-12日課

    bc, lscpu, free, dd, rpm, lsblk, ldd, file, hexdump, uname, sha1sum, sha256sum, md5sum bc an arbitrary precision language scale=NUM ; precision quit lscpu display information about…

    Linux干貨 2017-07-12
  • Redis 3.0.0正式版發布,全新的分布式高可用數據庫

    Redis 3.0.0 正式版終于到來了!最重要的新特性是集群(Redis Cluster),提供Redis功能子集(比如不支持多數據庫)的分布式、容錯的實現(最多支持1000結點)。   Salvatore 'antirez' Sanfilippo在Google Groups里表示,這是Redis的重要時刻?!拔蚁嘈沤裉斓腞edis 3.0…

    Linux干貨 2015-04-03
  • 周期性計劃任務crond講解

    crond是Linux或者unix系統的作業調度程序。運用它,在設定的時間段周期性執行某個命令或腳本。下文的例子均在centos 7.3上測試。一、crond組件 如果centos7.3最小化安裝,不一定存在crond服務,需要手動安裝,安裝之后手動啟動并設置以后自行開機啟動。 主要有cronie、cronie-anacron、crontabs三個程序包。 …

    Linux干貨 2017-03-27
  • 登峰需有造極之心

    年輕武僧與高僧間一小段對話 年輕武僧:大師,我怎么才能達到您這種層次…… 高僧:如果你沒有像我那樣的習練,我說什么你又怎能明白。     不管是就業形勢、性格或者愛好,還是其他的種種因素。自己已經選擇Linux系統運維這條路,就應該腳踏實地,刻苦練習。將Linux運維作為自己的事業不斷地做的越來越好。  &n…

    Linux干貨 2016-10-27
  • Redis學習手冊(持久化)

    一、Redis提供了哪些持久化機制:     1). RDB持久化:     該機制是指在指定的時間間隔內將內存中的數據集快照寫入磁盤。         2). AOF持久化:     該機制將以日志…

    Linux干貨 2015-02-25
  • 馬哥教育網絡19期+第四周練習博客

    1、復制/etc/skel目錄為/home/tuser1,要求/home/tuser1及其內部文件的屬組和其它用戶均沒有任何訪問權限。  cp /etc/skel /home/tuser1  chmod -R  700 /home/tuser1 2、編輯/etc/group文件,…

    Linux干貨 2016-06-19
欧美性久久久久