搭建公司WIKI服务
Posted on Wed 02 January 2008 in 我用(IT)
获取软件包
- moinmoin 1.6.0
wget http://static.moinmo.in/files/moin-1.6.0.tar.gz
tar -xzf moin-1.6.0.tar.gz
- Python-2.5.1
wget http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz
tar -zxvf Python-2.5.1.tgz
安装
- Check if Python is working
> python -V
Python 2.5.1
- Install MoinMoin
> tar xzf moin-1.6.0.tar.gz
> cd moin-1.6.0
> python setup.py install --prefix="/usr/local" --record=install.log
The additional -v flag should provide you detailed verbose messages every step of the way.
> python -v setup.py install --prefix="/usr/local" --record=install.log
- Test Install
> python
Python 2.5.1 (r251:54863, Jan 2 2008, 12:38:17)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MoinMoin
>>>
创建实例
略,可参考wiki本身帮助,建一个创建实例的脚本
配置
- Configure moin.cgi
Below directory that contains the wikiconfig.py file.
sys.path.insert(0, "$YourWikiPath")
- Configure wikiconfig.py
data_dir
data_underlay_dir
- Configuration Apach
<Directory "$YourWikiPath">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/share/moin/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /moin_static160/ /usr/local/share/moin/htdocs/
ScriptAlias /wiki $YourWikiPath/cgi-bin/moin.cgi
- startup apache
/etc/init.d/httpd restart
- current wiki
httpd -k start