パスワードを忘れた? アカウント作成
691024 journal

torusの日記: Movable Type

日記 by torus
たんなる流行りもののウェブアプリだと思って侮っていたけれど、 実際にさわってみてそのすごさがわかりました。

というわけで、インストールの手順とか、メモ。

ダウンロードは Movable Type 公式サイトで、登録など済ませてから。

今回は、とりあえず必要なものが全部入っている、ライブラリつきのフルバージョンをもらってきた。

アーカイブファイルを展開したら、mt.cfg という設定ファイルをちょっと編集します。

diff -r -u MT-2.6-full-lib.orig/mt.cfg
MT-2.6-full-lib/mt.cfg
--- MT-2.6-full-lib.orig/mt.cfg Thu Feb 6 06:22:56 2003
+++ MT-2.6-full-lib/mt.cfg Sat Feb 15 03:14:30 2003
@@ -11,7 +11,7 @@
# the Installation Instructions, in INSTALLING THE MOVABLE TYPE
# APPLICATION CODE, Step 3.

-CGIPath http://WWW.YOUR-SITE.COM/PATH/TO/MT/
+CGIPath http://xxx.xxxxx.com/mt/


# The filesystem path to the 'db' directory, where your MT database
@@ -60,8 +60,8 @@
# 'smtp', 'sendmail', and 'debug' (which just writes out mail messages
# to STDERR, for debugging purposes). The default is 'sendmail'.
#
-# MailTransfer smtp
-# SMTPServer smtp.your-site.com
+MailTransfer smtp
+SMTPServer localhost
#
#
# By default, when writing to an output file (for example, one of your
@@ -111,10 +111,10 @@
# scenario where the MT application runs as you; in addition, you should not
# change these settings unless you know what they mean, and what they do.
#
-# DBUmask 0022
-# HTMLUmask 0022
-# UploadUmask 0022
-# DirUmask 0022
+DBUmask 0022
+HTMLUmask 0022
+UploadUmask 0022
+DirUmask 0022
#
#
# In addition to controlling permissions via umask settings, you can also
@@ -253,7 +253,7 @@
# (assuming that your system has these tools installed). Possible values for
# this setting are "ImageMagick" or "NetPBM".
#
-# ImageDriver NetPBM
+ImageDriver NetPBM
#
#
# By default, Movable Type looks for the NetPBM tools in three locations:
@@ -293,7 +293,7 @@
# every blog in this MT installation. An example encoding might be
# "Shift_JIS".
#
-# PublishCharset Shift_JIS
+PublishCharset EUC-JP
#
#
# "Safe mode" enables certain warnings about security and other issues,
@@ -413,3 +413,8 @@
# they wish to. Possible values are 'entries', 'comments', or 'both'.
#
# SearchElement both
+
+ObjectDriver DBI::mysql
+Database movabletype
+DBUser movabletype

それから、 日本語をちゃんと扱えるように、 Jcode.pm で文字コード変換をするコードを追加してみた。

diff -r -u MT-2.6-full-lib.orig/lib/MT/Util.pm MT-2.6-full-lib/lib/MT/Util.pm
--- MT-2.6-full-lib.orig/lib/MT/Util.pm Fri Feb 14 15:38:58 2003
+++ MT-2.6-full-lib/lib/MT/Util.pm Sat Feb 15 02:21:01 2003
@@ -245,9 +245,11 @@
sub encode_html {
my($html) = @_;
return '' unless defined $html;
+ use Jcode;
+ $html = Jcode->new ($html)->euc;
$html =~ tr!\cM!!d;
if ($Have_Entities && !MT::ConfigMgr->instance->NoHTMLEntities) {
- $html = HTML::Entities::encode_entities($html);
+ $html = HTML::Entities::encode_entities($html, '&"');
} else {
## Encode any & not followed by something that looks like
## an entity, numeric or otherwise.

あとはドキュメントどおりにやって、 MySQL で必要なデータベースを作っておいて、 このディレクトリの mt-load.cgi をウェブサーバ上で起動するだけで、 セットアップ完了なのだ。

この議論は賞味期限が切れたので、アーカイブ化されています。 新たにコメントを付けることはできません。
typodupeerror

長期的な見通しやビジョンはあえて持たないようにしてる -- Linus Torvalds

読み込み中...