Filename : 2004-10-24_movabletype3.11.txt Author : MIZUBAYASHI Kosuke Created : Sun Oct 24 16:35:31 JST 2004 Updated : Sun Oct 24 16:35:31 JST 2004 Description : Movabletype 3.11-full-ja のインストール記録 -------- 環境 : VineLinux2.6 kernel 2.4.24 PostgreSQL 7.3.4 01. PostgreSQL のユーザ,DB を作成 --------------------------------------------------- $ psql -d dbname -U root Password: dbname=# create user mtuser with password 'mtuser'; dbname=# create database mt owner mtuser; --------------------------------------------------- ## 余談 : 特権ユーザのパスワードを忘れたとき ${PGDATA}/pg_hba.conf 内の "METHOD" を trust にして --------------------------------------------------- $ pg_ctl restart $ psql -d dbname -U root dbname=# alter user root with password 'newpassword'; --------------------------------------------------- パスワードなしでログインできるので,すぐにパスワードを 変更し,再び "METHOD" を password 戻しましょう. 02. MT-3.11full-lib-ja.zip を展開 適当にディレクトリを掘って展開. 不要なファイルは適宜削除. 03. mt.cfg の編集 主に CGI のロケーションや DB 接続設定を変更. DBHost を設定するとうまくいかなかったので注意. 04. Apache の設定変更 MT の *.cgi が存在するディレクトリに ScriptAlias を張る. Apache を再起動して変更を反映. 05. パッチ当て スキーマ設計が甘いのか何なのか良く判らないけれど, PostgreSQL7.3.4 + Movabletype3.11 では mt-load.cgi がこけます. そこで以下のパッチを適用します. MT-3.11-full-ja-schema.patch ------------------------------------------------------------------------- diff -cr MT-3.11-full-ja-orig/schemas/postgres.dump MT-3.11-full-ja/schemas/postgres.dump *** MT-3.11-full-ja-orig/schemas/postgres.dump Sun Oct 24 16:44:24 2004 --- MT-3.11-full-ja/schemas/postgres.dump Sun Oct 24 16:45:07 2004 *************** *** 213,219 **** create table mt_template ( template_id integer not null primary key, template_blog_id integer not null, ! template_name varchar(50) not null, template_type varchar(25) not null, template_outfile varchar(255), template_rebuild_me smallint, --- 213,219 ---- create table mt_template ( template_id integer not null primary key, template_blog_id integer not null, ! template_name varchar(100) not null, template_type varchar(25) not null, template_outfile varchar(255), template_rebuild_me smallint, ------------------------------------------------------------------------- --------------------------------------------------- $ patch -p1 < ../MT-3.11-full-ja-schema.patch --------------------------------------------------- 06. mt-load.cgi を呼ぶ Web ブラウザから mt-load.cgi を呼びます. このスクリプトは DB スキーマを作成します. エラーが出なければ成功.出た場合は対処. 成功したらもう mt-load.cgi は不要なので必ず削除しましょう. 06. mt.cgi を呼ぶ. Web ブラウザから mt.cgi を呼びます. 初期アカウントは Melody/Nelson . 以下はご自由にどうぞ.