
Skonfigurowałem apache'a, to jest w pliku httpd.conf czy jak to się nazywa dałem:
Cytat
<Directory C:\WebServer\Apache2\htdocs\>
AddHandler mod_python .py
PythonHandler py
PythonDebug On
</Directory>
AddHandler mod_python .py
PythonHandler py
PythonDebug On
</Directory>
No i mam plik py.py z taką zawartością:
Kod
from mod_python import apache
def handler(req):
req.write("Hello World!")
return apache.OK
def handler(req):
req.write("Hello World!")
return apache.OK
Gdy uruchamiam skrypt w przeglądarce, pojawia się błąd:
Cytat
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, fipaj@poczta.onet.pl and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.0.53 (Win32) php/4.3.10 mod_python/3.1.3 Python/2.3.5 Server at localhost Port 80
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, fipaj@poczta.onet.pl and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.0.53 (Win32) php/4.3.10 mod_python/3.1.3 Python/2.3.5 Server at localhost Port 80
Przeszukałem sieć, ale nie znalazłem niczego ciekawego... Manual Pythona też niewiele mówi na temat błędów... Proszę o pomoc, jeśli chodzi o Pythona jestem zielony...
