Hallo,
ich komme mit meinem Problem nicht weiter und finde einfach keine mögliche Ursache hierfür:
Auf einem Server läuft der Apache 2.0 und Perl 5.8
Ein Beispielscript wird immer zum Download angeboten, egal ob Endung .cgi oder .pl - Rechte sind auf 755. PHP geht problemlos
mod_cgi wird geladen, hier ist der Ausschnitt aus der httpd.conf/apache2.conf
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Header gibt das Script aus und die sind auch korrekt, das Problem ist, dass das Script meines Erachtens gar nicht bis zum Interpreter kommt.
Edit: Mir ist aufgefallen, dass ich mich oben vielleicht etwas missverständlich ausgedrückt habe. Also er gibt nicht die Soll-Ausgabe zum Download, sondern das komplette Script.
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Lag wohl einfach am Übertragungsmodus, hab das erstmal sein lassen und weiter eingerichtet (FTP usw) und das ganze dann nochmal per FTP übertragen (vorher SFTP) und siehe da, es geht :)
Auf die schlaue Idee, mal ein Beispielscript aufm Server zu schreiben und aufzurufen kam ich auch erst heute früh