4
This Debian package has been tested mostly as CGI script with Apache 1.3.
6
It should work with any web server supporting either of these:
10
* Apache Python module
14
Example: A single wiki as CGI with Apache 1.3
15
---------------------------------------------
17
1) Create and populate /var/www/mywiki
18
# mkdir /var/www/mywiki
19
# cp -r /usr/share/moin/server/moin.cgi /var/www/mywiki
20
# mkdir /var/lib/mywiki
21
# cp -r /usr/share/moin/data /usr/share/moin/underlay /var/lib/mywiki
23
2) Pass on the wiki to Apache:
24
# chown -R www-data: /var/www/mywiki /var/lib/mywiki
26
3) Configure Apache 1.3:
27
Add the following lines to /etc/apache/httpd.conf:
29
Alias /wiki/ "/usr/share/moin/htdocs/"
30
ScriptAlias /MyWiki "/var/www/mywiki/moin.cgi"
34
4) Configure MoinMoin:
35
Edit /etc/moin/farmconfig.py to include mywiki like this:
38
("mywiki", r"^your.site/mywiki/.*$"),
41
Also, in /etc/moin/farmconfig.py comment out data_dir and
42
data_underlay_dir (we need those defined separately for each wiki)
44
# cp /etc/moin/moinmaster.py /etc/moin/mywiki.py
45
Edit /etc/moin/mywiki.py to include these lines:
47
sitename = u'MyWiki' # [Unicode]
48
data_dir = '/var/lib/mywiki/data'
49
data_underlay_dir = '/var/lib/mywiki/underlay'
51
5) Enjoy your new wiki at http://your.site/MyWiki/
54
For more complex setups for apache 1.3 and 2.0, you may find inspiration
55
in *.conf files below /usr/share/doc/moinmoin-common/examples/*.conf .
57
For more info, both related to above example and other setups like
58
Twisted or standalone, read the upstream file
59
/usr/share/doc/moinmoin-common/INSTALL.html .
62
Migrating from earlier version of moin
63
--------------------------------------
65
Please follow the upgrade description in
66
/usr/share/doc/moinmoin-common/README.migration(.gz). beware that the
67
document was written upstream so some info may not apply to this Debian
70
No prerelease of MoinMoin has been packaged officially for Debian, so if
71
upgrading from an earlier testing or unstable Debian package, you
72
probably want to run (one after the other) all of
73
/usr/lib/python2.3/site-packages/MoinMoin/scripts/migration/*mig*.py .
75
TIP: If you use mc (Midnight commander) then tag all migration scripts
76
and run the following while in the opposite window outside of the data
79
for f in %T; do %D/$f; done
82
See also these links for additional cleanup after migration:
84
http://moinmoin.wikiwikiweb.de/RemovingUnwantedLanguages
85
http://moinmoin.wikiwikiweb.de/RemovingSystemPages
91
The Debian packaging of MoinMoin has farmconfig enabled by default, and
92
it is recommended to always use farmconfig instead of wikiconfig.py.
94
Some upgrades of MoinMoin require migration of data (as was the case
95
from 1.2.4 to 1.3.4). Future Debian packaging routines may offer to do
96
the migration automatically, but only for farmconfig wikis!