レンタルサーバー SHIFTWEB / シフトウェブ
検索   サイトマップ
Script&Material トップ


ホーム > Script & Material > ブログ・CMS > Movable Type

Movable Typeインストールから開始まで

Movable Typeのファイルの展開から、インストールするための設定


ファイルの展開

それではダウンロードしたMovable Typeのファイルを展開していきましょう。

まだダウンロードしていない場合には、こちらの説明をご覧ください。

Movable Typeのファイルは圧縮されていますので、これを解凍(ファイル展開)しなければなりません。

各種フリーソフト等、zipファイルを解凍出来るソフトが必要です。

ファイルの展開先はどこでもかまいませんが、わかりやすいところに展開しましょう。

ファイル展開を行うと MT-3.**-full-jaというフォルダが作成されますので、フォルダの中を見てみましょう。

上記のようになっているかと思います。 (アイコンや、表示はOSや、利用者の環境にによって異なります。)

以上でファイルの展開は完了です。

2,Movable Typeのインストール設定

まず最初に「 mt.cfg 」の内容をシフトウェブサーバで利用できるよう、変更していきます。
変更にはテキストエディタが必要ですので、用意してください。

テキストエディタで mt.cfgを開いてみましょう。

## Movable Type configuration file [mt.cfg] ##
## ##
## This configuration file holds system-wide configuration ##
## settings that apply to *all* of the blogs in your Movable ##
## Type installation. ##
# Default Language for Movable Type Application Interface.
#
DefaultLanguage ja
# Movable Type uses the CGIPath setting to construct links back to
# CGI scripts; for example, the MT tag <$MTCGIPath$> is substituted
# with the value of the CGIPath setting. You will need to change this
# value when you first install MT; instructions for doing so are in
# the Installation Instructions, in INSTALLING THE MOVABLE TYPE
# APPLICATION CODE, Step 3.

CGIPath http://WWW.YOUR-SITE.COM/PATH/TO/MT/

上記は1行目から表示しています。

18行目に

CGIPath http://WWW.YOUR-SITE.COM/PATH/TO/MT/

という記述があります。 早速変更してみましょう。

CGIPathはMovable TypeのプログラムをインストールするURLとなります。

今回は下記のように変更します。

CGIPath http://test.shiftweb.net/movabletype/

次にデータベースについての設定 DataSourceがあります。

データベースにBerkeley DBを利用する場合

# Instructions, in INSTALLING THE MOVABLE TYPE APPLICATION CODE, Step 8.
# Consider using the MySQL configuration, below.

DataSource ./db

## The following options are commented out: to uncomment an ##
## option, remove the '#' at the beginning of the line. ##

上記のDataSourceはBerkeley DBというデータベースシステムを利用する場合に必要です。 Berkeley DBがデータベースを保存する場所として利用されます。

利用する場合にはデータベースを保存するディレクトリを指定しましょう。

データベースにMySQLを利用する場合

シフトウェブの様にMySQLが利用できる環境の場合は、MySQLを利用した方が高速に動作しますので、利用しない場合には、先頭に # を入れてコメントアウトしましょう。

#DataSource ./db

MySQLデータベースを利用する場合には、次も修正します。(Berkeley DBを利用する場合には必要有りませんので、読み飛ばしてください。)

mt.cfgの38〜41行目が次のようになっています。

# Configuration for MySQL databases. Add the name of your database
# and the username that you have for logging in to that database
# below. The password needs to go in the file mt-db-pass.cgi.
#

# ObjectDriver DBI::mysql
# Database <database-name>
# DBUser <database-username>
# DBHost localhost
#
# ThrottleSeconds is the minimum number of seconds between comments
# from a single IP address. Setting this to 0 will turn off the

上記を下記のように変更します。

ObjectDriver DBI::mysql
Database test_db
DBUser test
DBHost localhost

先頭行のコメントを外して設定を有効にします。

Database をお客様アカウントのデータベース名に変更します。 < >は必要ありません。

DBUser お客様アカウントのデータベースユーザ名に変更します。 < >は必要ありません。

DBHostを localhostに変更します。

MySQLデータベースを利用する場合には、ここでいったん別のファイル、 「 mt-db-pass.cgi 」を開いてください。

mt-db-pass.cgi

database_password

上記が記載されていますが、上記を削除してMySQLデータベースのパスワードを入力してください。

(MySQLパスワードは、アカウントのパスワードとは別になっていますのでご注意ください)

パスワードを入力したら保存してファイルを閉じます。

以上でMYSQLデータベースの設定は終わりです。


次の142行目を変更します。

# 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
#
#
# In addition to controlling permissions via umask settings, you can also
# use the HTMLPerms and UploadPerms settings to control the default

上記はパーミッションのマスク設定となります。 下記のように変更してください。

DBUmask 0022
HTMLUmask 0022
UploadUmask 0022
DirUmask 0022

次に文字コードの設定です。

# encoding that is sent in the HTTP headers.

PublishCharset utf-8
# PublishCharset Shift_JIS

# If you change the PublishCharset option, you may also need to resort

上記は文字コードの設定ですが、utf-8またはShift_JISまたは、EUC-JPに変更することが可能です。

ご希望の文字コードに変更しましょう。 今回はデフォルトのUTF-8とします。

以上で完了です。

以上で mt.cfgの設定は完了です。 お疲れ様でした。

[ ファイルのアップロードからMovable Typeの初期化まで ] に進む

Movable Typeトップページへ戻る

このページは参考になりましたか?

参考になった わかりにくかった 参考にならなかった
情報が少ない 情報が古い 間違いがある

ご意見ご感想 

このページの最終更新日 2006年3月8日