MTOSセットアップ
Webブラウザのアドレスバーへ「http:localhost/mtos4/mt.cgi」と入力し、mt.cgiへアクセスしてみます。
正常にセットアップが開始されれば、XAMPPでのローカル環境の構築は成功です。
「ディレクトリ「mt-static」にアクセスできない」旨のエラーメッセージが表示された場合は、あらかじめmt-config.cgiを準備します。mtos4フォルダ内のmt-config.cgi-originalというファイルをmt-config.cgiにリネームし、内容を書き換えます。以下の図ではこの解説での内容で書き換えています。
## Movable Type configuration file ##
## ##
## This file defines system-wide settings for Movable Type ##
## In total, there are over a hundred options, but only those ##
## critical for everyone are listed below. ##
## ##
## Information on all others can be found at: ##
## config
################################################################
##################### REQUIRED SETTINGS ########################
################################################################
# The CGIPath is the URL to your Movable Type directory
CGIPath http://localhost/mtos4/
# The StaticWebPath is the URL to your mt-static directory
# Note: Check the installation documentation to find out
# whether this is required for your environment. If it is not,
# simply remove it or comment out the line by prepending a "#".
StaticWebPath http://localhost/mtos4/mt-static
#================ DATABASE SETTINGS ==================
# REMOVE all sections below that refer to databases
# other than the one you will be using.
##### MYSQL #####
ObjectDriver DBI::mysql
Database hoge
DBUser hoge
DBPassword 3030
DBHost localhost
##### POSTGRESQL #####
# ObjectDriver DBI::postgres
# Database DATABASE_NAME
# DBUser DATABASE_USERNAME
# DBPassword DATABASE_PASSWORD
# DBHost localhost
##### SQLITE #####
# ObjectDriver DBI::sqlite
# Database /path/to/sqlite/database/file
上記のようにmt-config.cgiを準備して、もう一度Webブラウザのアドレスバーへ「http:localhost/mtos4/mt.cgi」と入力し、mt.cgiへアクセスしてみます。
- ページ先頭へ
- 前のエントリ: ローカル環境へMTOSのインストール
- カテゴリ:Windows版XAMPPのセットアップ