SOCKET

Monday Apr 24, 2006

Moinmoin Wiki Installation


Prerequisite -> The latest version of Python to be installed. Docs for which can be found here:-

http://www.agbooth.com/SOCKETBlog/www.socketelf.org_8080/roller/page/socket?entry=mod_python_installation

OK, firstly, pull the latest version of moinmoin down from:-

http://sourceforge.net/project/showfiles.php?group_id=8482

then:-

tar zxvf moinmoin-1.5.x.tgz
cd moinmoin-1.5.x

It would help to pull up the official docs at this point at:-

http://moinmoin.wikiwikiweb.de/HelpOnInstalling

The first stage of the install is called BasicInstallation.

Assuming your Python location is in your PATH, simply type:-

python -v setup.py --quiet install --record=install.log

This will install the relevant files into the home directory e.g. ~moinmoin

Then to test:-

> python
Python 2.3.4 (#1, May 29 2004, 17:05:23)
[GCC 3.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MoinMoin
>>>


easy as pie! Moinmoin is now installed…unless you see errors in the above.

The next step is to create an instance of a wiki.

Like it says in the docs, choose a location to put your wiki’s, e.g:-

~moinmoin/share/moin

and create a directory named after your wiki e.g.:-

~moinmoin/share/moin/socket

Then copy the following dir’s into that dir:-

data
underlay
wikiconfig.py
and the contents of ‘htdocs’

This was the flaw in the docs. As far as I could see as there was no mention of this step and thus the wiki fails to load correctly.

There are a couple of tweaks required to wikiconfig.py, namely change the location of the ‘data’ and ‘underlay’ dirs from relevant to absolute.

Change permissions as follows:-

chmod –R 777 data
chmod –R 777 underlay

The next step is to configure Mod Python which you can find at:-

http://www.agbooth.com/SOCKETBlog/www.socketelf.org_8080/roller/page/socket?entry=mod_python_installation

Then add the following to your directive in httpd.conf:-

<Location /mywiki>
SetHandler python-program
# Add the path of your wiki directory
PythonPath "['/var/www/moin/mywiki'] + sys.path"
PythonHandler MoinMoin.request::RequestModPy.run
</Location>

obviously amend to suit your environment.

That’s basically it, a quick restart of apache, check of the error logs, and we’re ready to roll!!!

Simply go to your browser and browse to:-

http://youripaddress:yourport/yourwiki

Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Feeds

Search

Links

Navigation

Referers