Package: libhtml-mason-perl
Version: 1:1.39-1
Severity: normal

*** Please type your report below this line ***

Following the instructions in README.Debian, I got to this section:

    <LocationMatch "(\.m(html|txt|pl)|dhandler|autohandler)$">
        SetHandler perl-script
        PerlInitHandler Apache::Constants::NOT_FOUND
    </LocationMatch>

mod_perl2 doesn't have an Apache::Constants module. A google says I
should be using Apache2::Const::NOT_FOUND, but that one doesn't work
either (both return a 500 to the browser when I try to access a private
file)


This is what I get in error_log:
[Mon Jul 20 08:35:23 2009] [error] [client 192.168.1.9] failed to
resolve handler `Apache2::Const::NOT_FOUND': Can't locate
Apache2/Const/NOT_FOUND.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl . /etc/apache2) at (eval 40) line 3.\n


This is my apache config's mason part:
PerlModule HTML::Mason::ApacheHandler

PerlSetVar MasonAllowGlobals $dbh
PerlSetVar MasonEscapeFlags "h => \ \&HTML::Mason::Escapes::basic_html_escape"
PerlSetVar MasonArgsMethod mod_perl

PerlModule CGI
#PerlModule Apache2::Request
PerlModule Apache::DBI
PerlModule Apache2::Const
PerlModule Apache2::Cookie

# handle .html, .txt, .pl as mason
<LocationMatch "(\.html|\.txt|\.pl)$">
        SetHandler perl-script
        PerlHandler HTML::Mason::ApacheHandler
</LocationMatch>

# .mhtml etc "private files" => denied
<LocationMatch "(\.m(html|txt|pl)|dhandler|autohandler)$">
        SetHandler perl-script
        PerlInitHandler Apache2::Const::NOT_FOUND
</LocationMatch>

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libhtml-mason-perl depends on:
ii libcache-cache-perl 1.05-2 Managed caches of persistent infor ii libclass-container-perl 0.12-2 Glues object frameworks together t ii libexception-class-perl 1.24-1 a module that allows you to declar ii libhtml-parser-perl 3.56-1+b1 A collection of modules that parse ii libparams-validate-perl 0.91-2 validate parameters to Perl method ii perl 5.10.0-19 Larry Wall's Practical Extraction
ii  perl-base [libscalar-list-uti 5.10.0-19  minimal Perl system

Versions of packages libhtml-mason-perl recommends:
ii libapache2-mod-perl2 2.0.4-5 Integration of perl with the Apach

Versions of packages libhtml-mason-perl suggests:
pn  libhtml-mason-perl-doc        <none>     (no description available)
pn  speedy-cgi-perl | libfcgi-per <none>     (no description available)

-- no debconf information




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to