天天看点

在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