Debian Sarge isn't supported anymore
Debian doesn't provides security updates any more for Sarge. DO NO USE IT
Debian Sarge, with apache2 and mod_python
- Apache2 and mod_python should be installed by now.Install moinmoin.
# apt-get install python-moinmoin # mkdir /var/www/mywiki # cp -r /usr/share/moin/data /usr/share/moin/underlay /usr/share/moin/server/moin.cgi /var/www/mywiki # chown -R www-data:www-data /var/www/mywiki # chmod -R g+w /var/www/mywiki
- 1.Configure apache2
- Add the following lines to /etc/apache2/conf.d/wiki:
Alias /wiki/ "/usr/share/moin/htdocs/" <Location /mywiki> SetHandler python-program PythonPath "['/var/www/mywiki','/etc/moin/']+sys.path" PythonHandler MoinMoin.request::RequestModPy.run PythonDebug On </Location>
- 1.Reload apache2
/etc/init.d/apache2 reload
- 1.Configure Moinmoin
- 1.Edit /etc/moin/farmconfig.py
wikis = [ ("mywiki", r"^yoursite.com/mywiki/.*$"), ]
- 1.Or you can use. This will work for www.yoursite..., /mywiki/ ,and /mywiki
wikis = [ ("mywiki", r".*"), # this is ok for a single wiki ]
- 1.Also, in /etc/moin/farmconfig.py comment out data_dir and data_underlay_dir (we need those defined separately for each wiki) 1.Copy this file, If its not in there then don't worry about it.
# cp /etc/moin/moinmaster.py /etc/moin/mywiki.py
- 1.Then edit /etc/moin/mywiki.py
sitename = u'MyWiki' # [Unicode] data_dir = '/var/www/mywiki/data' data_underlay_dir = '/var/www/mywiki/underlay'
- Comment out any other data_dir that might exist there.
1.Enjoy your new wiki at http://yoursite.com/mywiki/ 1.Thanks to http://lucasmanual.com/mywiki/
How to?
I don't know how to make these work:
- www.yoursite.com/mywiki/
- yoursite.com/mywiki
- use DynDNS and ddclient