There are two good links about this topic:
Http://www.thesitewizard.com/archive/addcgitoapache.shtml http://www.thescripts.com/serveradministration/webservers/apache/virtual-hosting/app/Install_Apache_Web_Server_Perl_PHP_MySQL_on_Windows.html
Steps:
1. Installation of Apache + PHP is skipped there.
2. download ActivePerl-5.8.8.820-MSWin32-x86-274739.msi from ActiveState website. install step by step. it's recommended to install the ActivePerl into foler like C:/usr if you want to share the same Perl code on Windows and Linux/Unix. because you don't have to change the header of the perl file "#! /Usr/bin/Perl ".
3. Configure Apache to support perl cgi
If you don't want to be restricted to running CGI scripts within the ScriptAlias directory in your domain, and want CGI scripts to run anywhere in your domain, add the following line to your "httpd. conf "file.
Addhandler CGI-script. cgi
You can add it yourself manually, but since the default httpd. CONF file that is supplied by Apache already comes with that line commented out, the simplest thing wocould be to search for that string in your existing file, and remove the preceding comment character, that is, remove "#".
If you want the. pl extension recognized as a CGI script as well, simply append the extension to the list, as follows:
Addhandler CGI-script. cgi. pl
Next, search for the line that says "<directory/> In the file. It shoshould look something like this:
<Directory/>
Options followsymlinks
AllowOverride none
</Directory>
Add "+ execcgi" to the options list. The line now looks like this:
Options followsymlinks + execcgi
4. Create a test Perl page
#! /Usr/bin/perl
Print "Content-Type: text/html/n ";
Print "Hello PERL/N ";