moinmoinの設定
結局家でもやることにしました。
ubuntu7.04の場合はまず下記のようにインストール
$ sudo apt-get install apache $ sudo apt-get install libapache-mod-python $ sudo apt-get install python-moinmoin
次にapacheのetc/apache/access.confに
ScriptAlias /mywiki "パス/mywiki/moin.cgi"Order deny,allow Allow from all Options ExecCGI SetHandler python-program # Add the path of your wiki directory PythonPath "['パス/mywiki/'] + sys.path" PythonHandler MoinMoin.request::RequestModPy.run PythonDebug ON
データディレクトリの作成はシェルファイルをローカルにコピーし
$ cp /usr/share/moin/underlay/pages/HelpOnInstalling\(2f\)WikiInstanceCreation/attachments/createinstance.sh .
使いかたは引数にディレクトリ名を渡して実行するだけ
$ ./createinstance.sh *****
上記の設定だとmoin.cgiというファイルをディレクトリにおかないといけないので
$ cp /usr/share/moin/server/moin.cgi *****/