1. Install Apache2 and mod-wsgi.
sudo apt-get install apache2 libapache2-mod-wsgi
2. Download and install Moinmoin
tar xvfz moin-1.9.x.tar.gz
python setup.py install
This installs the codebase to
/usr/local/lib/python-2.6/dist-packages/ for the Ubuntu system we used.
3. Copy the base files and directories
/usr/local/share/moin to the directory of your choice, such as a directory under
4. Edit the
server/moin.wsgi file and make sure your paths are correct. Pay particular attention to sections a1 and a2.
5. Copy the example
config/wikiconfig.py into your main wiki directory. Edit it to reflect your preferences (sitename, page_front_page, superuser, etc).
6. Create your VirtualHost file in
/etc/apache2/sites-available. The default user for Apache2 in Ubuntu is www-user so we'll stick with that. Add this code to the standard VirtualHost code:
WSGIScriptAlias / /var/www/yourmoindirectory/server/moin.wsgi WSGIDaemonProcess moin user=www-data group=www-data home=/var/www/dnd processes=5 threads=10 maximum-requests=1000 umask=0007 WSGIProcessGroup moin
You might also want to add Aliases for static and admin files at this point.
7. Symlink it in
sites-enabled and restart the server. If all went well, you should see the wiki start page. If things did not go so well, be sure to check the permissions on the wiki folders.