[精讚] [會員登入]
1360

[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

你可能感興趣的文章

[CentOS 8] 無法使用: No URLs in mirrorlist error Centos8 沒辦法使用yum安裝軟體的解決方法

[Linux] 使用tarball安裝下載PERL的tar檔模組 在Linux下,perl下載的pm模組,不使用cpan的安裝方法

[LINUX] 利用 usermod 修改使用者的參數和資料 使用指令 usermod 修改使用者的參數和資料

[DNS] 把Named 產生的log放到遠端伺服器 把named的log放到log server以符合資安的需求。

[Linux] 安裝rsync (selinux 的設定) 在selinux enforcing 的情況下安裝rsync

[CentOS] 新增修改及刪除使用者 新增、修改、刪除使用者和群組

隨機好文

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

Linux shell 的date表示法 linux下SHELL中的date表示法

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

[CodeIgniter3] 解決無法上傳特定檔案(.sb2)的問題 上傳時出現The filetype you are attempting to upload is not allowed,要怎麼解決?

外匯課程經驗 有天遇到某個朋友的正妹朋友,說她有個很棒的外匯投資課程,要我們去聽,只收場地費200大洋。她又說續效最差一個月也有1%,誰還在苦哈哈上班?