Steps to setup moin for your apache server:

#!/bin/sh
DESTDIR=/var/www/mywiki
mkdir -p $DESTDIR/cgi-bin
cp -a /usr/share/moin/{data,underlay} $DESTDIR
cp -a /usr/share/moin/server/moin.cgi $DESTDIR/cgi-bin
cp -a /usr/share/moin/config/wikiconfig.py $DESTDIR/cgi-bin
chown -R apache:apache $DESTDIR/{data,underlay}
cat > /etc/httpd/conf.d/mywiki.conf <<EOF
ScriptAlias /mywiki "$DESTDIR/cgi-bin/moin.cgi"
<Directory "$DESTDIR/cgi-bin/">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
# To use mod_pyton disable all above, enable the following lines and
# also change wikiconfig.py to have absolute paths for data/underlay dirs.
#<Location /mywiki>
#    SetHandler python-program
#    PythonPath "['$DESTDIR/cgi-bin'] + sys.path"
#    PythonHandler MoinMoin.request::RequestModPy.run
#</Location>
Alias /wiki/ "/usr/share/moin/htdocs/"
<Directory "/usr/share/moin/htdocs/">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
EOF


Then edit /etc/httpd/conf/httpd.conf to include "AddHandler cgi-script .cgi"
and edit /var/www/mywiki/cgi-bin/wikiconfig.py and finally do
a "service httpd restart".

