Apache SUSE 7.1 cgi-bi

Post Reply
Message
Author
Marc

Apache SUSE 7.1 cgi-bi

#1 Post by Marc »

Hallo Zusammen.
Mir geling est nicht unter Apache ein Perl script zum laufen zu bringen.
Wer hat die erfahrung auch schon mit SUSE 7.1 gemacht ?
Wer Kann mir helfen:

-Anhang:

-Fehlermeldung:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@192.168.0.102 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/1.3.14 Server at 192.168.0.102 Port 80

-Programm: chmod +x tst.cgi, habe ich nicht vergessen.
#!/usr/bin/perl
print "test";

-Aufruf:
http://192.168.0.101/cgi-bin/tst.cgi

Leider habe ich kein erfolg bitte helft mir.

Sebastian Ude

Re: Apache SUSE 7.1 cgi-bi

#2 Post by Sebastian Ude »

Wie der Apache ja schon richtigerweise gesagt hat, "More information about this error may be available in the server error log".

Was steht denn da (also in /var/log/httpd*) ?

Marc

Re: Apache SUSE 7.1 cgi-bi

#3 Post by Marc »

HY
Auszug aus dem /var/log/httpd/error_log:

[Sun Mar 11 13:36:27 2001] [error] [client 192.168.0.107] malformed header from script. Bad header=Marc Peter: /usr/local/httpd/cgi-bin/marc.cgi

Verstehe ich nicht mein header ist ja #!/usr/bin/perl und vond der Kommando zeile funzt es auch.

Gruss Marc

Daniel Wilhelm

Re: Apache SUSE 7.1 cgi-bi

#4 Post by Daniel Wilhelm »

Hallo !

Ich habe im übrigen genau die selben Probleme mit dem cgi scripten !

Willi ...

hugenay

Re: Apache SUSE 7.1 cgi-bi

#5 Post by hugenay »

der browser will ja was zurück haben! das piselige "test" ist für den browser nen bischen dünn. da musste schon ne richtige html seite zurückliefern. rufe entweder ein einfache seite auf, die dann aber unter ../htdocs liegt. oder gib direkt eine mit print "<html>"; print "<head>" etc. aus. (dafür gibts sogar ein perl-modul).
sonst macht das wenig sinn!
achja und strikt trennen: also skripte in ../cgi und html-text, jpgs und flash, auch wenn vom skript aufgerufen, in ../htdocs.

Post Reply