welcome: please sign in

Diff for "WebServicesAdmin/MoinMoin"

Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2012-12-18 00:59:04
Size: 406
Editor: ClintonEbadi
Comment: basic notes on new moin setup
Revision 5 as of 2013-01-10 02:00:09
Size: 1279
Editor: ClintonEbadi
Comment: correct subpage
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from DaemonAdmin/MoinMoin
Line 3: Line 4:
Let `$moin = /afs/hcoop.net/common/app/moin`. `$version` is the moin version as three digits without the dots, e.g. 195 for 1.9.5 Let
Line 5: Line 6:
 * Source: `$moin/src/moin$version`
 * prefix/datadir = `$moin/installed/moin$version`
 * `$moin` = `/afs/hcoop.net/common/app/moin`.
 * `$version` is the full moin version e.g. 1.9.5
 * `$shortversion` is the first two digits of the version without the dots. E.g. 19 for moin 1.9.x. This is to allow users to get automatic updates with a release series.
 * `$sourcedir` = `$moin/src/moin-$version`
 * `$targetdir` = `$moin/installed/moin$shortversion`
Line 9: Line 13:

== Installation of a new version ==

Download and unpack source into the appropriate `$sourcedir`. Install:

{{{
python setup.py install --force --record=install_$version.log --prefix=$targetdir --install-data=$targetdir
}}}

You will then have to edit `$targetdir/bin/moin` and `.../share/moin/server/moin.cgi` to include the python library paths for the afs moin. Usually something like:

{{{
import sys
sys.path.insert(0, '$targetdir/lib/python2.6/site-packages')
}}}

Update `moinmoin-install` to copy files from the new version if needed. Update the `moinMoin` macro to use the latest htdocs prefix (`moin_static$version` without the dots).

1. File System Layout

Let

  • $moin = /afs/hcoop.net/common/app/moin.

  • $version is the full moin version e.g. 1.9.5

  • $shortversion is the first two digits of the version without the dots. E.g. 19 for moin 1.9.x. This is to allow users to get automatic updates with a release series.

  • $sourcedir = $moin/src/moin-$version

  • $targetdir = $moin/installed/moin$shortversion

$moin/installed is set in DomTool's Config.worldReadable list so that all members can serve moin static content.

2. Installation of a new version

Download and unpack source into the appropriate $sourcedir. Install:

python setup.py install --force --record=install_$version.log --prefix=$targetdir --install-data=$targetdir

You will then have to edit $targetdir/bin/moin and .../share/moin/server/moin.cgi to include the python library paths for the afs moin. Usually something like:

import sys
sys.path.insert(0, '$targetdir/lib/python2.6/site-packages')

Update moinmoin-install to copy files from the new version if needed. Update the moinMoin macro to use the latest htdocs prefix (moin_static$version without the dots).


CategorySystemAdministration

WebServicesAdmin/MoinMoin (last edited 2018-10-04 02:34:05 by ClintonEbadi)