Probleme bei Konfiguration von mod_python

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Probleme bei Konfiguration von mod_python

    Hallo,
    Habe Suse10 installiert mit Apache2 und mod_python 3.1.3-43. Leider hat Yast bei der Installation von mod_python Apache nicht so konfiguriert, daß mod_python gleich lauffähig ist, also habe ich den Anleitungen auf dieser Seite xminc.com/linux/mod_python1.html entsprechend die httpd.conf selbst editiert. Ein Testscript (mptest.py) gibt es in 'srv/www/htdocs/' auch. Meine http.conf:

    LoadModule python_module usr/lib/apache2/mod_python.so

    <Directory srv/www/htdocs/>
    AddHandler mod_python.py
    PythonHandler mptest
    PythonDebug On
    </Directory>


    Wenn ich jetzt in der Konsole 'etc/init.d/apache2 restart' eingebe, bekomme ich folgende Fehlermeldung:

    Syntax error on line 214 of /etc/apache2/httpd.conf:
    Cannot load /srv/www/usr/lib/apache2/mod_python.so into server: /srv/www/usr/lib/apache2/mod_python.so: cannot open shared object file: No such file or directory


    In der oben genannten Anleitung steht, man soll 'LoadModule python_module libexec/mod_python.so' in die httpd.conf einfügen, den Pfad aber der eigenen Umgebung anpassen. Bei mir liegt die mod_python.so in 'usr/lib/apache2/'.

    Wer kann mir helfen ?

    Gruss, Seven
    Musik der Band Low Cut: www.low-cut.de