Ich möchte gerne eine CGI-Anwendung in Python schreiben.
Mein Webspace habe ich bei Strato, ich verwende das PowerPlus L Paket, welches CGI, Python und Ruby -ready ist.
Jetzt möchte ich gerne wissen, wie ich ein Python Skript dort zu laufen bekomme.
Aus diesem Artikel(http://docs.python.org/library/cgi.html) habe ich entnommen, dass ich das Skript mit der Shebang Zeile
beginnen soll. Das skript soll in cgi-bin liegen. Das habe ich alles gemacht.
Ich rufe das Skript per "http://www.meine-adresse.de/cgi-bin/skript.py auf, aber ich bekomme den Fehlercode 500:
Code: Alles auswählen
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, service@webmailer.de 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.
Hier nochmal der sehr minimalistische Quellcode:
Code: Alles auswählen
#!/usr/bin/python
print "Hallo CGI!"