Movable Type4.2インストール

Pocket

いやいや、これは面倒なインストールだ。

シックスアパートからダウンロードしたzipファイルを今回用意したmt_testディレクトリに置いて解凍。

●今までMacPortsからコンパイルしたものの上に更に下記もインストール

$ sudo port install p5-crypt-dsa
$ sudo port install p5-archive-zip
$ sudo port install p5-xml-atom

Movable Typeのためのサーバー設定

●PerlのパスをMacPortsのインストールディレクトリへ変更
http://gabs.cc/blog/bun/topic20090608-1456.phpを参考に
MacPorts上からインストールしたImageMagickは、/opt/local/bin/に存在。
そこで、/usr/bin/にあるperlをMacPorts上のperlに置き換え。
/opt/local/bin/の中にあるperlのシンボリックリンクを/usr/bin/に作り、これをMovable Typeに読み込ませるという設定をする。
MacPortsのMovable TypeからImageMagickが使えるようになりました。

$ cd /usr/bin/
$ sudo mv perl perl.bak
$ sudo ln -s /opt/local/bin/perl /usr/bin/perl

●CGIをどこでも使えるようにhtaccessの設置
MacPortsはCGI(Perl)を実行できるディレクトリが/opt/local/apache2/cgi-binに制限されているので、どこでも使えるように変更。
localhostのディレクトリにhtaccessを設置します。

#This is a .htaccess For Movable Type CGI
 Options +ExecCGI
 AddType application/x-httpd-cgi .cgi .pl

と書いて.htaccessファイルをhtdocsディレクトリに置く。

●mt-config.cgiの修正
/mt/mt-config.cgiをエディタで開いて、修正を加えます。
MacサーバーではMySQLのみを使用しているので、それ以外はコメントアウトする。

##          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:                 ##
## http://www.movabletype.org/documentation/appendices/config-directives/ ##
################################################################
##################### REQUIRED SETTINGS ########################
################################################################
# The CGIPath is the URL to your Movable Type directory
 CGIPath    http://localhost/mt_test/
# 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/mt_test/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 mt_test
 DBUser mt_test
 DBPassword パスワードを書く
 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

http://localhost/mt_test/mt.cgiにアクセスするとやっと登録画面が出てくる。
mt_account_topとりあえず、このブログはここで一度公開。

Tags : ,

Comments (0)

コメントする

  • スパム・迷惑コメント投稿防止のため、メールアドレスの入力が必須ですが、公開はされません。
  • 投稿いただいたコメントは管理者のチェック後掲載しておりますので、即時には反映されません。
(必須)
メールアドレス(必須・公開されません)
コメント本文(必須)

ページトップへ