2008-06-22
@ 自宅サーバのOS入れ替え
ちょっと時間がかかってしまいましたが、この日記のサーバのOSをDebian etchからUbuntu 8.04にしました。このtDiaryを動かしているApacheもmod_fastcgiからmod_fcgid(static link)に変更してみましたので、覚書としてやり方を書いておきます。
apacheとmod_fcgidをダウンロードして解凍します。
$ tar xvzf httpd-2.2.9.tar.gz $ tar xvzf mod_fcgid.2.2.tar.gz $ cp mod_fcgid.2.2 httpd-2.2.9/modules/mod_fcgid/ $ cd httpd-2.2.9 $ sh buildconf $ ./configure --prefix=/usr/local/mod_fcgid \ --with-program-name=mod_fcgid \ --with-mpm=prefork \ --enable-shared \ --enable-so \ --enable-fcgid \ --disable-asis \ --disable-cgid \ --disable-proxy \ --disable-proxy-connect \ --disable-proxy-http \ --disable-proxy-balancer \ --disable-proxy-ftp \ --disable-proxy-ajp \ --disable-userdir \ --enable-modules='cgi' \ --enable-mods-shared='rewrite include host-alias' $ make $ sudo make install
これで /usr/local/mod_fcgid にmod_fcgidがstatic linkされたApacheがインストールされます。あとは下記のようにfcgiの設定をすると、tdiaryをFastCGIで動かすことができます
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
SocketPath /dev/shm/mod_fcgid
IPCConnectTimeout 5
IPCCommTimeout 60
</IfModule>
[ツッコミを入れる]