天天看點

在lamp環境下搭建多種論壇(下)

一、介紹:

    PHPWind(簡稱:PW)是一個基于PHP和MySQL的論壇程式,是國内最受歡迎的通用型論壇程式之一。:

    WordPress是一種使用PHP語言開發的部落格平台,使用者可以在支援PHP和MySQL資料庫的伺服器上架設自己的論壇。

    Crossday Discuz! Board(簡稱 Discuz!)是北京康盛新創科技有限責任公司推出的一套通用的社群論壇軟體系統。

二、實驗環境:

為了便于登入論壇的站點,我們使用hosts進行DNS解析:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_13461597352lDI.png"></a>

各種論壇對應的安裝包:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159739LA9X.png"></a>

三、在LAMP環境下phpwind的搭建:

1 、配置phpwind安裝所需的環境:

1)改變Apache的預設編碼方式:

[root@localhost ~]# vim /etc/httpd/conf/httpd.conf

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159739fxjI.png"></a>

2)為phpwind站點配置一個虛拟主機:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159743oYJL.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159743WurD.png"></a>

3)編輯一個phpwind站點的别名和相應的目錄安全性:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159743YqEv.png"></a>

4)手工建立一個phpwind資料庫:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159747Uwhv.png"></a>

5)給mysql設定一個密碼:

[root@localhost ~]# mysqladmin -u root -p password '123'

Enter password:

[root@localhost ~]#

2 、解壓縮phpwind安裝包:

[root@localhost ~]# unzip phpwind_GBK_8.3.zip

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159753yI5Q.png"></a>

3 、将phpwind程式目錄移動到/var/www目錄下:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159753bHyV.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159757nx8N.png"></a>

4 、改變phpwind站點主目錄下,三個相應的目錄的權限:

    attachment、data 、html

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159757keBD.png"></a>

5 、重新開機httpd服務:

[root@localhost ~]# service httpd restart

Stopping httpd:                                            [  OK  ]

Starting httpd:                                            [  OK  ]

6 、通過http通路phpwind站點的安裝頁面:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_134615975721lf.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159758Xkw9.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159759tGJB.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159765byE2.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159766WvTR.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159766aqkE.png"></a>

7 、删除phpwind站點的安裝檔案:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_13461597704wRa.png"></a>

四、在LAMP環境下wordpress的搭建:

1 、配置wordpress安裝所需的環境:

1)為wordpress站點配置一個虛拟主機:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159770Q39o.png"></a>

2)編輯一個wordpress站點的别名和相應的目錄安全性:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159770WeiK.png"></a>

3)手工建立一個wordpress資料庫:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159792jx3Y.png"></a>

2 、解壓縮wordpress安裝包:

[root@localhost ~]# unzip wordpress_v3.0.5-zh_CN.zip

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159792rYnE.png"></a>

3 、将wordpress站點目錄移動到/var/www目錄下:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159796C7PV.png"></a>

4 、通過wordpress的樣例配置檔案産生一個主配置檔案:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159796xwEY.png"></a>

5 、更改wp-config.php檔案的權限:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_13461597978rp2.png"></a>

6 、配置wp-config.php:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159797pXAv.png"></a>

7 、重新開機httpd服務:

[root@localhost wordpress]# service httpd restart

[root@localhost wordpress]#

8 、通路wordpress站點,并安裝wordpress:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159797Mw0t.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159798TTSX.png"></a>

安裝會比較慢,請耐心等待!

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159798Agk7.png"></a>

使用管理者身份登入wordpress站點:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159799CsZO.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159799NAsd.png"></a>

9 、對wordpress進行桌面管理:

1)更改主題上傳檔案的權限:

[root@localhost wordpress]# chmod o+w wp-content

2)從網絡上進行主題安裝:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159800gftf.png"></a>

3)将上傳的主題複制到wordpress站點的主題檔案目錄中:

[root@localhost themes]# unzip Stratex.zip

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159800tS1S.png"></a>

4)使用管理者帳号登入:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159801SVk0.png"></a>

<a href="http://blog.51cto.com/attachment/201208/213155633.png" target="_blank"></a>

五、在LAMP環境下discuz的搭建:

1 、配置discuz安裝所需的環境:

1)為discuz站點配置一個虛拟主機:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159811ROc7.png"></a>

2)編輯一個discuz站點的别名和相應的目錄安全性:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159811rCP8.png"></a>

3)手工建立一個discuz資料庫:

<a href="http://blog.51cto.com/attachment/201208/213218807.png" target="_blank"></a>

2 、解壓Discuz安裝包:

[root@localhost ~]# unzip Discuz_X2_SC_GBK.zip

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_13461598123kHN.png"></a>

3 、将discuz的檔案移動到/var/www目錄下:

[root@localhost ~]# mv upload/ /var/www/discuz

4 、更改discuz站點目錄下相應檔案的權限【777】:

[root@localhost ~]# cd /var/www/discuz/

[root@localhost discuz]# chmod -R 777 config/

[root@localhost discuz]# chmod -R 777 data/

[root@localhost discuz]# chmod -R 777 uc_client/data/

[root@localhost discuz]# chmod -R 777 uc_server/data/

[root@localhost discuz]#

6 、登入discuz站點進行安裝:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159812ovPZ.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159813ha1A.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159813Rf4z.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159814Wq8v.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159815hEsf.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159815R7QO.png"></a>

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159816yVxa.png"></a>

六、測試:

1 、登入路phpwind論壇:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159816abb0.png"></a>

2 、登入路wordpress論壇:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159820po6M.png"></a>

3 、登入路discuz論壇:

<a href="http://cexpert.blog.51cto.com/attachment/201208/28/5251990_1346159824X3R2.png"></a>

本文轉自 cexpert 51CTO部落格,原文連結:http://blog.51cto.com/cexpert/975591