[精讚] [會員登入]
1323

[Centos6] 安裝wordpress

Centos 6下安裝wordpress,非常簡單

分享此文連結 //n.sfs.tw/10262

分享連結 [Centos6] 安裝wordpress@新精讚
(文章歡迎轉載,務必尊重版權註明連結來源)
2019-10-18 17:34:02 最後編修
2016-11-20 22:55:42 By 張○○
 

自動目錄

OS

CentOS release 6.8 (Final)
Server version: Apache/2.2.15 (Unix)
PHP 5.3.3
mysql  Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using readline 5.1

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

下載

https://tw.wordpress.org/install/

2016.11.20的版本為4.6.1

安裝

1. 解壓到目錄

# tar zxvf wordpress-4.6.1-zh_TW.tar.gz

2. 設定 selinux

# chcon -R -t httpd_sys_content_t wordpress

3. 用瀏覽器開啟你的目錄

填入資料庫資料,資料庫及使用者權限等要事先設定好

接下來頁面會說他無法寫入資料,那是一定的,請把他反白的內容複製

4. 建立設定檔,把你複製的內容貼入

進到解壓的目錄中

# cd /path/to/wordpress

# touch wp-config.php
# vi wp-config.php

5. 接下來會要你設定網站名稱、你的姓名(登入的帳戶名)、密碼、email(忘記密碼時用)、搜尋引擎那個不要勾

6. 建立上傳目錄

# cd wp-content/

# mkdir uploads

# chmod 777 uploads/

7. 加上SELINUX的type

# chcon -t httpd_sys_rw_content_t uploads/

 

恭禧你,這樣就可以使用了....

 

 

END

你可能感興趣的文章

[CentOS6] 設定 sendmail Centos6上設定sendmail,基本上sendmail會設定多半是為了寄系統信和收垃圾信(喂!!?)

Centos7 的ifconfig和netstat Centos7 和RHEL 7 最小安裝中竟然沒有ifconfig和netstat?原來centos/rhel準備把這兩個指令作廢,那怎麼辦?

[Centos7] 新的防火牆firewalld Centos7新的防火牆firewalld 和前面的iptables有很大的不同

Centos7 安裝 docker-composer 及使用 docker compose 是使用docker的利器,可以讓很多的指令用文檔的方式載入。

[Centos7] 安裝php套件管理程式Composer+ Codeignioter3 很多人在用的套件管理程式 Composer+ Codeignioter3+ 指定安裝目錄

[Rocky9] LVM擴大磁碟容量 Rocky Linux 9 擴大容量完整流程(LVM / 非 LVM 都包含) Step 0:在 VM 平台先加大虛擬磁

隨機好文

[bc] linux 的計算機 bc 設定小數位數、計算π、次方根 linux 的計算機 bc 設定小數位數、計算π、次方根

維修冰箱 維修冰箱

[CKeditor4] 修改調色盤 修改ckeditor預設的調色盤

[HTLM5] 表單color、email、url、search、tel輸入類型 介紹HTML5好用的輸入類型:color、email、url,以及兩個形同雞肋的類型search、tel..

[HTLM5] 表單時間日期date/time輸入類型 介紹HTML5和時間有關的輸入類型date/datetime/datetime-local/month/time/week