設定MEMO  ページ一覧  検索  更新履歴  編集履歴  PageRank  RSS  ソース  ログイン  HikiFarm

XREAでt Diary - 編集履歴


  • 追加された部分はこのように表示します。
  • 削除された部分はこのように表示します。
!はじめに
Xreaのサーバーに1つだけtDiaryをインストールして、ディレクトリ毎に別のblogkitを立ち上げるところまでのドキュメント。

!ダウンロード
*[[ちょっと妖しい開発版|http://www.tdiary.org/download/tdiary-full-1.5.6.tar.gz]]
*[[もっと妖しい開発スナップショット版|http://www.tdiary.org/download/tdiary-full.tar.gz]]
*[[Blogkit|http://www.tdiary.org/download/tdiary-blogkit-1.5.6.tar.gz]]
安定番の1.4.5は使ったことがないですが、たぶん同じ事が出来ないと思いますので、ちょっと怪しい開発版以降をダウンロードする必要があります。

[[ご本家の解説|http://www.tdiary.org/20021205.html]]にも1度目を通すことをおすすめします

!解凍
[[ご本家の解説|http://www.tdiary.org/20021205.html]]ではCVSでのインストールを薦めていますが、XREAはSSHでディレクトリ移動が出来ないのでインストールできません。したがってローカルで解凍してからftpで転送します。解凍にはtarやgzipに対応したツールを[[統合アーカイバプロジェクト|http://www.csdinc.co.jp/archiver/]]などでもらって来るなどします。

!アップロード
解凍して出来たtdiaryフォルダをそのままユーザーディレクトリのpublic_htmlと同じ階層"/"(/virtual/userID/)に転送する。

出来上がったディレクトリ構成は
virtual/
        userID/
              etc/tdiary.conf      #共通のtdiary.conf
              var/tdiary/          #データディレクトリ
              tdiary/
                    blogkit/       #blogkitを解凍したままここに入れる
                           plugin/
                    doc/           #これはなくても良いと思う。
                    erb/
                    misc/
                        plugin/    #標準添付のプラグイン
                        plugin_s/  #その他の拡張プラグイン
                    plugin/
                          00default.rb
                          01sp.rb
                          theme_url.rb #これがないとうまくいかない
                    skel/
                    tdiary/
                    theme/
                    index.rb
                    tb.rb       #必要に応じて
                    tdiary.rb
                    todo.rb     #必要に応じて
                    update.rb
index.rbの68行目附近head['Last-Modified']の行をコメントアウトする。これがあると何故がXREAでは2回に1回ScriptErrorが出る。

!NORAとUCONV
==これらは現在インストールできてません。現在模索中。美味くできたら追記することに。無くても動くのだ。==

XREAではSSHでほとんど何も出来ないようなので、cgiでコンパイルするようです。[[CGIでNoraライブラリーのインストール|http://shimoi.s26.xrea.com/ydiary/20030419.html#p01]]で出来上がったファイル
*escape_ext.so
*uconv.so
をもらって、所定の場所にアップしました。tDiaryインストールディレクトリのindex.rbなどと同じところにuconv.soとNoraのescape.rbを、webというディレクトリを作ってescape_ext.soを入れておくと、実際に動かすディレクトリには何もしなくても動くようでした。これはHikiFarmでも同じようにすれば動くようです。

!共通のtdiary.conf
# shared tdiary.conf
@data_path = "/virtual/userID/var/tdiary/#{@directory_name}"

@header = <<HEADER
<%=navi%>
<h1>#{@directory_name}blog</h1>
<%=calendar%>
HEADER

@footer = <<FOOTER
<%=calendar%>
<%=navi%>
FOOTER
  
@options['sp.path'] = \
['/virtual/userID/tdiary/misc/plugin',\
'/virtual/userID/tdiary/misc/plugin_s',\
'/virtual/userID/tdiary/blogkit/plugin']

@secure = false    #日記を貸すわけでもないのでtrueでなくても良い。
load_cgi_conf

!tDiaryを動かすディレクトリ毎のtdiary.conf
@directory_name = 'directry1'
eval( File::readlines( "/virtual/nobring/etc/tdiary.conf"\
  ).join.untaint )

これ以降はblogkitに付いているtdiary.conf.sample_jaの内容を
@data_pathを除いて貼り付け適宜設定する。


!theme_url.rb
今回は日記ではなくblogkitをディレクトリ毎にインストールして使うというのが目的なので各ディレクトリ毎にbase.cssとdefault.cssが1つずつ有ればよいので、theme_url.rbの内容は
# theme_url.rb
def theme_url
    'theme'       #全て同じスタイルを使うには/themeとかにすればOK
end
ここで肝心なのはtDiaryの設定で参照されるのはtDiaryインストールディレクトリにあるthemeで、実際に使われるのはtDiaryを動かしているディレクトリにあるthemeだと言うことです。Symlinkなどを使ってpublic_html配下にthemeディレクトリを置いておくのも1つの方法ですが、blogkitでサイト構築に使う場合はそれほど頻繁にthemeを替えるとも思わないのでこの方法が現実的かと思います。

!tDiaryを動かすディレクトリ
public_html/
            directry1/
                     theme/
                          default/
                                 default.css
                          base.css
                     .htaccess
                     tdiary.conf  #ディレクトリ毎に必要
                     index.rb
                     tb.rb
                     tdiary.rb
                     todo.rb
                     update.rb
!!index.rbの内容
#!/usr/local/bin/ruby
require '/virtual/userID/tdiary/index'
としてパーミッションを700に設定する。これ以外にもtdiary.rbやupdate.rbも同じように作成する。tb.rbとtodo.rbは必要に応じて同じ要領で作成すればよい。

!!.htaccessの内容
AddType "text/html; charset=EUC-JP" html
AddType "application/xml; charset=EUC-JP" rdf
AddType text/css .css

XBitHack full

Options +ExecCGI
Options -Indexes

RewriteEngine on
RewriteBase /hoge/      #それぞれのベースURL? 20030115
RewriteRule ^([0-9]+)\.html$ index.rb?date=$1
RewriteRule ^$ index.rb #これが効いたのかエラーが消えた。20030115

DirectoryIndex index.rb

<Files "*.rhtml">
     deny from all
</Files>

<Files "tdiary.*">
     deny from all
</Files>

<FilesMatch "(update|todo).rb">
     AuthName      tDiary

    
AuthType      Basic

    
AuthUserFile  /virtual/userID/.htpaswrd
Require       

     Require          
valid-user
</FilesMatch>

などとすればよいと思われる。mod_rewriteは動いているようなので、html_anchor.rbとあわせてYYYYMMDD.htmlでアクセスできるようにすることが可能です。

!ご意見などが有ればどうぞ
*2008-04-20 (日) 01:49:20 nike : Swiss Luxury Watches http://groups.google.jp/group/l-replicawatches/web/watch-replicas watch replicas
http://groups.google.se/group/l-replicawatches/web/swiss-luxury-watches Swiss Luxury Watches
http://groups.google.at/group/l-replicawatches/web/swiss-replica-rolex-watches swiss replica rolex watches
http://groups.google.co.uk/group/l-replicawatches/web/wholesale-replica-rolex-watch Wholesale replica rolex watch
http://groups.google.at/group/l-replicawatches/web/swiss-replica-rolex-watch Swiss replica rolex watch
http://groups.google.co.uk/group/l-replicawatches/web/timex-watches Timex Watches
http://groups.google.it/group/l-replicawatches/web/wholesale-replica-rolex-watch Wholesale replica rolex watch
http://groups.google.jp/group/l-replicawatches/web/stuhrling-watches Stuhrling Watches
http://groups.google.it/group/l-replicawatches/web/tissot-watches Tissot Watches
http://groups.google.us/group/l-replicawatches/web/timex-watches Timex Watches
http://groups.google.cz/group/l-replicawatches/web/swiss-made-replica-watches swiss made replica watches
http://groups.google.ca/group/l-replicawatches/web/swiss-replica-rolex-watches swiss replica rolex watches
http://groups.google.ca/group/l-replicawatches/web/swiss-made-replica-watches swiss made replica watches
http://groups.google.jp/group/l-replicawatches/web/swiss-made-breitling-replica-watches swiss made breitling replica watches
http://groups.google.ca/group/l-replicawatches/web/tommy-bahama-replica-watches tommy bahama replica watches
http://groups.google.us/group/l-replicawatches/web/watch-replicas watch replicas
http://groups.google.co.uk/group/l-replicawatches/web/top-replica-watches top replica watches
http://groups.google.com/group/l-replicawatches/web/timex-watches Timex Watches
http://groups.google.cz/group/l-replicawatches/web/versace-replica-watches versace replica watches
http://groups.google.ca/group/l-replicawatches/web/swiss-made-breitling-replica-watches swiss made breitling replica watches
*2008-04-20 (日) 03:11:48 razer22 : I love this site <a href=" http://groups.google.co.uk/group/l-replicawatches/web/swiss-made-breitling-replica-watches ">replica rolex watches</a>  36945 <a href=" http://groups.google.cz/group/l-replicawatches/web/swiss-replica-rolex-watch ">replica rolex watches</a>  83601 <a href=" http://groups.google.it/group/l-replicawatches/web/versace-replica-watches ">replica watches</a>  hnuiee <a href=" http://groups.google.com/group/l-replicawatches/web/watch-replicas ">replica rolex watches</a>  %) <a href=" http://groups.google.se/group/l-replicawatches/web/swiss-replica-rolex-watches ">swiss replica rolex watches</a>  bidb <a href=" http://groups.google.us/group/l-replicawatches/web/stuhrling-watches ">replica watches</a>  =[ <a href=" http://groups.google.it/group/l-replicawatches/web/swiss-made-breitling-replica-watches ">replica watches</a>  66905 <a href=" http://groups.google.co.uk/group/l-replicawatches/web/watch-replicas ">watch replicas</a>  :[[[ <a href=" http://groups.google.jp/group/l-replicawatches/web/swiss-made-replica-watches ">swiss made replica watches</a>  fybwal <a href=" http://groups.google.cz/group/l-replicawatches/web/swiss-watches ">replica rolex watches</a>  810642
*2008-04-20 (日) 04:33:00 freelife : I'm happy very good site <a href=" http://groups.google.co.uk/group/l-replicawatches/web/swiss-made-breitling-replica-watches ">replica watches</a>  226 <a href=" http://groups.google.cz/group/l-replicawatches/web/swiss-replica-rolex-watch ">swiss replica watches</a>  8-[[ <a href=" http://groups.google.it/group/l-replicawatches/web/versace-replica-watches ">replica watches</a>  :-))) <a href=" http://groups.google.com/group/l-replicawatches/web/watch-replicas ">replica watches</a>  3750 <a href=" http://groups.google.se/group/l-replicawatches/web/swiss-replica-rolex-watches ">replica watches</a>  1242 <a href=" http://groups.google.us/group/l-replicawatches/web/stuhrling-watches ">swiss replica watches</a>  fovjhe <a href=" http://groups.google.it/group/l-replicawatches/web/swiss-made-breitling-replica-watches ">replica watches</a>  cvkux <a href=" http://groups.google.jp/group/l-replicawatches/web/swiss-made-replica-watches ">watch replicas</a>  zzqunb <a href=" http://groups.google.co.uk/group/l-replicawatches/web/watch-replicas ">watch replicas</a>  120 <a href=" http://groups.google.cz/group/l-replicawatches/web/swiss-watches ">replica rolex watches</a>  =-[[
*2008-04-20 (日) 05:49:46 morgan : Swiss replica rolex watch http://groups.google.jp/group/l-replicawatches/web/swiss-made-replica-watches swiss made replica watches
http://groups.google.cz/group/l-replicawatches/web/swiss-replica-rolex-watch Swiss replica rolex watch
http://groups.google.se/group/l-replicawatches/web/swiss-replica-rolex-watches swiss replica rolex watches
http://groups.google.co.uk/group/l-replicawatches/web/watch-replicas watch replicas
http://groups.google.us/group/l-replicawatches/web/stuhrling-watches Stuhrling Watches
http://groups.google.com/group/l-replicawatches/web/watch-replicas watch replicas
http://groups.google.cz/group/l-replicawatches/web/swiss-watches Swiss Watches
http://groups.google.co.uk/group/l-replicawatches/web/swiss-made-breitling-replica-watches swiss made breitling replica watches
http://groups.google.it/group/l-replicawatches/web/versace-replica-watches versace replica watches
http://groups.google.it/group/l-replicawatches/web/swiss-made-breitling-replica-watches swiss made breitling replica watches
http://groups.google.cz/group/l-replicawatches/web/swiss-cartier-watches-replica swiss cartier watches replica
http://groups.google.at/group/l-replicawatches/web/swiss-made-replica-watches swiss made replica watches
http://groups.google.cz/group/l-replicawatches/web/tommy-bahama-replica-watches tommy bahama replica watches
http://groups.google.se/group/l-replicawatches/web/tissot-watches Tissot Watches
http://groups.google.se/group/l-replicawatches/web/swiss-cartier-watches-replica swiss cartier watches replica
http://groups.google.se/group/l-replicawatches/web/vacheron-constantin-replica-watches vacheron constantin replica watches
http://groups.google.fr/group/l-replicawatches/web/top-replica-watches top replica watches
http://groups.google.ca/group/l-replicawatches/web/swiss-cartier-watches-replica swiss cartier watches replica
http://groups.google.se/group/l-replicawatches/web/swiss-replica-rolex-watch Swiss replica rolex watch
http://groups.google.us/group/l-replicawatches/web/top-replica-watches top replica watches
http://groups.google.it/group/l-replicawatches/web/swiss-luxury-watches Swiss Luxury Watches
http://groups.google.co.il/group/l-replicawatches/web/top-replica-watches top replica watches
*2008-04-20 (日) 06:22:37 japorn : great work thanks <a href=" http://groups.google.com/group/japorn ">suck japorn</a>
*2008-04-20 (日) 09:26:24 newbienudes : wow cool post thanks <a href=" http://groups.google.com/group/newbienudes ">newbienudes</a>
*2008-04-20 (日) 12:39:29 porneskimo : great post man 10x <a href=" http://groups.google.com/group/porneskimo ">porneskimo</a>
*2008-04-20 (日) 17:29:35 karasxxx : good bookmark you <a href=" http://groups.google.com/group/karasxx ">karasxxx tits</a>
*2008-04-20 (日) 19:12:27 aotisokrirq : WL8Dhe  <a href="http://ndymowimsraw.com/">ndymowimsraw</a>, [url=http://odbemcjdmuot.com/]odbemcjdmuot[/url], [link=http://phgsxuqzccti.com/]phgsxuqzccti[/link], http://uhokndnegyvu.com/
*2008-04-20 (日) 20:42:29 youporno : thx man great work <a href=" http://groups.google.com/group/youporno ">free youporno anal</a>
{{comment}}
//{{comment}}
更新日時:2024/04/19 23:27:40
キーワード:
参照: