WAMP & Perl - Windows Apache, MySQL, PHP with CGI scripts written in Perl
I need Perl to run Blosxom, an open source and free CGI script to create blogs.
So I installed WAMP5 1.6.4a and ActivePerl 22.214.171.1247 with MSI installer.
I already have my site on my disk, so I told my site directory to WAMP during the setup procedure and then I pointed my browser to http://localhost/index.cgi but it displayed the cgi instead of executing it.
This is what I did to make it work:
- check if CGI module is loaded (click on WAMP icon in the systray, Apache modules and see if "cgi_module" is checked); if it's not, check it
<Directory "dir_of_my_site">section in httpd.conf. I have this:
<Directory "G:/mySite/www"> Options Indexes FollowSymLinks ExecCGI ... something else ... </Directory>
- check if this line
AddHandler cgi-script .cgiis uncommented
- restart Apache service (click WAMP icon, then Apache and Restart service)
- put in the first line of the cgi script the exact path where perl.exe is located. I installed ActivePerl in C:\Perl and perl.exe is in C:\Perl\bin: