Thread Help with Mason configuration needed: by bob (1 answers)
Opened by Gast at 2005-02-03 18:49

Gast Gast
 2005-02-03 18:49
#30983 #30983
Please help to configurate Mason

I have:
1) Apache 2.0.49
1) mod_perl 1.99
2) Mason 1.28

httpd.conf
Code:

LoadModule perl_module /usr/lib/httpd/modules/mod_perl.so
LoadModule apreq_module /usr/lib/httpd/modules/mod_apreq.so

PerlRequire "/etc/httpd/conf/startup.pl"

PerlModule HTML::Mason::ApacheHandler
PerlModule Apache2
PerlModule Apache:compat
PerlModule Apache::DBI
PerlModule DBI
PerlSetVar MasonArgsMethod CGI

<LocationMatch "\.html$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</LocationMatch>

startup.pl

#!/usr/bin/perl

usr Apache2 ();
use Apache::compat ();
use ModPerl::Util ();
use Apache::RequestRec ();
use Apache::RequestUtil ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();
use CGI ();
use APR::Table ();
use ModPerl::Registry ();
use Apache::Const -compile => ':common';
use APR::Const -compile => ':common';

1;

QUESTION

1) I think there is no full mod_perl because of "PerlSetVar MasonArgsMethod CGI" and there is nothing in ENV{MOD_PERL}, how to configure it ?

2) I can`t work with DBI, usual *.pl scrupts connect to mysql and everything is ok, but in Mason`s *.html files there is nothing (no errors, just don`t want to load). What should I do ?


Thank you VERY much!

View full thread Help with Mason configuration needed: by bob