Installing MoinMoin
Included on this page:Installation
-
Log in to your Homer or Dante account with Tera Term or another terminal emulator.
-
Press the O key for Other, then press the W key to drop into the Web development environment (Ovid, Vergil or Socrates).
-
Change directories to your public_html directory.
cd public_html
Download MoinMoin using wget.
wget http://www.washington.edu/computing/web/publishing/moin-1.5.8.tar.gz
Unzip the file you just downloaded:
tar -xzvf moin-1.5.8.tar.gz
Create a directory in which to install MoinMoin:
mkdir moinmoin
Run the installation script:
cd moin-1.5.8
python2.5 setup.py --quiet install --prefix="../moinmoin"
cd ../moinmoinCopy 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 ./
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-
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.
In wikiconfig.py, change url_prefix = '/wiki' to url_prefix = '/UWNetID/moinmoin' where UWNetID is your UWNetID.
Delete the installation directory & the tarball:
cd ..
rm moin-1.5.8.tar.gz
rm -rf moin-1.5.8/
