前提:已經搭建好LAMP平臺。centos6.4版本,ip地址192.168.0.104,域名www.one.com。php
一、windows上的域名解析文件C:\Windows\System32\drivers\etc\hosts,用記事本打開添加虛擬主機192.168.0.104 www.one.comhtml
二、下載論壇網站程序,官方網站http://www.download.comsenz.com/mysql
[root@www generators]# cd /usr/local/apache2/htdocs/ [root@www htdocs]# ls 1.php 1.txt access index.html one.com passwd two.com [root@www htdocs]# cd one.com //進入到相應的目錄下 [root@www one.com]# rm -rf index.html [root@www one.com]# wget http://download.comsenz.com/DiscuzX/3.1/Discuz_X3.1_SC_UTF8.zip
三、解壓到www.one.com相應的網頁目錄下sql
[root@www one.com]# unzip Discuz_X3.1_SC_UTF8.zip [root@www one.com]# ls Discuz_X3.1_SC_UTF8.zip readme upload utility //網站程序都在upload目錄下 [root@www one.com]# mv upload/* . //將upload目錄下的內容放到當前目錄 [root@www one.com]# ls admin.php crossdomain.xml index.php robots.txt upload api data install search.php userapp.php api.php Discuz_X3.1_SC_UTF8.zip member.php source utility archiver favicon.ico misc.php static config forum.php plugin.php template connect.php group.php portal.php uc_client cp.php home.php readme uc_server [root@www one.com]# rm -rf Discuz_X3.1_SC_UTF8.zip upload/ readme/ utility/ //刪除其餘的目錄文件
四、安裝論壇apache
[root@localhost one.com]# chown -R daemon config uc_client/data uc_server/data data //修改相應目錄的權限 [root@localhost one.com]# service mysqld start //啓動mysql,mysql的root用戶必需要有密碼。
進入網頁www.one.com,根據網頁提示進行論壇安裝
windows