« blogはじめました | メイン | About WOMBAT »

2003年09月22日

MovableType設置

MovableTypeの設置に関する覚え書き。

【MySQL】
・MySQLをPortsからインストール
# portinstall databases/mysql40-server
ユーザmysqlは自動的に作成されている
/var/db/mydqlもmysql:mysqlで作成されている

・MySQLを起動
# /usr/local/etc/rc.d/mysql-server.sh start

・起動を確認
# ps ax | grep mysqld
24927 p8 I 0:00.03 /bin/sh /usr/local/bin/mysqld_safe --user=mysql --dat
24945 p8 S 0:09.22 /usr/local/libexec/mysqld --basedir=/usr/local --data

・rootのパスワードを設定
# mysqladmin -u root password 'RootPassword'
# mysql -u root -pRootPassword

・匿名ユーザを削除
mysql> delete from mysql.user where user="";

・リモートアクセス用のrootにパスワードを設定
mysql> grant all privileges on *.* to roor@chinensis identified by 'RootPassword' with grant;

・MT用のDBを作成
mysql> create database mtdb;

・MT用にユーザを作成
mysql> grant select,insert,update,delete,create on mtdb.* to mtuser@localhost identified by 'MtPassword';

【MovableType】
・MTの入手
MT-2.64-full-lib.tar.gzをhttp://www.movabletype.org/download.shtmlからダウンロード

・設定ファイルの編集
mt.cfgを編集
mt-db-pass.cgiを編集

・netpbmをインストール
# portinstall -r netpbm

・ImageMagickをインストール(netpbmとどちらかでよい)
# portinstall -r ImageMagick

・MT本体をコピー
/usr/local/www/data/mt-static/にimages、docs、styles.css
/usr/lodal/www/cgi-bin/に上記以外

・動作環境確認
mt-check.cgiで動作環境を満たしていることを確認
mt-check.cgiとmt-load.cgiを削除

・日本語化
日本語のLanguagePack(mt-ja.tar.gz)をhttp://www.movabletype.org/resources.shtmlからダウンロードしてインストール
Jcode-0.83.tar.gzをhttp://openlab.ring.gr.jp/Jcode/index-j.htmlからダウンロードしてインストール

・MTを実行
http://redmagicorg.ddo.jp/cgi-bin/mt.cgi

投稿者 sai : 2003年09月22日 00:46

コメント

コメントしてください




保存しますか?