MoinMoin-Wiki läßt sich nicht installieren

Probleme bei der Installation?
Antworten
profjoerg
User
Beiträge: 1
Registriert: Sonntag 25. März 2007, 11:13

Hallo,

hoffe ich bin hier richtig,
ich versuche 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:
Serverfehler!

Die Anfrage kann nicht beantwortet werden,
da im Server ein interner Fehler aufgetreten ist.

Fehlermeldung:
Premature end of script headers: moin.cgi

Sofern Sie dies für eine Fehlfunktion des Servers halten,
informieren Sie bitte den Webmaster hierüber.
Error 500
localhost
Sat Mar 24 18:59:34 2007
Apache/2.0.50 (Linux/SUSE)

Hab schon in Apacheforum nachgefragt,dort konnte mir keiner helfen.
Im Netz liest man nur Erfolgsmeldungen,nur bei mir scheint es nicht
zu klappen. Was ist an meiner Konfiguration falsch ?

Ich hoffe,meine Zuschrift war nicht zu lang.

Vielen Dank im Voraus für Eure Antworten

Gruß

Jörg
Leonidas
Python-Forum Veteran
Beiträge: 16025
Registriert: Freitag 20. Juni 2003, 16:30
Kontaktdaten:

Hallo Jörg, willkommen im Forum,
profjoerg hat geschrieben:Fehlermeldung:
Premature end of script headers: moin.cgi
Wie ist denn die Shebang in moin.cgi? Die Fehlermeldung sieht man oft, wenn zum Beispiel das Zeilenenden-Format auf WIndows gestellt ist. Wenn es falsch eingestellt ist, kannst du mit vim oder dos2unix die Zeilenenden konvertieren.
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
Antworten