[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mod_python mime-type text/x-python



Andreas Pakulat wrote:
> Dann hast du vllt. vergessen mod_python zu aktivieren, a2enmod
> mod_python ausfuehren und gut ist. 

Wenn mod_python nicht aktiv wäre, dann würde ich doch das Skript als
Ausgabe bekommen, nicht die Ausgabe des Skriptes... Wenn ich die URL
aufrufe, dann öffnet sich eine Datei mit dem Inhalt "Hello World!" in
gedit.
Deswegen dachte ich an Content-Type.
Was mir noch auffällt: Es wird keine mptest.pyc erzeugt, aber soweit
ich das richtig verstanden habe, sollte die doch auch in /var/www
liegen?


> Wobei mir beim TEst grad aufgefallen ist: Das Skript wird nicht korrekt
> abgearbeitet:
> 
> Mod_python error: "PythonHandler mptest"
> 
> Traceback (most recent call last):
> 
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
>     log=debug)
> 
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 454, in import_module
>     f, p, d = imp.find_module(parts[i], path)
> 
> ImportError: No module named mptest

Das passiert bei mir nicht...

-- 
Simon Eilting



Reply to: