<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>WebServicesAdmin/MoinMoin</title><revhistory><revision><revnumber>7</revnumber><date>2018-10-04 02:34:05</date><authorinitials>ClintonEbadi</authorinitials><revremark>moin has switched to git from hg</revremark></revision><revision><revnumber>6</revnumber><date>2013-01-29 06:06:50</date><authorinitials>ClintonEbadi</authorinitials><revremark>switch to hg</revremark></revision><revision><revnumber>5</revnumber><date>2013-01-10 02:00:09</date><authorinitials>ClintonEbadi</authorinitials><revremark>correct subpage</revremark></revision><revision><revnumber>4</revnumber><date>2012-12-18 02:30:36</date><authorinitials>ClintonEbadi</authorinitials><revremark>default htdocs</revremark></revision><revision><revnumber>3</revnumber><date>2012-12-18 01:49:03</date><authorinitials>ClintonEbadi</authorinitials><revremark>more</revremark></revision><revision><revnumber>2</revnumber><date>2012-12-18 01:10:12</date><authorinitials>ClintonEbadi</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-12-18 00:59:04</date><authorinitials>ClintonEbadi</authorinitials><revremark>basic notes on new moin setup</revremark></revision></revhistory></articleinfo><section><title>File System Layout</title><para>Let  </para><itemizedlist><listitem><para><code>$moin</code> = <code>/afs/hcoop.net/common/app/moin</code>. </para></listitem><listitem><para><code>$version</code> is the full moin version e.g. 1.9.6 </para></listitem><listitem><para><code>$shortversion</code> 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. </para></listitem><listitem><para><code>$sourcedir</code> =  <code>$moin/src/moin-1.9</code> (tracking the current stable branch using <ulink url="https://wiki.hcoop.net/WebServicesAdmin/MoinMoin/GitVcs#">GitVcs</ulink>) </para></listitem><listitem><para><code>$targetdir</code> = <code>$moin/installed/moin$shortversion</code> </para></listitem></itemizedlist><para><code>$moin/installed</code> is set in <ulink url="https://wiki.hcoop.net/WebServicesAdmin/MoinMoin/DomTool#">DomTool</ulink>'s <code>Config.worldReadable</code> list so that all members can serve moin static content. </para></section><section><title>Installation of a new version</title><para>Update to the latest stable tag. Try not to pull interim releases, unless needed. </para><para>Install: </para><screen><![CDATA[python setup.py install --force --record=install_$version.log --prefix=$targetdir --install-data=$targetdir]]></screen><para>Update the <code>moinMoin</code> macro to use the latest htdocs prefix (<code>moin_static$version</code> without the dots). </para><section><title>Local Changes</title><para>Ensure that <code>$targetdir/bin/moin</code> and <code>.../share/moin/server/moin.cgi</code> include the python library paths for the afs moin. Usually something like: </para><screen><![CDATA[import sys
sys.path.insert(0, '$targetdir/lib/python2.6/site-packages')]]></screen><para>Update <code>moinmoin-install</code> to copy files from the new version if needed. </para><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="https://wiki.hcoop.net/WebServicesAdmin/MoinMoin/CategorySystemAdministration#">CategorySystemAdministration</ulink> </para></section></section></article>