Jump to content


Photo

configure cgi


  • Please log in to reply
1 reply to this topic

#1 jagguy

jagguy
  • Members
  • PipPipPip
  • Advanced Member
  • 226 posts

Posted 13 October 2006 - 07:28 AM

Hi,

I have apache 2.0.55 ,winxp and active perl 5.88.

The instructions for installing this on apache to run cgi scripts are confusing to say the least.

my http.conf has these changes to run cgi scrips on my c:/www/cgi-bin directory . It does run html/php no problems.

In httpd.conf I add

<Directory "C:/www/cgi-bin">
Options ExecCGI
AllowOverride None

</Directory>

AddHandler cgi-script .cgi .pl

I run the below file (which runs on the command line so perl is installed properly) and I get a 404 not found error on the webpage on http://localhost/cgi-bin/test.pl with the file in c:/www/cgi-bin

#!c:/perl/bin/perl.exe
print "Content-type: text/html\n\n";
print "Hello, World.";

#2 jagguy

jagguy
  • Members
  • PipPipPip
  • Advanced Member
  • 226 posts

Posted 14 October 2006 - 03:56 AM

I fixed it.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users