ich möchte ein Mercurial Server unter Windows zum laufen bekommen, dies gelingt mir aber nicht. Ich hoffe hier nun den ein oder andern Tip zubekommen. Und nein ich möchte ihn nicht unter Linux zum laufen brigen...
Nun was habe ich bisher gemacht...
Unter Windows XP habe ich folgende Programme Installiert...
- Apache 2.2.17 under c:/wamp/Apache2.2
- Python 2.6.6 under c:/Python26
- Mercurial 1.8.1 under c:/Mercurial
- Mercurial-1.8.1.win32-py2.6.exe unter C:\Python26\Lib\site-packages\
und fogende configs angepast...
Apache config (httpd.conf):
Code: Alles auswählen
LoadModule wsgi_module modules/mod_wsgi-win32-ap22py26-3.3.so
LISTEN 81
<VirtualHost *:81>
WSGIScriptAliasMatch ^(.*)$ c:/wamp_python/scripts/hgwebdir.wsgi$1
<Directory c:/wamp_python/scripts>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
CustomLog logs/wsgi_access.log combined
ErrorLog logs/wsgi_error.log
</VirtualHost>
c:/wamp_python/scripts/hgwebdir.wsgi
Code: Alles auswählen
#!C:/Python26/python.exe
#
# import sys
# sys.path.insert(0, "c:/Mercurial/lib")
from mercurial.hgweb.hgweb_mod import hgweb
from mercurial.hgweb.hgwebdir_mod import hgwebdir
config = "c:/wamp_python/config/hgweb.config"
application = hgwebdir(config)
Code: Alles auswählen
[web]
# gitweb, monoblue, spartan
# style = coal
allow_archive = bz2 gz zip
maxchanges = 200
allow_push = *
push_ssl = false
# baseurl = /
[paths]
/ = c:/wamp_python/repositorys/**
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] mod_wsgi (pid=1232): Target WSGI script 'C:/wamp_python/scripts/hgwebdir.wsgi' cannot be loaded as Python module.
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] mod_wsgi (pid=1232): Exception occurred processing WSGI script 'C:/wamp_python/scripts/hgwebdir.wsgi'.
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] File "C:/wamp_python/scripts/hgwebdir.wsgi", line 7, in <module>
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] from mercurial.hgweb.hgweb_mod import hgweb
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] File "C:\\Python26\\lib\\site-packages\\mercurial\\hgweb\\__init__.py", line 10, in <module>
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] import hgweb_mod, hgwebdir_mod
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] File "C:\\Python26\\lib\\site-packages\\mercurial\\hgweb\\hgweb_mod.py", line 10, in <module>
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] from mercurial import ui, hg, hook, error, encoding, templater
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] File "C:\\Python26\\lib\\site-packages\\mercurial\\ui.py", line 10, in <module>
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] import config, util, error
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] File "C:\\Python26\\lib\\site-packages\\mercurial\\config.py", line 9, in <module>
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] import error, util
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] File "C:\\Python26\\lib\\site-packages\\mercurial\\util.py", line 17, in <module>
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] import error, osutil, encoding
[Tue Mar 15 15:36:18 2011] [error] [client 127.0.0.1] ImportError: DLL load failed: Eine DLL-Initialisierungsroutine ist fehlgeschlagen.
Hat jemand eine Idee, woran es liegen könnte, dass ich einen 500er Internal Server Error bekommen?