Chciałbym się zacząć uczyć pisać strony pod Pythonem gdyż PHP zaczyna mnie nudzić. Mam Apacha 2.0.55 i Pythona 2,5. Zainstalowałem plik mod_python-3.3.1.win32-py2.5-Apache2.2.exe i serwer po restarcie nie chciał się uruchomić. Zauważyłem swój błąd i zainstalowałem mod_python-3.3.1.win32-py2.5-Apache2.0.exe i serwer wstał. Ponadto dopisałem do pliku konfiguracyjnego
Kod
LoadModule python_module modules/mod_python.so
oraz
Kod
AddHandler python-program .py
PythonHandler index
PythonHandler index
Stworzył w głównym folderze serwera plik python.py o treści
Kod
print "Mamusiu, jak tu pięknie!"
Niestety po uruchomieniu adresu http://localhost/python.py zostaję pochwalony komunikatem:
Cytat
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, elektryk91@xxx.com 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.55 (Win32) mod_python/3.3.1 Python/2.5.4 PHP/5.1.4 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, elektryk91@xxx.com 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.55 (Win32) mod_python/3.3.1 Python/2.5.4 PHP/5.1.4 Server at localhost Port 80
Moje pytanie brzmi: DLACZEGO KURWwww..., tzn...Czy ktoś wie gdzie leży wina i jak to naprawić? Z góry dziękuję za pomoc i pozdrawiam.