乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Discuz論壇搭建

       惔莣①苆 2016-07-14

      標簽:discuz   class   style   log   com   http   si   it   la   

      一、下載Discuz。

      1.官網(wǎng)找資源

      百度搜索discuz,進入官網(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.修改本地真機的DNS

      C:\Windows\System32\drivers\etc\HOSTS

      在最下面添加一行

      192.168.1.116 www.denny.com www.wangshaojun.com www.qqq.com

       

      5.打開apache主配置文件,把虛擬主機的配置文件注釋去掉

       vim /usr/local/apache2/conf/httpd.conf
      把
      #Include conf/extra/httpd-vhosts.conf
      改為
      Include conf/extra/httpd-vhosts.conf

       

      5.修改虛擬主機。與真機DNS的域名保持一致

      vim /usr/local/apache2/conf/extra/httpd-vhosts.conf

      虛擬主機配置保留一個,訪問日志和錯誤日志,暫時注釋掉。

      <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或者httpd

      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亂碼。

       

      Discuz論壇搭建

      標簽:discuz   class   style   log   com   http   si   it   la   

      原文:http://www.cnblogs.com/wangshaojun/p/5123006.html

        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多