Damjan Georgievski edited this page Oct 28, 2018 · 2 revisions

Install MoinMoin with mod_wsgi on Debian 6.0

Install everything:

apt-get update
apt-get install libapache2-mod-wsgi
apt-get install python-moinmoin

Create a special user for the wiki (locked out):

adduser moin
passwd -l moin

Copy files needed for the Moin instance:

cp -r /usr/share/moin/data /usr/share/moin/underlay /home/moin
chown -R moin:moin /home/moin/data/ /home/moin/underlay/
mkdir /home/moin/py-lib

There are 3 config files needed. The apache configuration ##moin-apache.conf##, the mod_wsgi app file ##moin.wsgi## and moinmoin's ##wikiconfig.py##.

cp /usr/share/moin/server/moin.wsgi /home/moin
cp /usr/share/moin/config/wikiconfig.py /home/moin/py-lib/wikiconfig.py

ln -s /home/moin/moin-apache.conf /etc/apache2/sites-enabled/001-moin

In the end just restart the Apache server. It should start several ##wsgi-moin## child processes.

/etc/init.d/apache2 restart

Typical config files:

moin-apache.conf:

WSGIScriptAlias / /home/moin/moin.wsgi
WSGIDaemonProcess moin user=moin group=moin home=/home/moin processes=5 threads=10 maximum-requests=1000 umask=0007 display-name=wsgi-moin python-path=/home/moin/py-lib
WSGIProcessGroup moin
Alias /moin_static193 "/usr/share/moin/htdocs/"

moin.wsgi:

import sys, os

from MoinMoin.web.serving import make_application
application = make_application(shared=True)
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.