Mercurial mit HGWEB auf einem Strato Host aufsetzen

NetBull

Erfahrenes Mitglied
Guten Morgen,

ich kämpfe schon länger mit dem Mercurial HGWEB und habe es nun auf einer VM ans Laufen bringen können. Beim Übertragen auf meinen Strato Host bin ich aber nicht erfolgreich und finde auch keinen Fehler.

Alle meine LINUX Maschinen laufen auf UBUNTU 12.4...
Bräuchte dringend jemanden der mir assistiert.

Zunächst habe ich im Error Log folgende Einträge. Kann es sein das deswegen mein CGI nicht ausgeführt wird?
ERROR.LOG:
Code:
root@........:~# cat /var/log/apache2/error.log
[Sat Apr 26 11:32:27 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:27 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:27 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:27 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:27 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:27 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:27 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:27 2014] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sat Apr 26 11:32:27 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sat Apr 26 11:32:28 2014] [notice] Digest: generating secret for digest authentication ...
[Sat Apr 26 11:32:28 2014] [notice] Digest: done
[Sat Apr 26 11:32:28 2014] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
[Sat Apr 26 11:32:28 2014] [error] python_init: Python executable found '/usr/bin/python'.
[Sat Apr 26 11:32:28 2014] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
[Sat Apr 26 11:32:28 2014] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sat Apr 26 11:32:28 2014] [notice] mod_python: using mutex_directory /tmp
[Sat Apr 26 11:32:28 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:28 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:28 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:28 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:28 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:28 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:28 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Sat Apr 26 11:32:28 2014] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sat Apr 26 11:32:28 2014] [notice] Apache/2.2.22 (Ubuntu) DAV/2 mod_fcgid/2.3.9 mod_python/3.3.1 Python/2.7.3 mod_ssl/2.2.22 OpenSSL/1.0.1 configured -- resuming normal operations

Meine APACHE Konfig(/etc/apache2/sites-available/default):
Code:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

        
# diese Dateibindet HG WEB ein
Include /etc/apache2/hg/main.conf

</VirtualHost>

So sieht meine HGWEB Config für den Apachen aus (/etc/apache2/hg/main.conf):
Code:
ScriptAliasMatch        ^/hg(.*)        /var/hg/hgwebdir.cgi$1
<Directory /var/hg>
  Options ExecCGI FollowSymLinks
  AllowOverride None
</Directory>

Und so mein Verzeichnis (/var/hg)....
Code:
-rw-r--r--  1 www-data www-data   88 Apr 24 14:19 hgweb.config
-rwxr-xr-x  1 www-data www-data  716 Apr 24 14:20 hgwebdir.cgi
drwxr-xr-x  3 www-data www-data 4096 Apr 24 14:12 repos

Und mein Verzeichnis mit dem test repository (/var/hg/repos/):
Code:
drwxr-xr-x 3 dml www-data 4096 Apr 24 14:12 test1

Und so sieht die CGI Datei (/var/hg/hgwebdir.cgi) aus
Code:
#!/usr/bin/env python
#
# An example hgweb CGI script, edit as necessary
# See also http://mercurial.selenic.com/wiki/PublishingRepositories

# Path to repo or hgweb config to serve (see 'hg help hgweb')
#config = "/path/to/repo/or/config"
config = "/var/hg/hgweb.config"

# Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed modules" path from 'hg debuginstall'):
#import sys; sys.path.insert(0, "/path/to/python/lib")

Und so ist mein HGWEB konfiguriert (/var/hg/hgweb.config):
Code:
[collections]
/var/hg/repos = /var/hg/repos
[web]
#style = monoblue
allow_archive = zip

Ein Aufruf von meinedomain.de/hg sollte nun das CGI ausführen und der Browser mir eine Liste mit den Repositories anbieten. Aber ich bekomme nur ein 404 - not found....

Hoffe hier kann mir geholfen werden. Denn ich komme nicht mehr weiter.

cu deAndro
 
Nachtrag:

Das Python Problem habe ich beseitigt...

Folgende Zeilen sorgen dafür
Code:
$ apt-get remove libapache2-mod-python libapache2-mod-wsgi 
$ apt-get build-dep libapache2-mod-python libapache2-mod-wsgi


Aber HGWEB läuft immer noch nicht.... Woran kann das noch liegen?
 

Neue Beiträge

Zurück