[精讚] [會員登入]
1285

[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

你可能感興趣的文章

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

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

使用dnstop 來觀察dns運作的情形 dnstop是非常方便的工具,可以觀察即時的dns查詢。 安裝 yum install dnstop

[Centos7] 安裝phpMyAdmin Centos 7有新的方式可以安裝phpmyadmin,不必再採用過去的tarball安裝法。

[Centos7] selinux 修改網頁連線的埠號 想把網頁改到非標準的80埠,在selinux上要如何修改?

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

隨機好文

HP SAS硬碟leds燈號說明 HP SAS硬碟leds燈號(hp g7/g6系統適用)說明

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

[PHP] 檢查IP是否在某個網段內 mtachcidr 要檢查IP是否在某個網段內,要寫幾行?10行?5行? 不用,只要2行。以下是我寫的 code /** * matchCI

[大型機台] 熱血高校躲避球 多少少年時光歲月耗在這個遊戲上,二十幾年前的那個時光,唯一想做的事就是把吃飯錢省下來拿去打一場五塊錢的電動,就算是沒錢也

[Mysql/MariaDB] 查看資料庫所占空間 查看資料庫在磁碟中所占空間