HTML Mason Problem

Hi everybody!

I encounter this same problem. I try everything I found on this mailing
list but the same problem. I also install HTML::Mason 1.23

This is the message :

Stopping httpd: e[60G[e[0;31mFAILEDe[0;39m]
Starting httpd: [Wed Sep 17 11:21:33 2003] [error] Bareword “REDIRECT” not
allowed while “strict subs” in use at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 188.!BEGIN
not safe after errors–compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line
197.!Compilation failed in require at /opt/rt3/bin/webmux.pl line
58.!BEGIN failed–compilation aborted at /opt/rt3/bin/webmux.pl line
64.!Compilation failed in require at (eval 2) line 1.!
[Wed Sep 17 11:21:33 2003] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server server2.acerhomes.com:0, exiting…!
e[60G[e[0;31mFAILEDe[0;39m]

This is the output when I issue the test dependencies (mysql, modperl1)

perl:
5.8.0…found
MASON dependencies:
Params::Validate 0.02…found
Cache::Cache …found
Exception::Class …found
HTML::Mason 1.16…found
MLDBM …found
Errno …found
FreezeThaw …found
Digest::MD5 2.27…found
CGI::Cookie 1.20…found
Storable …found
Apache::Session 1.53…found
MAILGATE dependencies:
HTML::TreeBuilder …found
HTML::FormatText …found
Getopt::Long …found
LWP::UserAgent …found
MODPERL1 dependencies:
CGI …found
Apache::Request …found
Apache::DBI 0.92…found
CLI dependencies:
Getopt::Long 2.24…found
CORE dependencies:
Digest::MD5 2.27…found
DBI 1.37…found
Test::Inline …found
Class::ReturnValue 0.40…found
DBIx::SearchBuilder 0.92…found
Text::Template …found
File::Spec 0.8…found
HTML::Entities …found
Net::Domain …found
Log::Dispatch 2.0…found
Locale::Maketext 1.06…found
Locale::Maketext::Lexicon 0.25…found
Locale::Maketext::Fuzzy …found
MIME::Entity 5.108…found
Mail::Mailer 1.57…found
Net::SMTP …found
Text::Wrapper …found
Time::ParseDate …found
File::Temp …found
Term::ReadKey …found
Text::Autoformat …found
Text::Quoted …found
DEV dependencies:
Regexp::Common …found
Time::HiRes …found
Test::Inline …found
WWW::Mechanize …found
MYSQL dependencies:
DBD::mysql 2.1018…found

Then my httpd.conf

<VirtualHost 10.0.0.10> # my private IP
ServerName server2.test.com
DocumentRoot /opt/rt3/share/html
RedirectMatch permanent (.*)/$ http://server2$1/index.html
AddDefaultCharset UTF-8

# PerlFreshRestart On	# for mod_perl 1.x   <---this doesn't work
# PerModule Apache2 Apache::compat	# for mod_perl 2.x

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

<FilesMatch "\.html$">
	SetHandler perl-script
	PerlHandler RT::Mason
</FilesMatch>
<Location "/Attachment/">
	SetHandler perl-script
	PerlHandler RT::Mason
</Location>

Pls. help.

Previous message -------

Author: Mohammed Ersan

Hi,
I have been trying to get RT3 runing with Apache2 for some time now, now
in the final steps, when I reached the point to start Apache using this
config:

DocumentRoot “/usr/local/apache2/htdocs”
Alias /rt /opt/rt3/share/html

AddDefaultCharset UTF-8
PerlModule Apache2 Apache::compat

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
<Location /rt>
SetHandler perl-script
PerlHandler RT::Mason

I get this error:
[root@lanserver2 conf]# …/bin/apachectl start
[Sun Apr 27 19:53:33 2003] [error] Bareword “REDIRECT” not allowed while
“strict subs” in use at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 188.
BEGIN not safe after errors–compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 197.
Compilation failed in require at /opt/rt3/bin/webmux.pl line 45.
BEGIN failed–compilation aborted at /opt/rt3/bin/webmux.pl line 51.
Compilation failed in require at (eval 1) line 1.

[Sun Apr 27 19:53:33 2003] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server lanserver2:0, exiting…

[root@lanserver2 conf]#

Its running on RH 8.0/PG DB/perl, v5.8.0 built for
i386-linux-thread-multi/ Compiled RT3 with modperl2.

What might be the problem …is it the perl modules ? I tried to recompile
and install them again, still the same problem. Given that the
test-dependcies script says that all is OK.

Thanks…