標(biāo)簽:discuz class style log com http si it la 一、下載Discuz。 1.官網(wǎng)找資源 百度搜索discuz,進(jìn)入官網(wǎng)。官網(wǎng)本身就是Discuz論壇。在首頁有個 - Discuz!程序發(fā)布 -> 置頂?shù)奶樱篊omsenz 核心產(chǎn)品 Discuz! X3.2 正式版【2015-12-08】 - > 下載地址 簡體中文GBK:http://download./DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip 官網(wǎng):http://www./
2.下載 切換到安裝目錄 cd /data/www/
下載 wget http://download./DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip
解壓,先安裝解壓工具然后解壓 yum install unzip -y unzip Discuz_X3.2_SC_GBK.zip
把主要文件目錄upload目錄下的所有文件,移動到/data/www下 mv upload/* ./
3.在MySQL下創(chuàng)建個庫,保存數(shù)據(jù) 登入MySQL /usr/local/mysql/bin/mysql --uroot 創(chuàng)建discuz庫 mysql> create database discuz; 授予所有權(quán)限給用戶:wangshaojun密碼為:denny mysql> grant all on discuz.* to ‘wangshaojun‘@‘localhost‘ identified by ‘denny‘; 退出MySQL quit
4.修改本地真機(jī)的DNS C:\Windows\System32\drivers\etc\HOSTS 在最下面添加一行 192.168.1.116 www.denny.com www.wangshaojun.com www.qqq.com
5.打開apache主配置文件,把虛擬主機(jī)的配置文件注釋去掉 vim /usr/local/apache2/conf/httpd.conf 把 #Include conf/extra/httpd-vhosts.conf 改為 Include conf/extra/httpd-vhosts.conf
5.修改虛擬主機(jī)。與真機(jī)DNS的域名保持一致 vim /usr/local/apache2/conf/extra/httpd-vhosts.conf 虛擬主機(jī)配置保留一個,訪問日志和錯誤日志,暫時注釋掉。 <VirtualHost *:80> DocumentRoot "/data/www" ServerName www.wangshaojun.com ServerAlias www.denny.com # ErrorLog "logs/dummy-host.example.com-error_log" # CustomLog "logs/dummy-host.example.com-access_log" common </VirtualHost>
在瀏覽器輸入上面網(wǎng)址的其中之一,如果打開失敗,查看或者重新啟動mysql或者h(yuǎn)ttpd service mysqld restart /usr/local/apache2/bin/apachectl start
錯誤1 Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime() in /data/www/install/index.php:12 Stack trace: #0 {main} thrown in /data/www/install/index.php on line 12 致命錯誤:未捕獲錯誤:未定義的函數(shù)的調(diào)用set_magic_quotes_runtime(),在這個文件的第12行, 解決: //把 set_magic_quotes_runtime(0); //替代成 ini_set("magic_quotes_runtime",0); 可以解析了。 來至:http://www./phper/31/45735.htm
錯誤2 discuz亂碼。
標(biāo)簽:discuz class style log com http si it la 原文:http://www.cnblogs.com/wangshaojun/p/5123006.html |
|