httpd-users mailing list archives

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

Hi all,
   I can call helloWorld, but not 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 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!)


     LoadModule cgi_module modules/

     <Directory />
         Options FollowSymLinks ExecCGI
         AllowOverride None

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


     print "Content-type:text/html\n\n"

     use CGI "standard";

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

     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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message