Use MoinMoin as your personal knowledge base
03月 2nd, 2008 by
yhlfh
This entry is about how to install a standalone MoinMoin on your debian box. Because time is valuable, I’ll make it as easy as possible.
Step 0. Install MoinMoin
# apt-get install python-moinmoin
Step 1. Copy the files
$ cp -R /usr/share/moin/data $LOCATION
$ cp -R /usr/share/moin/underlay $LOCATION
$ cp /usr/share/moin/config/wikiconfig.py $LOCATION
$ cp /usr/share/moin/server/moin.py $LOCATION
Here $LOCATION is your MoinMoin installation directory, say, where you want to install MoinMoin in. It can be ~/moinmoin or something else.
Step 2. Set permissions
$ chmod -R a+rwX $LOCATION
I don’t know why, maybe you can skip this step and have a try.
Debian Wiki describes:
Normal users, on the contrary, need to broaden the permissions of the files, so that the web server can read and write them.
Step 3. Configure
There’re two files you need to configrue, moin.py and wikiconfig.py which you have copied on step 1. What you need to modify is the sitename, superuser, coding or maybe language etc. the config files have comments so you can easily understand. Make sure to gain youself superuser rights in wikiconfig.py.
In moin.py, you will see the following:
# Path of the directory where wikiconfig.py is located.
# YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
sys.path.insert(0, './')
# Path of the directory where farmconfig is located (if different).
#sys.path.insert(0, '/etc/moin')
Make sure sys.path.insert(0, './') is uncommented and sys.path.insert(0, '/etc/moin') is commented.
We are finished! Now start your MoinMoin with moin.py script and visit it via http://127.0.0.1:8000/.
References:
http://wiki.debian.org/MoinMoin/InstallDocs#linuxstandalone-install
http://wiki.debian.org/HelpOnInstalling/WikiInstanceCreation
