[精讚] [會員登入]
1403

[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

你可能感興趣的文章

[Centos7] 安裝sphinx+php7 在centos7上安裝sphinx,在PHP7上運作正確

[Centos8] 利用nmcli 設定ipv4 位址 Centos7之後修改網路設定變得比較麻煩一點,此篇介紹使用nmcli指令的方法

[CentOS] 改錯fstab 無法開機怎麼辦? Linux 改錯fstab 無法開機怎麼辦?

Linux ext3 系統下刪除檔案救回全記錄 今天一個不小心,下了 rm 的指令,從此奮戰一個下午,終於把檔案救回來,以下是全記錄...

[CENTOS7/8] 安裝中文字型 如何在Centos7上安裝和移除中文字型?

[CENTOS8] Failed to download metadata for repo 'appstream' 的問題 Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist的解決方法。

隨機好文

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

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

APACHE的記錄檔格式 LogFormat 語法 在APACHE中有定義一些記錄的語法模版 在 /etc/httpd/conf/httpd.conf 中: LogForm

問問題 問問題其實內涵很深,我悟了很久才懂。 有人問題的目的並不一定是想要得到答案,有時只是純粹想問問題..

海棉寶寶超泡杯演奏的sweet victory 章魚哥和海棉寶寶在超泡杯的演奏歌曲