22nd Jan 2009
This is time consuming and I ultimately didn’t use the thing in the end. Not enough guidance.
MoinMoin was supposedly an easy wiki to use. It is, sort of. This is how I set it up in the end. It’s based around the FTP install instructions, however I used my SSH access to do most of it.
Things I had (and Didn’t)
- SSH access
- No access to anything other than CGI
- No root access
How I did it
Just for reference the folder structure was:
[wiki.site.com]
|
+- [HTML[
|
+- [cgi-bin]
Setting up
- Connect to the sever, use wget to fetch MoinMoin to wiki.site.com folder.
- untar and rename to something easier.
- Create .htaccess file in the HTML directory to enable CGI anywhere
AddHandler cgi-script .cgi
Options +ExecCGI
Copying folders + files
- You need to copy three folders out of the untar’d moin directory into the wiki.site.com folder: wiki/data, wiki/underlay and MoinMoin.
[wiki.site.com]
|
+- [HTML]
|
+- [cgi-bin]
|
+- [data]
|
+- [underlay]
|
+- [MoinMoin]
- Copy the contents of the htdocs folder (cp -R moin/wiki/htdocs/* html/moin_static181) into a folder called moin_static181 in the HTML folder.
[wiki.site.com]
|
+- [HTML]
| |
| +-[moin_static181]
|
+- [cgi-bin]
|
+- [data]
|
+- [underlay]
|
+- [MoinMoin]
- Create a folder called config and copy wikiconfig.py from moin/wiki/config/ into it.
[wiki.site.com]
|
+- [HTML]
| |
| +-[moin_static181]
|
+- [cgi-bin]
|
+- [data]
|
+- [underlay]
|
+- [MoinMoin]
|
+- [config]
- Copy moin/wiki/server/moin.cgi into the HTML folder.
Edit configs
moin.cgi
Three things need changing:
#!/usr/bin/env python to #!/usr/bin/python
- uncomment
# sys.path.insert(0, 'PREFIX/lib/pythonX.X/site-packages') and change it to # sys.path.insert(0, '../')
- find
sys.path.insert(0, '/path/to/wikiconfig') and change to sys.path.insert(0, '../config')
wikiconfig.py
Two things to change:
- data_dir to
data_dir = '../data/'
- underlay_dir to
data_underlay_dir = '../underlay/'
And that’s it!
You will now have a functioning MoinMoin wiki.
Playing around though I wasn’t impressed though, too much still needed to be done.