Doc /

MoinMoin

Installation de MoinMoin wiki, sur openSUSE

Vérifier si python est installé

 python -V
 Python 2.3.4

Installer aussi "python-dev"

télécharger le paquetage moinmoin.. le désarchiver.

Installer moinmoin:

 python -v setup.py --quiet install --record=install.log

Tester:

> python
Python 2.3.4 (#1, May 29 2004, 17:05:23)
[GCC 3.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MoinMoin
>>>

(il est normal qu'il n'y ai pas de message s'il n'y a pas d'erreur).

Choisir un nom pour "l'instance" (le wiki particulier que vous voulez installer). N'importe où, de préférence pas dans votre site web.

J'ai choisi

 /home/www/moin/jddmoin

(mon site est dans /home/www/htdocs).

Dans le sens de la doc MoinMoin,

PREFIX=/usr/local
SHARE=/usr/local/share/moin
WIKI LOCATION=/home/www/moin
INSTANCE=/homa/www/moin/jddmoin=mywiki

Dans openSUSE, la serveur apache est l'utilisateur "wwwrun", groupe "www"

Copier les fichiers et régler les permissions:

> cp -R $SHARE/data $INSTANCE       # copy template data directory
> cp -R $SHARE/underlay $INSTANCE   # copy underlay data directory
> cp $SHARE/config/wikiconfig.py $INSTANCE   # copy wiki configuration sample file

> chown -R $USER.$GROUP $INSTANCE   # check that USER and GROUP are correct
> chmod -R ug+rwX $INSTANCE         # USER.GROUP may read and write
> chmod -R o-rwx $INSTANCE          # everybody else is rejected

> cd $WIKILOCATION/$INSTANCE
> mkdir cgi-bin
> cp $SHARE/server/moin.cgi cgi-bin
> chown -R $USER.$GROUP cgi-bin
> chmod -R ug+rx cgi-bin
> chmod -R o-rwx cgi-bin

Retoucher les fichiers wikiconfig.py et moin.py

Configurer Apache:


<Directory /srv/www/moin/homemoin/cgi-bin/>
AllowOverride none
Options +ExecCGI -Includes
Order allow,deny
Allow from all

</Directory>

<Directory /usr/local/share/moin/htdocs/modern/css/>
AllowOverride none
Order allow,deny
Allow from all

</Directory>


Alias /wiki/ /usr/local/share/moin/htdocs/
ScriptAlias /mywiki /srv/www/moin/homemoin/cgi-bin/moin.cgi

(à compléter)

Exporter le wiki en html

http://moinmo.in/HelpOnMoinCommand/ExportDump