DokuWiki安裝程序

1 下載安裝檔

  1. 先切換到安裝目錄
  2. 下載 dokuwiki 最新版本1)檔案
  3. 解開壓縮檔
  4. 將目錄名稱更改為自己所希望的目錄名稱
  5. 將檔案目錄權限更改為 apache2)

實際處理語法

2 安裝參數設定

  1. 在 2006-11-06 版之後, 就提供網頁安裝參數設定功能
  2. 所以在安裝路徑網址下 install.php (Exp. http://192.168.11.236/dokuwiki/install.php)
  3. 右上角將語系改成 zh-tw
  4. 左邊欄位就開始一一輸入
    1. Wiki Name : MyWiki
    2. 依據將所有的欄位填好
    3. 我是設定預設的 ACL 是屬於 Closed Wiki
    4. 點下[儲存]
  5. 將 install.php 刪除掉 .. 實際命令語法

2.1 第一次登入

  1. 輸入新的 wiki 網址後, 因為剛剛設定為 Closed Wiki 所以會出現 拒絕尚未授權 的訊息
  2. 點[登入]輸入剛剛設定的管理者帳號密碼登入
  3. 點[管理選單]→[Configuration Settings]
    1. [Use first heading for pagenames] ← 打勾, 讓每頁的 Header 當頁面名稱
    2. [Send info on newly registered users to this email address] ← tryweb@ichiayi.com 有新註冊就通知到這個 E-Mail
    3. [Allow embedded HTML] ← 打勾, 允許使用 html 語法
    4. [Send change notifications to this email address] ← tryweb@ichiayi.com 有改到網頁就通知到這個 E-Mail
    5. [Enable page subscription support] ← 打勾, 允許使用者訂閱網頁
    6. [Use nice URLs] ← .htaccess 3)
    7. [Email address to use for automatic mails] ← tryweb@ichiayi.com 表示寄信者的 E-Mail
    8. [Generate Google sitemap (days)] ← 1 表示每天都更新 Google Sitemap
    9. [XML feed type] ← RSS 2.0
  4. 點[儲存]
  5. 登入主機, 確認 apache 設定檔 AllowOverride 設定為 All
  6. 修改 .htaccess 設定檔

    實際命令語法

    su - root
    vi /etc/httpd/conf/httpd.conf
    vi /var/www/html/dokuwiki/.htaccess

    vi /etc/httpd/conf/httpd.conf

    :
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
        AllowOverride All
    
    #
    # Controls who can get stuff from this server.
    #
    :

    vi /var/www/html/dokuwiki/.htaccess

    <Files ~ "^[\._]ht">
        Order allow,deny
        Deny from all
        Satisfy All
    </Files>
    
    RewriteEngine on
    
    RewriteRule ^_media/(.*)              lib/exe/fetch.php?media=$1  [QSA,L]
    RewriteRule ^_detail/(.*)             lib/exe/detail.php?media=$1  [QSA,L]
    RewriteRule ^_export/([^/]+)/(.*)     doku.php?do=export_$1&id=$2  [QSA,L]
    RewriteRule ^$                        doku.php  [L]
    RewriteCond %{REQUEST_FILENAME}       !-f
    RewriteCond %{REQUEST_FILENAME}       !-d
    RewriteRule (.*)                      doku.php?id=$1  [QSA,L]
    RewriteRule ^index.php$               doku.php

3 原有資料帳號連結

如果有需要將原本的資料頁面移轉過來, 只需要將 data 的內容搬移到新的路徑內即可.

實際命令語法

  • 在 2006 年版本中, data 內並無 index 目錄, 所以要自己先加入一個空的 index 目錄, 然後設定可以讓 apache 讀寫的權限
  • 在 2007 年版本中, data 內並無 tmp 目錄, 所以要自己先加入一個空的 tmp 目錄, 然後設定可以讓 apache 讀寫的權限 實際處理語法

4 安裝 Plugin

5 下載其他 Template

實際安裝 simple template 程序語法

6 延伸參考資料

2007/11/01 11:44 蔡宗融
   
2008/09/15 06:38 蔡宗融
2008/03/27 10:44 蔡宗融
2008/07/30 18:17 蔡宗融
2008/07/03 06:22 蔡宗融
2008/02/26 15:57 蔡宗融

1) dokuwiki 最新版本下載網址 : http://www.splitbrain.org/projects/dokuwiki
2) Web Server Owner
3) 設定 .htaccess 必須在 apache 的設定檔內也要將 AllowOverride All 開啟
 
回到頁頂
tech/dokuwiki.txt · 上一次變更: 2008/09/16 16:28 來自 jonathan
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0