> 
> In a nutshell, I just can't seem to get CGI/perl scripts to run from the
> Apache server on an intranet.  I've tried just about every combination of
> settings in the various files in /etc/httpd/conf except the one(s) that
> work.  The test script is very simple:
> 
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> print "<p>Yea!  It Worked!!!!</p>\n";

I think it's your script.  You are not generating valid HTML.
Try:
 #!/usr/bin/perl
 print "Content-type: text/html\n\n";
 print "<HTML><HEAD><TITLE>CGI Demo</TITLE></HEAD>\n";
 print "<p>Yea!  It Worked!!!!</p>\n";
 print "</HTML>\n";


See http://gtoft.dyn.ml.org/cgi-bin/baseball-init  for a working
example.  I'm using the bash shell for this.  Source code is at
http://gtoft.dyn.ml.org/is-612/cgi-src/baseball-init  and
http://gtoft.dyn.ml.org/is-612/cgi-src/baseball-lookup .

Good luck.

George


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to