补Moinmoin 小刀切切

| | Comments (0) | TrackBacks (0)

前几天写了一篇moinmoin安装配置的东东,家里网络不好,没存下来就挂了。真是无用。眼看着这个月就要过去了,总共才写了一篇,实在是对不起苍天黄土。

费话少絮,切正题。先安装一个www/moinmoin

cd /usr/ports/www/moinmoin && make install clean

这个ports现在可以用make instance帮你做许多事了。这里有几个变量要说明一下。

MOINDEST wiki数据放在哪里
MOINTYPE wiki运行在哪种模式下面cgi,fastcgi,standalone??

即然这样,就干吧,当然了我是要用mod_python驱动了。

make MOINDEST=/www_root/wiki instance

ports能做的事情就这么多了。设置Apache如下

Alias /moin/ "/usr/local/share/moin/htdocs/"
<Location /wiki>
    SetHandler python-program
    PythonPath "['/www_root/wiki'] + sys.path"
    PythonHandler MoinMoin.request.request_modpython::Request.run
</Location>

还有一个文件是wikiconfig.py

sitename 
interwikiname
logo_string
data_dir #这个东东要注意请写绝对路径
data_underlay_dir #同上
url_prefix_static #这个要和Apache的Alias地址一样
language_ignore_browser  #你想让用户按浏览器语言来显示吗?No.

这样子也就可以用了。地址就是http://host/wiki

0 TrackBacks

Listed below are links to blogs that reference this entry: 补Moinmoin 小刀切切.

TrackBack URL for this entry: http://blog.khsing.net/cgi-bin/mt-tb.cgi/12

Leave a comment

About this Entry

This page contains a single entry by Guixing published on March 19, 2008 12:53 PM.

Shell Script陷阱和缺陷 was the previous entry in this blog.

django: 在命令行下执行的脚本 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.