跳至主要内容

安装MoinMoin

总算装上了

安装其实很简单,就像帮助写的那样,用google搜一把就可以出来一堆差不多的

先安装Apache和Python,这两个顺序没关系,然后装Moin,默认安装(不加--prefix)时是装到python下的,装完后会在python下多出share\moin,以及Lib\site-packages文件夹,默认安装应该就可以了,在python中import MoinMoin没出现问题,如果使用prefix就需要做一些设置。

所谓的创建wiki实例,其实就是将默认的wiki拷一份出来,随便放哪,帮助上写得很清楚,data, underlay两个目录全拷,servers, config目录下的文件(不含子目录),这样实例就创建好了,也可以创建多个实例,比如信息量过大,靠一个wiki不够等等原因,同理。

修改moin.cgi,第一行!一定要改,这个是用来解释该cgi脚本的python程序路径,windows下的安装很容易漏掉这一点,其次是指定wikiconfig.py的路径,如果相对路径有问题,建议用绝对路径。

修改wikiconfig.py,需要修改的上面都有说明,照着来吧

在apache中映射。如果按帮助来做,映射完后是无法访问的,出现403 Fobidden错误,原因是apache中没有开放目录的权限,这一点可以通过

allow from all

来做,开放cgi目录的权限,禁止data及underlay目录的权限,这样就可以了。

补充一点,如果我只想要一个wiki,希望http://127.0.0.1/就能打开wiki,而不是http://127.0.0.1/mywiki,这需要在apache中设置,注意的是如果仅用
ScriptAlias / "path/to/moin.cgi"
是只能访问首页的,其它页面一律找不到,找到一个解决办法是改为
ScriptAlias / "path/to/moin.cgi/"
即加一个'/',不明其由,只是从apache的error.log来看,链接的地址间差了一个'/'

目前还刚刚接触apache,很多还不懂,不过查看error.log的确是一个解决问题的有效方法。

评论

此博客中的热门博文

反转剧

这两天明显感到天气转冷,呱呱的家里也已经下起了大雪,南京则是阴冷潮湿,让人没有了出行的欲望。没想到躲在被子里看反转剧也成了度过寒冬的一剂良药。在PPLive越来越让人失望的时候,PPStream横空出世,虽然广告仍是少不了的主题,但从视频质量和播放连续性上来说都超过PPLive,实为居家必备之良品(由此可见,新事物一定会战胜旧事物......)。韩国的反转剧最近似乎比较流行,称之为反转剧就在于其结果总是让人出乎意料,不合常理,其间又不乏各种搞怪搞笑的镜头,各种当红帅哥美女也一定让DDMM们爱不释手,20~30分钟一集的剧情一改韩剧拖沓的风貌,想看就看,容易切入。 反转剧,今天你看了吗?

from cpp to java

when i start to study java with a cpp background, i find it is very difficult to convert my mind. i always think how some features in cpp was implemented in java, this give me a little reject to java language. though java is born from c, i think they still have different applicable domains, so try to study both is good for me, and java is a pure OO language, i believe it will give me a better understanding on OOD.

Personalized Google Home

Using your google account, you can create a personalized homepage. You can customize several modules, including various news, gmail, bookmarks. This service is similar to what http://www.netvibes.com/ provides. The drawback is the inconvenience of bookmark module. It doesn't provide grouping while netvibes provide tags to implement this. Wishing google will improve this defect in the near future. Meanwhile, the Live plan of Microsoft is also going on. MS presents several several servicies to counterattack google's counterparts. Virtual Earth (see http://preview.local.live.com ) is a recent service. It provides map service just like google earth, provides a virtual tour better than google. Imaging driving a car in the map and seeing everything real, maybe you can do a virtual europe tour now. Seems interesting. MS also provides a customized home, you can log into www.live.com via your msn accounts. I haven't tried that yet.