使用discuz制作一个属于自己的论坛

discuz:开源的,你可以免费用,但不能在里面做广告赚钱,你想赚钱就得先向对方付费.它有两种授权:免费授权和商业授权,如果是企业用的话也要先交钱的,但不是很贵。discuz的论坛地址是:www.discuz.net,可以下载下来构建自己的论坛这里下载的是discuz2.5的版本:注意它依赖于LAMP准备工作:1、安装httpd包,目的是为准备1个域名;在实际工作中需要用钱买的,这里只是测试而已,是自己创建的(当然安装前需要配置yum,还有开发环境,在博文“关于apache的几个配置介绍”中有详细的介绍)yum install httpd -yvim /etc/httpd/conf/httpd.conf #取消中心主机#DocumentRoot "/var/www/html" 把此行注释掉vim /etc/httpd/conf.d/virtual.conf #自己编辑一个配置文件,创建虚拟主机<VirtualHost 172.16.50.100:80>ServerName www.jll.comDocumentRoot "/www/jll.com"</VirtualHost>mkdir /www/jll.com -pv #创建目录vim /www/jll.com/index.html #创建一个网页文档在windows上进行域名解析,需要在hosts文件中添加:172.16.50.100 www.jll.com #此时就可以访问www.jll.com了2、安装各种并包1个支持PHP脚本的空间;1个MYSQL的数据库;yum install php53 -y #安装phpyum install mysql #安装mysqlyum install mysql-server -y #安装mysql服务器yum install php53-mbstring -y #支持中文yum install php53-mysql -y #安装驱动,使其与mysql建立联系此时还要提供php脚本,让这个脚本能够连接mysql数据库这里给一个测试脚本php连接mysql并获取数据测试:vim /www/jll.com/index.html<?php$conn=mysql_connect(‘localhost’,’root’,’123456′);if (!$conn)echo “success……”elseecho “failed……”?>mv /www/jll.com/index.html /www/jll.com/index.php #重命名为php结尾的index文件此时就可以访问www.jll.com了,页面显示的是php内容1、这是zip的压缩包,应该使用unzip解压缩unzip Discuz_X2.5_SC_GBK.zip解压之后的文件中有一个upload,这里的文件对我们来说是主要的650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114610.png” />2、开始复制upload下的所有文件,这里我的虚拟机上有建好的www.jll.com的网站就直接使用了2.1为了让你更明白,我们先访问以下原来的网站650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114631.png” />2.2现在开始工作650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114642.png” />做好了,访问以下www.jll.com650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114663.png” />2.3修改主配置文件[root@station41 ~]# vim /etc/httpd/conf/httpd.conf650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114674.png” />2.4现在访问www.jll.com650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114695.png” />3、开始安装属于自己的论坛650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114706.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114727.png” />修改目录权限,步骤如图:650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114738.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/13664807114759.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071147610.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071147811.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071147912.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071148113.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071148214.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071148415.png” />点管理中心,可以设置650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071154116.png” />还没有安装index.php via FTP!650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071154217.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071157018.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071157819.png” />650) this.width=650;” border=”0″ alt=”” src=”http://cdn.verydemo.com/upload/2013_04_21/136648071158720.png” />

到此我们自己的论坛就做好了!简单吗?试试吧

丽的博客

没有了爱的语言,所有的文字都是乏味的

使用discuz制作一个属于自己的论坛

相关文章:

你感兴趣的文章:

标签云: