This question is not strictly Perl related as far as I know, but I don't know who else to turn to. Also, as far as I know, this question has already been answered, if so, I'm sorry but I wasn't able to find it.

I am attempting to use HTML::Mason on a school project, however I don't have acess to mod_perl (can't seem to get it to install on Win32), so I'm falling back on HTML::Mason::CGIHandler. The problem is that while I have followed the instructions in the CGIHandler docs, it doesn't seem to be using the handler script. Below is any information I think may be important... I don't know what else to try since I don't work directaly with Apache too often.

Running Win32 (Win98SE), I'm not sure of the apache version ATM. I'll post it when I get home (posting from school)

Action html-mason /cgi-bin/mason_handler.cgi placed into httpd.conf

Placed into .htaccess

<FilesMatch "\.html$"> SetHandler html-mason </FilesMatch>

mason_handler.cgi
#!perl use HTML::Mason::CGIHandler; warn("Used CGIHandler!"); my $h = new HTML::Mason::CGIHandler ( allow_globals => [qw(%session $u)], ); $h->handle_request;

The warning in the above code never shows up, so I have to guess for now that the problem lies with Apache, but what did I do wrong?

Thanks in advance





My code doesn't have bugs, it just develops random features.

Flame ~ Lead Programmer: GMS | GMS


In reply to Apache and HTML::Mason::CGIHandler, Not being called? by Flame

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.