Description

docs path in Wikiserverconfig.py does not work

I installed version 1.8.1 on a small linux box (NSLU2, 32 MB RAM) as described on HelpOnInstalling/BasicInstallation and HelpOnInstalling/WikiInstanceCreation

 > cd /home/rudi
 > tar -xzf moin-1.8.1.tar.gz 
 > cd moin-1.8.1
 > python setup.py install --prefix=$HOME --record=install.log
 > ./createinstance.sh /home/rudi/RudisWiki
 giving the folders in /home/rudi: bin, lib, RudisWiki and share

and attempted to use moin in standalone server mode. Next I edit wikiconfig.py in RudisWiki (only the changes):

    sitename = u'RudisWiki'
    page_front_page = u'FrontPage'
    interwikiname = u'RudisWiki'
    show_interwiki = 1
    #data_dir = './data/'
    data_dir = '/home/rudi/RudisWiki/data/'
    #data_underlay_dir = './underlay/'
    data_underlay_dir = '/home/rudi/RudisWiki/underlay/'
    superuser = [u'xxxxx', ]
    acl_rights_before = u"xxxxx:read,write,delete,revert,admin All:read"
    language_default = 'de'

Unfortunately the file wikiserverconfig.py was not copied by the setup.py program. I edit the following in wikiserverconfig.py:

> cp moin-1.8.1/wikiserverconfig.py RudisWiki/wikiserverconfig.py
    user = 'rudi'
    group = 'rudi'
    interface = '' # for internet use
    docs = "/home/rudi/share/moin/htdocs"

Even with defining the docs path in wikiserverconfig.py as described in HelpOnInstalling/StandaloneServer the wiki does not work. Moin still uses a default path.

With the great help of <dreimark> (chat on freenode #moin) the following call works:

> /home/rudi/lib/python2.5/site-packages/MoinMoin/script/moin.py server standalone --config-dir="/home/rudi/RudisWiki" --start
instead of 
> moin server standalone --start

which looks a bit complicated, me alone would not find that out.

Second try, if I just edit wikiconfig.py in moin-1.8.1 accordingly:

    DesktopEdition = False #  for use on internet
    superuser = [u'xxxxx', ]
    acl_rights_before = u"xxxxx:read,write,delete,revert,admin All:read"
    language_default = 'de'

and wikiserverconfig.py

    user = 'rudi'
    group = 'rudi'
    interface = '' # for internet use

The start is now:

> moin server standalone --start

that looks much less complicated.

So the improvements I see are that:

Edit by RudolfReuter 2008-12-27 08:41 (reuterr at web dot de)

Component selection

Details

MoinMoin Version

1.8.1

OS and Version

OpenSlugOS/BE 3.1(debian based)

Python Version

2.5.2

Server Setup

standalone

Server Details

Language you are using the wiki in

(set in the browser/UserPreferences)

Workaround

Discussion

The setup for the standalone server for linux should be simplified, in order to give novice users a chance to get such a good (in prinziple) system to work. When you consider, that today a $80 server (Linksys NSLU2 box), DSL and www.dyndns.org is sufficient to setup an internet web server, more people with less skill (like me) could use MoinMoin at home for their own wiki.

(!) The trivial way to "install" moin standalone is to unpack the download archive and run ./wikiserver.py - that's it, everything will work "out of the box"!

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.8.1_ServerStandaloneDocsPath (last edited 2009-02-05 18:29:24 by ThomasWaldmann)