搭建discuz論壇 我用的是discuz 7 是到康盛創想下載下傳的,在安裝之前還要安裝UCenter,在康盛創想也有圖文安裝指導 首先登陸mysql
mysql -u root -p
建立資料庫
create database discuz;
建立資料庫使用者,并授權
grant all privileges . discuz.* to dzuser@'localhost' identified by 'dzuser';
授權 所有的權限 資料庫名.表名 資料庫使用者@本地連接配接 密碼 以虛拟主機方式配置
vi /etc/httpd/conf/httpd.conf 我修改了下面三個選項 (需要花點時間在httpd.conf找一下):
DirectoryIndex index.html index.htm index.php index.html.var AddType application/x-httpd-php .php AddDefaultCharset GBK
下載下傳 UCenter [url]http://faq.comsenz.com/viewnews-449[/url](ucenter安裝圖解)
将壓縮包裡面的upload複制到/var/www/html/下,并重命名為ucenter linux下改變列出的目錄權限
chmod -R 777 ucenter
ucenter中的檔案也要修改權限,使用相同的指令修改如下檔案即可 ./data ./data/avatar ./data/backup ./data/cache ./data/logs ./data/tmp ./data/view ./data/config.inc.php
在windows下打開 [url]www.example.com/ucenter/install[/url]進行安裝,可參考康盛創想ucenter安裝圖解 下載下傳discuz,并将壓縮包裡面的upload複制到/var/www/html/下,得命名為bbs chmod -R 777 /var/www/html/bbs 可讀,可執行
使用相同的方法修改下面列出的目錄權限
./config.inc.php ./attachments ./forumdata ./forumdata/cache ./forumdata/templates ./forumdata/threadcaches ./forumdata/logs ./uc_client/data/cache
然後通路站點
[url]www.example.com/bbs/install/index.php[/url] 進行安裝(參考康盛創想ucenter安裝 圖解)
使用者名 dzuser
密碼 dzuser
資料庫名 discuz 已經安裝好discuz
其他的web程式安裝方式也都差不多 chkconfig --level 345 httpd . 現在可以在windows上打開這個論壇了
轉載于:https://blog.51cto.com/xiaomu205/136671