Trac - Apache との連携
CGI で Trac を動かすのはちょっと重かったので mode_python で動かすことに。
Apache をビルド・インストール
$ ./configure --prefix=/Users/yusukey/apache2.0.55 --enable-dav --enable-dav-fs --enable-deflate --enable-proxy --enable-proxy-http --enable-rewrite --enable-so
$ make
$ make install
mod_python をビルド・インストール
$ ./configure --with-apxs=/Users/yusukey/apache2.0.55/bin/apxs --with-python=/sw/bin/python2.3
$ make
# make install
Alias /trac/ /sw/share/trac/htdocs/
<Location "/trac">
SetHandler mod_python
PythonHandler trac.ModPythonHandler
PythonOption TracUriRoot "/trac"
PythonOption TracEnvParentDir /Users/yusukey/tracrepo/
</Location>
アクセスするとなんか 500 になる。
[Sat Feb 18 21:46:23 2006] [error] [client ::1] PythonHandler trac.ModPythonHandler: Traceback (most recent call last):
[Sat Feb 18 21:46:23 2006] [error] [client ::1] PythonHandler trac.ModPythonHandler: File "/sw/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch\n log=debug)
python2.3 を使うように設定したはずなのになぜか 2.4 が使われてる。
ちょっとしらべたけどわからず Python 2.4 ベースで試してみることに。
$ fink install svn-ssl-swig-py24
$ fink install trac-py24