======DokuWikiの設定例====== このページがどのように設定されているかを例に書く。 =====前提配置===== こんな感じになってるという想定で話をします。 # ls -a /var/www/doku . COPYING VERSION conf doku.php inc install.php .. .htaccess.dist README bin data feed.php index.php lib =====テンプレートの変更===== とりあえず見た目を変える。\\ DokuWikiのテンプレートの導入方法は、./lib/tpl/にテンプレートディレクトリごと置いて、管理画面からテンプレートの変更を行うだけ。 このページでは、テンプレートに[[doku>template:arctic]]を使用しているのでそれを例に。 # wget http://cloud.github.com/downloads/chimeric/dokuwiki-template-arctic/template-arctic.tgz # tar zxvf template-arctic.tgz # mv template-arctic /var/www/wiki/lib/tpl/arctic 後は管理画面→サイト設定→テンプレートでarcticを選択して決定。 細部を変更したい場合は、各テンプレートディレクトリ内にあるstyle.iniを変更すると楽。 こんな感じで。(一部抜粋) [replacements] ; arctic template LAYOUT ;__wiki_width__ = "84%" __wiki_width__ = "92%" __header_height__ = "5em" ;__body_margin__ = "1.5em" __body_margin__ = "1.0em" __page_padding__ = "0.5em;" ;__footer_padding__ = "2em" __footer_padding__ = "1em" ; arctic template FONT-SIZES AND FONT-COLORS __font_size__ = "0.8125em" ;__line_height__ = "150%" __line_height__ = "125%" __pagename_color__ = "#f8f8f8" __logo_color__ = "#f8f8f8" __headline_color__ = "#333" ===== URL表記の調整 ===== [[doku>ja:rewrite]]を参照するのが正確だと思われる。\\ ここでは、ubuntu9.10-server + apache2を使用している場合を想定している。 # a2enmod rewrite # vi /etc/apache2/sites-available/default 適当な場所に以下の設定を加える。 AllowOverride All 以下の内容の.htaccessをdoku.phpと同じディレクトリに配置。 Order allow,deny Deny from all Satisfy All RewriteEngine on RewriteBase /wiki 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] 後はapache2を再起動して、動作を確認する。 /etc/init.d/apache2 restart URL統一等を目的に調整中なので、[[web:dokuwiki:htaccess]]のように記述を変更。 ===== プラグインの導入 ===== 以下のプラグインを叩き込む。(段組は依存関係) * [[http://cloud.github.com/downloads/kazmiya/dokuwiki-plugin-asiansearch/dokuwiki-plugin-asiansearch.zip|asiansearch]] * [[http://samuele.netsons.org/dokuwiki/media/indexmenu.zip|indexmenu]] * [[http://gauret.free.fr/fichiers/dokuwiki/dokuwiki-note-20090615.tgz|note]] * [[http://cloud.github.com/downloads/dokufreaks/plugin-pagelist/plugin-pagelist.tgz|pagelist]] * [[http://www.chimeric.de/_src/plugin-tag.tgztag]] * [[http://www.dokuwiki.org/lib/exe/fetch.php?hash=e59be7&media=http%3A%2F%2Facodeas.de%2Fplugins%2FVersion0.10.0-pagemove_20100218.zip|pagemove]] ===== この辺で一旦安定 ===== 大体この辺りで一段落。 {{tag>web wiki dokuwiki arctic}}