
jon_the_eye
New User
Jul 15, 2010, 7:45 AM
Post #1 of 2
(33696 views)
|
Migrating from Linux to Windows and Handlers
|
Can't Post
|
|
Hi List My first post, so please excuse my ignorance. I am involved in a project to move a Linux hosted Apache/mod_perl site to a windows platform. The site concerned contains some strange "<[" code inside actual .html pages, which clearly need a handler to process them. I have got Apache/mod_perl working but I am have a real problem with a handler called "Tomahawk". The project itself seems to have disappeared- I think this the home page for the project, but even the download links are defunct. http://freshmeat.net/projects/tomahawk (Not to be confused with an Apache Tomahawk "My Faces" project) Here is my httpd.conf snippet: <VirtualHost 200.200.100.111:80> ServerName testsite DocumentRoot c:/inetpub/wwwroot/testsite Options FollowSymLinks ExecCGI PerlSetVar SiteName fashionpersonnel <Files ~ "\.html$"> SetHandler modperl PerlResponseHandler Tomahawk::Handler </Files> </VirtualHost> I wasn't sure where to move everything, so I moved the site to c:\inetpub\wwwroot\testsite and created "c:\inetpub\wwwroot\perl" and "c:\inetpub\wwwroot\perl_tgc" and copied the hander code in from the old site. there is a startup.pl file, in c:\inetpub\wwwroot\perl\ #! ./perl use strict; BEGIN { # use Apache2; use lib 'c:/inetpub/wwwroot/perl_tgc'; } use DBI; use CGI(); CGI->compile(); 1; This is what apache's error.log is saying. [Wed Jul 14 05:48:08 2010] [error] [client 200.200.100.111] failed to resolve handler `Tomahawk::Handler': Can't locate IO/All.pm in @INC (@INC contains: c:/inetpub/wwwroot/perl_tgc C:/Perl/site/lib C:/Perl/lib . C:/Program Files/Apache Software Foundation/Apache2.2) at c:/inetpub/wwwroot/perl_tgc/Tomahawk/Handler.pm line 23.\nBEGIN failed--compilation aborted at c:/inetpub/wwwroot/perl_tgc/Tomahawk/Handler.pm line 23.\nCompilation failed in require at (eval 17) line 3.\n, referer: http://200.200.100.111/welcome.html The line 23 in handler.pm reads use IO::All; There is an IO.pm file in c:\perl\lib (C:\perl is where I put ActivePerl 5.8) Any help, general pointers, would be very much appreciated. (For example, could I get <[ ]> working without Tomahawk) Jon
|