WindowsでのMovableTypeインストール
概要
Windows環境でのMovableTypeのインストールを記載
Apache設定
apacheのhttp.confファイルにバーチャルホスト用の設定ファイルを用意して再起動
<VirtualHost *:80>
ServerAdmin mt.example.jp
DocumentRoot "C:/xampp_works/xampp1.7.7/htdocs_mt.example.jp"
ServerName mt.example.jp
ServerAlias mt.example.jp
ErrorLog "logs/mt.example.jp-error.log"
CustomLog "logs/mt.example.jp-access.log" combined
ScriptAlias /cgi-bin/ "C:/xampp_works/xampp1.7.7/htdocs_mt.example.jp/cgi-bin/"
<Directory "C:/xampp_works/xampp1.7.7/htdocs_mt.example.jp">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "C:/xampp_works/xampp1.7.7/htdocs_mt.example.jp/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
hotsファイルに以下を設定または追加
127.0.0.1 localhost mt.example.jp
ドキュメントルート用のフォルダを作成
サンプル用のindex.phpを作成
テキストにデータを設定
hostsのホストにブラウザよりアクセスして、確認
cgi-binフォルダを作成
テスト用のcgiファイルを作成
テスト用スクリプト
test.cgiへアクセスして確認できること(ヘッダーの出力がないとエラーになります)
MySQL設定
MTのデータを格納するデータベースを作成
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\matsumoto>cd c:\
c:\>cd C:\xampp_works\xampp1.7.7\mysql\bin
C:\xampp_works\xampp1.7.7\mysql\bin>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.16 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database mt_db;
Query OK, 1 row affected (0.02 sec)
mysql> quit;
Bye
C:\xampp_works\xampp1.7.7\mysql\bin>
設定手順
ダウンロードしたMovableTypeのファイルを解凍
cgi-binフォルダにフォルダ毎コピーして名前を"mt"へ変更
mt直下のcgiファイルを確認
先頭の1行目にperlのパスがあるが、linuxの記載のため、環境に合わせて変更
mt-staticのフォルダをドキュメントルート直下へ移動
http://ホスト/cgi-bin/mt.cgiにアクセスすると設定画面を表示するので、パラメータを設定して、「開始」ボタンを押下
システムチェックが行われ、問題なければ「次へ」を押下
データベースの設定を行い、「接続テスト」をクリック
成功したら。「次へ」
メールの設定を入力し、「テストメールを送信」
送信先を設定して、「送信」
成功したら「次へ」
テンポラリディレクトリを確認して、「次へ」(デフォルトのままで問題ないと思われる)
構成ファイルが作成され、「次へ」
アカウントの情報を設定して、「次へ」
ウェブサイトの譲歩を設定して「インストール」
インストールが開始
インストールが完了後にサインインを行う
アカウントの情報でサインインを行う
管理画面を表示
オプションモジュールをインストール
「ユーザーダッシュボード」>「システム」を選択
システムの管理画面の「システム情報」をクリック
システム情報を表示
不足しているモジュールがある場合は別途インストールする
最終更新:2013年05月22日 20:04