最終更新: 2006-04-29 (土) 07:57:49
このページをDeliciousに追加 このページをはてなブックマークに追加 このページをlivedoor クリップに追加 このページをYahoo!ブックマークに追加

tDiary のインストール

アーカイブファイルの展開

アーカイブファイルをダウンロードし、展開。

$ wget http://www.tdiary.org/download/tdiary-full-2.0.2.tar.gz
$ tar xvfz tdiary-full-2.0.2.tar.gz
$ ln -s tdiary-2.0.2 blog
$ cd blog

tDiary 用ディレクトリの作成

tDiary のデータを保存するディレクトリを作成。

$ mkdir -p ~/tDiary
$ chmod 707 ~/tDiary

~/tDiary/.htpasswd ファイルを作成。

$ htpasswd -c ~/tDiary/.htpasswd revulo
$ chmod 604 ~/tDiary/.htpasswd

.htaccess の設定

dot.htaccess を .htaccess にコピー。

$ cp -p dot.htaccess .htaccess

.htaccess の <Files update.rb> セクションの設定を以下のように変更。

<Files update.rb>
	AuthName      tDiary
	AuthType      Basic
	AuthUserFile  /home/revulo/tDiary/.htpasswd
	Require user  revulo
</Files>

mod_ruby 環境で動かす場合は、.htaccess の以下の行をコメントアウト。

AddHandler cgi-script .rb

tdiary.conf の設定

tdiary.conf.sample を tdiary.conf にコピー。

$ cp -p tdiary.conf.sample tdiary.conf

tdiary.conf の設定を以下のように変更。

@data_path = '/home/revulo/tDiary'

Wiki スタイル用のファイルのインストール

wiki_parser.rb と wiki_style.rb を tdiary ディレクトリにコピー。

$ cp -p misc/style/wiki/wiki*.rb tdiary/

tdiary.conf の設定を以下のように変更。

@style = 'Wiki'

(Counter:1, Today:1, Yesterday:0)
トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   最終更新のRSS