[精讚] [會員登入]
1450

[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

你可能感興趣的文章

[APACHE] PHP<5.5及 PHP>=5.5 安裝APC php5.5版後的apc只能手動安裝,此文包含php<5.5及php>=5.5兩種安裝方法

[postfix] open /etc/postfix/main.cf: Permission denied 等錯誤 遇到開啟 /etc/postfix/main.cf: Permission denied 等錯誤解決

[Linux] 怎麼修改終端機console下ls的顏色? 在linux下的ls使用--color的參數時,雖然目錄有上色,但是顏色是深藍色很難辨識,要怎麼修改呢?

[Linux] 刪除last/lastb登出入記錄 linux shell的登出入記錄

[Centos7] 安裝 semanage (selinux工具程式) 安裝selinux的工具程式 semanage

[Rocky Linux] 安裝gitlab gitlab+docker compose+ nginx 安裝Gitlab並結合nginx當網頁伺服器

隨機好文

[jQuery] select 元件的取值及給值 html中的元件select,在jquery中要如何使用?

UTF8中文字/全形一覽 快速查詢urf-8的中文字,共計13246中文字(5401常用字+7652罕用字+日文或編號),292全形符號,27半形符號。

[Win7] 燒錄 iso 檔 在Windows7 中內建燒錄程式,可以直接把檔案拉到光碟機裡,再執行燒錄。

世紀帝國征服者新版本--被遺忘的帝國 世紀帝國征服者新版本--被遺忘的帝國 世紀二代的征服者是精典遊戲中的精典,aofe更好玩...

魔球中小女孩唱的歌 The show 魔球中小女孩唱的歌 The show