Search | Directories | Reference Tools
UW Home > UWIN > Computing and Networking > Web > Web Publishing > Installing Wikis 

Installing MoinMoin

Included on this page:

Installation

  1. Log in to your Homer or Dante account with Tera Term or another terminal emulator.

  2. Press the O key for Other, then press the W key to drop into the Web development environment (Ovid, Vergil or Socrates).

  3. Change directories to your public_html directory.

    cd public_html
  4. Download MoinMoin using wget.

    wget http://www.washington.edu/computing/web/publishing/moin-1.5.8.tar.gz
  5. Unzip the file you just downloaded:

    tar -xzvf moin-1.5.8.tar.gz
  6. Create a directory in which to install MoinMoin:

    mkdir moinmoin
  7. Run the installation script:

    cd moin-1.5.8
    python2.5 setup.py --quiet install --prefix="../moinmoin"
    cd ../moinmoin
  8. Copy required files and directories into the moinmoin directory:

    cp share/moin/server/moin.cgi ./moin.cgi
    cp -r share/moin/data ./
    cp -r share/moin/underlay ./
    cp -r share/moin/htdocs/common ./
    cp -r share/moin/htdocs/modern ./
    cp share/moin/config/wikiconfig.py ./
  9. Create some .htaccess files to limit access to the moinmoin directories and use moin.cgi as the index.

    echo "deny from all" > bin/.htaccess
    echo "deny from all" > data/.htaccess
    echo "deny from all" > lib/.htaccess
    echo "deny from all" > share/.htaccess
    echo "deny from all" > underlay/.htaccess
    echo "DirectoryIndex moin.cgi" > .htaccess
  10. In your moin.cgi file, make the substitutions highlighted below:

    #!/usr/bin/env python
    # -*- coding: iso-8859-1 -*-
    """
    MoinMoin - CGI Driver Script
    
    @copyright: 2000-2005 by Jürgen Hermann <jh@web.de>
    @license: GNU GPL, see COPYING for details.
    """
    
    # System path configuration
    
    import sys
    
    # Path of the directory where wikiconfig.py is located.
    # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
    sys.path.insert(0, '/path/to/wikiconfig')
    
    # Path to MoinMoin package, needed if you installed with --prefix=PREFIX
    # or if you did not use setup.py.
    ## sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
    		
    replace #!/usr/bin/env python
    with #!/usr/local/bin/python2.5
    replace /path/to/wikiconfig
    with ./
    replace ## sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
    with sys.path.insert(0, './lib/python2.5/site-packages')

    Note: Make sure you've removed the ## from the sys.path.insert line.

  11. In wikiconfig.py, change url_prefix = '/wiki' to url_prefix = '/UWNetID/moinmoin' where UWNetID is your UWNetID.

  12. Delete the installation directory & the tarball:

    cd ..
    rm moin-1.5.8.tar.gz
    rm -rf moin-1.5.8/