[users@httpd] Need help getting perl/cgi to work with Windows apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
   I pulled a tutorial off the web.  It told me to edit the httpd 
configure file as follows:

    <directory \>
        Options ...
        ExecCGI...


     AddHandler cgi-script  .cgi .pl

With these changes I can run the following file

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

just fine.  What I cannot do is to run the file

#!C:/perl/bin/perl.exe
use CGI "standard";
print start_html;
print header;
print "hello world!";
print end_html;

This file runs ok under perl, just not apache.
When I set everythin up under IIS on my office computer, there was a step
I had to take which told the browser what to do with a .pl file.  I think 
that step was missing from my tutorial.

Any help is appreciated.

Mary Anderson



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux