a public resource for all things web hosting, systems administration, and dedicated server management.

Software install inside an individual hosting account

This article provides step by step instructions specific to the installation of MoinMoin in a shared web hosting account where you may not always have the same levels of access or environment control as you would on your own server or a dedicated hosting environment.

  1. Download the latest version from http://moinmo.in/MoinMoinDownload (verify the checksum!)

  2. uncompress and untar
  3. Install:

    python setup.py install --home=$HOME
    cp -a ~/share/moin/htdocs ~/public_html/wiki
  4. Edit your shell profile to add something like:

    PYTHONPATH=$HOME/lib/python:$PYTHONPATH
    export PYTHONPATH

Web server config

  1. Setup vhost as per normal
  2. Add the following fragment inside the <VirtualHost *> section:

            <IfModule mod_rewrite.c>
            RewriteEngine On
    
            RewriteRule ^/wiki/       -                      [L]
            RewriteRule ^/error/      -                      [L]
            RewriteRule ^/robots.txt  -                      [L]
            RewriteRule ^/favicon.ico /home/USERNAME/public_html/wiki/favicon.ico       [L]
    
            # SUBPATH is optional
            RewriteRule ^/SUBPATH/?(.*) /home/USERNAME/public_html/cgi-bin/moin.cgi/$1 [L,type=application/x-httpd-cgi]
            </IfModule>

Wiki config


Did did you find this article useful? Then See also articles on: Web hosting support, dedicated server administration and useful hosting tools