Macro Install

Official instructions are here http://moinmo.in/MacroMarket/#Installation_Instructions or in the macro help file.

The /path_to_wiki_instance/data/plugin/macro is /home/moin/data/plugin/macro on reggae.

Copy the macro to the exact name used in the MoinMoin page (for example Color2 for the Color2 macro). Then restart Moin as indicated below.

Standalone Moin''Moin Deployment

Basic setup of the filesystem

sudo su - moin
wget http://static.moinmo.in/files/moin-1.7.1.tar.gz
wget http://sheep.art.pl/devel/gugiel/archive/tip.zip
unzip tip.zip
tar zxvf moin-1.7.1.tar.gz
ln -s moin-1.7.1/ src
cp -r src/wiki/config .
ln -s src/MoinMoin/ .
ln -s src/wiki/underlay/ .
cp -r src/wiki/htdocs/ .
cp -r src/wiki/data .
ln -s data/plugin/macro/ .
cp src/wikiserverconfig.py .
cp src/wiki/server/moin .
mv Gugiel-Theme-b39617bc5d74 htdocs/gugiel
mv htdocs/gugiel/gugiel.py data/plugin/theme/

Lighttpd via runit - this is how we run moin www service

$HTTP["host"] == "wiki.tldp.org" {

server.error-handler-404   = "/"

        url.rewrite-once = (
"^/htdocs/(.*)$" => "/htdocs/$1",
"^/moin_static182/(.*)$" => "/htdocs/$1",
"^/robots.txt" => "/robots.txt",
"^/statz" => "/statz",
"^/favicon.ico" => "/favicon.ico",
"^/(.*)" => "/run/$1"
)

fastcgi.server = (  "/run" =>
  (( "docroot"   => "/",
     "min-procs" => 4,
     "max-procs" => 32,
     # allocate successive port numbers for each process, starting with "port"
     "bin-path"  => "/home/moin/moin.fcg",
     "host"      => "127.0.0.1",
     "port"      => 2211,
     "check-local" => "disable",
     "broken-scriptfilename" => "enable",
  ))
)

}

runit - this is how to restart moin service

reggae:~# sv restart lighttpd
ok: run: lighttpd: (pid 15863) 0s

in a bad situation moin could hang, so list the processes manually ps auxwwww and kill -9 a proper process.

how to upgrade moin?

this example shows how i upgraded moin 1.7.1 to moin 1.7.2

moin@reggae:~$ wget http://static.moinmo.in/files/moin-1.7.2.tar.gz
moin@reggae:~$ tar zxf moin-1.7.2.tar.gz
moin@reggae:~$ rm src
moin@reggae:~$ ln -s moin-1.7.2/ src
moin@reggae:~$ vim config/wikiconfig.py

and in editor replace url_prefix_static = "/moin_static171" with url_prefix_static = "/moin_static172", and logo_string = u<img src="/moin_static172/ldp/tldp.png" alt="[LDP]"> with the same kind of change of version, do the same in /etc/lighttpd/conf-enabled/10-fastcgi.confthen restart lighttpd.

a/moin (last edited 2009-04-03 15:19:57 by SergiuszPawlowicz)