cgi prob

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: David A. Sinck
日付:  
題目: cgi prob

\_ SMTP quoth Mike Starke on 6/30/2003 17:01 as having spake thusly:
\_
\_ Any tips on why this cgi script will not work?
\_ 
\_ First of all:
\_ 1. chmod 777 test,cgi (i know this is bad)
\_ 2. placed in 
\_    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
\_ 3. I get the following in the log file:
\_    [Mon Jun 30 06:53:06 2003] [error] [client 192.168.3.1] Premature end of script headers: /cgi-bin/test.cgi
\_ 4. 'perl -c test,cgi' works OK
\_ 5. 'perl test.cgi' spits out the correct html.
\_ ----------------------------------------------------
\_ #! /usr/bin/perl -w
\_ 
\_ use strict;
\_ use CGI qw(:standard);
\_ use CGI::Carp qw(fatalsToBrowser);
\_ 
\_ 
\_ print header, start_html, h1("hello world"), end_html;
\_ ------------------------------------------------------


Is there a space between "#!" and "/usr" ?

Is suexec biting you somehow?

David