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 5.8.8.817 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
- add
ExeCGIto theOptionsline of<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 .cgi
is 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:
#!/Perl/bin/perl.exe
Posted by: Z24 | Sun, Sep 10 2006 |
Category: /configurations/windows |
Permanent link |
home
Tagged as: apache, bloxsom, configuration
http://www.mycomputingart.com/
To contact the webmaster and author write to: info<at>mycomputingart<dot>com
© mycomputingart.com, year(today()).


