Jump to content

configure cgi


jagguy

Recommended Posts

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.";
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.