Announcement

Collapse
No announcement yet.

Create a Wiki (MoinMoin - Python - FDKeditor)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Create a Wiki (MoinMoin - Python - FDKeditor)

    I was looking for something to do my documentation, and have it easily available and updateable anywhere. Even though I got this working, and with the graphic GUI editor FCKeditor; but, it did not fulfill my wishes. Maybe one of these days wikis' will use HTML, or at least have a consistent markup language.

    Installation

    Installation was done before it was available from Kubuntu repositories. I used the package(s) found at http://www.apt-get.org/

    Temporarily add
    /etc/apt/sources.list...
    # WIKI: python-moinmoin
    deb http://debian.jones.dk sid misc
    Install - which automatically installs dependencies.
    sudo apt-install python2.4-moinmoin
    Configuration Background

    Wiki configuration consists of 3 levels, any setting in a lower level overrides that setting in a higher level, until the wiki has built it's final configuration.
    1. file:///usr/share/moin/config/wikiconfig.py
    ...which can have settings replaced by
    2. file:///etc/moin/farmconfig.py
    <== use this if you can, not wikiconfig.py
    3. file:///etc/moin/mywiki.py
    4. which results in the final configuration.

    Warning:
    In Python leading spaces mean something! I don't know what, but setting lines don't work unless there are 4 spaces preceeding the command.

    Create a wiki - named MyWiki
    mkdir /var/www/mywiki
    cp -r /usr/share/moin/data /usr/share/moin/underlay /usr/share/moin/server/moin.cgi /var/www/mywiki
    sudo chown -R www-data: /var/www/mywiki
    Configure Apache1, Apache2

    * Add the following lines to /etc/apache/httpd.conf
    Alias /wiki/ "/usr/share/moin/htdocs/"
    ScriptAlias /MyWiki "/var/www/mywiki/moin.cgi"
    Reload apache

    Configure MoinMoin:

    * Edit /etc/moin/farmconfig.py and add in your wiki
    # wikis = [
    ("mywiki", r"^.*MyWiki.*$"),
    # ]
    * Also turn on the general administration, security settings so you can do things like "attachment:".

    Setup this new wiki
    cp /etc/moin/moinmaster.py /etc/moin/mywiki.py
    * Edit /etc/moin/mywiki.py
    * More Info@ http://moinmaster.wikiwikiweb.de/HelpOnConfiguration
    class Config(FarmConfig):
    show_timings = 1
    sitename = u'MyWiki' # [Unicode]
    interwikiname = 'MoinMaster'
    bang_meta = 1
    Configure Part 2

    After installation, you are always forced into the "HelpOnLanguages" page.

    To get out of this you have to create and set your own global Frontpage in farmconfig.py (not mywiki.py).
    * There is only one global Frontpage - you cannot have a separate one for each wiki (? ).

    1. I went to Frontpage (did a search)
    2. Edited Frontpage to include myFrontpage
    3. Went to myFrontpage and did some editing...
    * Copy whatever you want from the existing Frontpage.
    4. Once myFrontpage exists...

    Inform the wiki of your Frontpage by editing /etc/moin/farmconfig.py
    page_front_page = u"myFrontpage"
    Enjoy your new wiki at http://localhost/MyWiki/
Working...
X