Ulf Rasch wrote:
peter thesing wrote:
Hi All
I am trying to run the simplest of perl scripts. However when in Internet Explorer as in Mozilla as in Firefox i always get the same error message http://peterspretpaleis.dyndns.org:8000/cgi-bin/guestbook.cgi Premature end of script headers: guestbook.cgi
the contens of this script is
#!/usr/bin/perl print ?Content-type: text/html\n\n?; print ?< html> ?; print ?< body> ?; print ?< h2> I just wrote my first web page using Perl!< /h2> ?; print ?< /body> ?; print ?< /html> ?;
http://www.novell.com/coolsolutions/feature/11790.html
and perl finds the syntax ok
can someone shed some light on this or direct me to a place where i might find the answer?
I think it would be nice to use perl with apache2 or even create my own perl scripts
Thanx for your reply
You should have a look at the apache log files in /var/log/apache2 Look for error_log and access_log. There you should find the answer.
Ulf
Hi from error_log [Fri Sep 30 19:32:50 2005] [error] [client 194.109.22.149] Premature end of script headers: guestbook.cgi still it gives the same error message but no answers from acces_log peter:/var/log/apache2 # tail -f access_log | grep guestbook.cgi 10.0.0.157 - - [30/Sep/2005:19:08:50 +0200] "GET /cgi-bin/guestbook.cgi HTTP/1.1 " 500 1005 "-" "Mozilla/5.0 (Windows; U; Win98; nl-NL; rv:1.7.10) Gecko/20050717 the file is found but not executed sorry to say but can someone help me to find the answer? thanx