Hello all,

I'm in the process of installing mod_perl and HTML::Mason on my Win2K Workstation, and I have ActiveState Perl 5.8.8 (build 519) and Apache 2.2.23 installed.

To enable mod_perl and the Mason handler, I have added this code to httpd.conf:

LoadModule perl_module modules/mod_perl.so PerlModule HTML::Mason::ApacheHandler <Location /> SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler </Location>

Unfortunately, when I attempt to start Apache, Apache complains that the operation has failed. An Apache configfile test confirms that my httpd.conf is valid. A glance at the httpd error log reveals:

[Thu Nov 02 10:09:15 2006] [error] Can't load Perl module HTML::Mason: +:ApacheHandler for server 127.0.0.1, exiting...

So then I locate the HTML::Mason::ApacheHandler and compile it (via `perl -c ApacheHandler.pm`) and get this response:

Can't locate Apache/Constants.pm in @INC (@INC contains: C:/Perl/site/ +lib C:/Perl/lib .) at ApacheHandler.pm line 13. BEGIN failed--compilation aborted at ApacheHandler.pm line 13.

Sure enough, Apache/Constants.pm does not exist, although there is an Apache2/Const.pm module.

I have searched PM and Google for a workaround for the missing/misplaced module, but was unable to find what I was looking for.

Could someone please provide an explanation of why this has happened, and what the appropriate fix action would be?

-Update-

Ack! It appears that I have version incompatabilities. I mistakenly thought I had installed mod_perl 2.0, but ActiveState only provides v1.27 -- this explains much.

Is there a mod_perl 2.0 port available for Win32?

Regards,

Jim

Where do you want *them* to go today?

In reply to ApacheHandler Tries to Access Missing Apache::Constants Module by thezip

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.