httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mary Anderson" <mfander...@ucdavis.edu>
Subject [users@httpd] Calling .pl file with Apache, Windows XP, file1.pl works, file2.pl doesn't
Date Wed, 22 Feb 2006 19:38:03 GMT

Hi all,
   I can call helloWorld, but not SampleEntry.pl.  SampleEntry.pl was
working with my newly configured apache just fine last night.  But I 
somehow lost the configuration and have tried to reconstruct it.
    I think it may be a Windows oddity.  Both helloWorld and 
SampleEntry.pl are known to be PL files by the operating system -- both 
come up with the little lizard icon and are described as PL files.  But 
helloWorld is not displaying the .pl extension, and SampleEntry is.  (I 
forced it to while trying to get this to work!)

http.conf

     LoadModule cgi_module modules/mod_cgi.so

     <Directory />
         Options FollowSymLinks ExecCGI
         AllowOverride None
     </Directory>

     <Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
         AllowOverride None
         Options FollowSymLinks ExecCGI
         Order allow,deny
         Allow from all
     </Directory>
     AddHandler cgi-script .cgi .pl 
     ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-
bin/" 

helloWorld 

     #!C:/perl/bin/perl.exe
     print "Content-type:text/html\n\n"

     use CGI "standard";

     print start_html;
     print header;
     print "Hello, world!";
     print hr;
     print end_html

SampleEntry.pl

     #!C:\perl\bin\perl.exe
     print "Content-type:text/html\n\n";#I really don't want this line, 
but it seemed necessary to run the program.

     use strict;
     use CGI qw/:standard :html3/;
     use CGI::Carp('fatalsToBrowser', 'warningsToBrowser');
     print start_html;
     print header;

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message