2007年8月28日

MT4 + mod_perl2

Movable Typeを少しでも早く動かそうとmod_perlを導入することにした.
英語版の動作要件要件には

Movable Type does not currently support execution under mod_perl with Apache 2.x.

http://www.movabletype.com/products/mt4.html
とあり, ダメかなと思ったけど, 試しにインストール.

emerge -uDN libapreq2
して,
/etc/conf.d/apache2のAPACHE2_OPTSに”-D PERL“を追加
“-D APREQ“が要るのかはよく分からないけど, 入れておいた.

つづいて, /etc/apache2/modules.d/の75_mod_perl.conf
不要そうな所はコメントアウトしつつ,

PerlSwitches -I/data/www/localhost/cgi-bin/blog/lib -I/data/www/localhost/cgi-bin/blog/extlib
<Directory “/data/www/localhost/cgi-bin/blog”>
<Files mt-[^(config)]*.cgi$>
SetHandler perl-script
</Files>
PerlResponseHandler ModPerl::Registry
#PerlResponseHandler ModPerl::PerlRun
Options -Indexes ExecCGI
PerlSendHeader On
</Directory>

を追加.

PerlSwitchesの行を入れないと, モジュールが見つからないと文句を言われる.

<Files mt-[^(config)]*.cgi$>
のところを
<Files *.cgi>
としたら,

Missing configuration file. Maybe you forgot to move mt-config.cgi-original to mt-config.cgi?

と文句を言われる.

これで多少は早くなったのかなぁ…

トラックバック

» 続: MT4 + mod_perl2 from B忘log - Hi-LoのBlog
8/28にここで書いたこと間違いだらけ. そもそも, MT4はマルチスレッドなMPMを使用しているApache2上ではうごかない. ... 続きを読む

コメントする