Hallo,
ich versuche hier seit einer Woche vergeblich ein MoinMoin-Wiki
auf meinen Apacheserver unter Suse 9.2 zu installieren.
Ich hab mich für moin-1.3.1.tar.gz entschieden weil diese Version
in meiner Anleitung als stabil angesehen wird.
Habe folgendes installiert:
linux:~ # rpm -qa|grep -e apache -e python|sort
apache2-2.0.50-7
apache2-doc-2.0.50-7
apache2-example-pages-2.0.50-7
apache2-mod_fastcgi-2.4.2-2
apache2-mod_python-3.1.3-37
apache2-prefork-2.0.50-7
python-2.3.4-3
python-devel-2.3.4-3
python-fcgi-2000.09.21-145
python-tk-2.3.4-3
Es ist auch Apache- und Pythonmäßig alles OK.
linux:~ # apt-get check
Lese Paketlisten... Fertig
Erzeuge Abhängigkeitsbaum... Fertig
You might want to run `apt-get --fix-broken install' to correct these.
Die folgenden Pakete besitzen unerfülte Abhängigkeiten:
R-base: Hängt ab von: libtcl8.4.so.0 aber es ist nicht installierbar
Hängt ab von: libtk8.4.so.0 aber es ist nicht installierbar
howto-html-de: Hängt ab von: locales-de aber es ist nicht installierbar
Hängt ab von: howto-utils aber es ist nicht installierbar
Hängt ab von: mandrake_desk (> 1.0.3-7mdk) aber es ist nicht
installierbar
ploticus-docs: Hängt ab von: ploticus (= 2.10) aber 2.32-2 ist installiert
E: Unmet dependencies. Try using --fix-broken.
linux:~ # python -V
Python 2.3.4
linux:~ # python -c 'import distutils'
linux:~ #
linux:~ # python -c 'import sys; print sys.prefix'
/usr
Ich hab mich exakt an die Anleitung gehalten:
# python setup.py install --record=install.log --prefix=/usr/local
# python -c 'import MoinMoin'
# export PREFIX=/usr/local
# export SHARE=$PREFIX/share/moin
# export WIKILOCATION=$SHARE
# export INSTANCE=meinWiki
# export USER=wwwrun
# export GROUP=www
(aus uid.conf)
# cd $WIKILOCATION
# mkdir $INSTANCE
# cp -R $SHARE/data $INSTANCE
# cp -R $SHARE/underlay $INSTANCE
# cp $SHARE/config/wikiconfig.py $INSTANCE
# chown -R $USER.$GROUP $INSTANCE
# chmod -R ug+rwX $INSTANCE
# chmod -R o-rwx $INSTANCE
# 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
# echo "" >>/etc/apache2/httpd.conf
# echo "Alias /wiki/ \"$SHARE/htdocs/\"" >>/etc/apache2/httpd.conf
# echo "ScriptAlias /meinWiki \"$WIKILOCATION/$INSTANCE/cgi-bin/moin.cgi\"" >>/etc/apache2/httpd.conf
Eintrag in /usr/local/share/moin/meinWiki/wikiconfig.py:
sitename = u'meinWiki'
default_lang = 'de'
allowed_actions = ['DeletePage', 'AttachFile', 'RenamePage']
data_dir = '../data/'
data_underlay_dir = '../underlay/'
url_prefix = '/wiki'
Eintrag in /usr/local/share/moin/meinWiki/cgi-bin/moin.cgi:
import sys
## sys.path.insert(0, '/path/to/MoinMoin/dir')
sys.path.insert(0, '/usr/local/share/moin')
## sys.path.insert(0, '/path/to/wikiconfig/dir')
sys.path.insert(0, '/usr/local/share/moin/meinWiki')
## sys.path.insert(0, '/path/to/farmconfig/dir')
Dann noch ein Neustart des Apache:
# /etc/init.d/apache2 stop
# /etc/init.d/apache2 start
Start des Wikis mit
$ firefox localhost/meinWiki
ergibt folgendes:
Zugriff verweigert!
Der Zugriff auf das angeforderte Objekt ist nicht möglich.
Entweder kann es vom Server nicht gelesen werden oder es ist zugriffsgeschützt.
Sofern Sie dies für eine Fehlfunktion des Servers halten,
informieren Sie bitte den Webmaster hierüber.
Error 403
localhost
Sat Mar 24 14:00:51 2007
Apache/2.0.50 (Linux/SUSE)
Ich hoffe,meine Zuschrift war nicht zu lang.
Vielen Dank im Voraus für Eure Antworten
Gruß
Jörg