[rt-users] HTML Mason Problem

request_tracker at acerhomes.com request_tracker at acerhomes.com
Wed Sep 17 07:49:36 EDT 2003


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: [FAILED]
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...!
[FAILED]

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>
</VirtualHost>


Pls. help.


Previous message -------

Author: Mohammed Ersan
Date: 2003-04-27 00:02 UTC
To: rt-users

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
</Location>


I get this error:
[root at 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 at 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...








>From: "Ray Walters" <ray.walters at kiffanalytical.com>
>To: "'Kelly F. Hickel'" <kfh at mqsoftware.com>
>CC: <rt-users at lists.fsck.com>
>Subject: RE: [rt-users] Newbie - Apache error
>Date: Fri, 25 Apr 2003 09:36:13 -0700

>
>I got RT 3.0.1 working with Apache2 and mod_perl 1.99. I used the conf
>file
>recommended here:
>
>
>
>http://lists.fsck.com/pipermail/rt-devel/2002-November/002769.html
>
>
>
>The recommended conf file is:
>
>
>
> <VirtualHost your.ip.address>
> DocumentRoot /path/to/rt3/share/html
> ServerName your.rt.server.hostname
>
> PerlFreshRestart On # only for Apache/mod_perl 1.x
> PerlModule Apache2 Apache::compat # only for Apache/mod_perl 2.x
>
> PerlModule Apache::DBI
> PerlRequire /path/to/rt3/bin/webmux.pl
>
> <FilesMatch "\.html$">
> SetHandler perl-script
> PerlHandler RT::Mason
> </FilesMatch>
> <LocationMatch "/Attachment/">
> SetHandler perl-script
> PerlHanler RT::Mason
> </LocationMatch>
> </VirtualHost>
>
>
>
>
>
>This solved my problems.
>
>
>
>Ray
>
>
>
>-----Original Message-----
>From: rt-users-admin at lists.fsck.com [mailto:rt-users-admin at lists.fsck.com]
>On Behalf Of Kelly F. Hickel
>Sent: Friday, April 25, 2003 8:47 AM
>To: Oscar Arranz; rt-users at lists.fsck.com
>Subject: RE: [rt-users] Newbie - Apache error
>
>
>
> I had the same problem, and was told that RedHat 8 came with apache 2,
>and
>that RT didn't work with Apache 2. I end up going out and getting the
>latest apache 1 source and building it.
>
>-Kelly Hickel
>
>
>
>-----Original Message-----
>From: Oscar Arranz [mailto:oscar at e-milio.com]
>Sent: Friday, April 25, 2003 10:44 AM
>To: rt-users at lists.fsck.com
>Subject: Re: [rt-users] Newbie - Apache error
>
>
>
>Thanks Roger, it worked. But now when I enter my username and password it
>says: "Your username or password is incorrect". I have checked the
>usernames
>in the database rt3, table Users and I'm writing the right values... I
>don't
>know what's happening and nothing is showed in the log files.
>
>Regards,
>Oscar
>
>Spencer, Roger wrote:
>
>Had the same problem on the same platform. If you specify the exact url,
>you probably will get a response, i.e. /index.html.
>
>
>
>Downgrading to apache to 1.3 and mod_perl 1 corrected the problem.
>
>
>
>
>
>-----Original Message-----
>From: Oscar Arranz [mailto:oscar at e-milio.com]
>Sent: Friday, April 25, 2003 5:43 AM
>To: rt-users at lists.fsck.com
>Subject: [rt-users] Newbie - Apache error
>
>
>
>Hi all,
>
> I have installed RT 3 in a linux Red Hat 8 using mysql and this
>apache
>configuration:
>
> Apache/2.0.45 (Unix) mod_perl/1.99_08 Perl/v5.8.0 Server at
>192.168.0.10 Port 8080
>
> When I connect to the URL http://192.168.0.10:8080 I get a 404 error
>(Page not found). The apache error log has the following line:
>
> [error] [client 192.168.0.11] Attempt to serve directory:
>/opt/rt3/share/html/
>
> The directory exists and has read permission for everybody.
>
> What could be happening?
>
>Thanks,
>Oscar
>
>_______________________________________________ rt-users mailing list
>rt-users at lists.fsck.com http://lists.fsck.com/mailman/listinfo/rt-users
>Have
>you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>
>
>
>_______________________________________________ rt-users mailing list
>rt-users at lists.fsck.com http://lists.fsck.com/mailman/listinfo/rt-users
>Have
>you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm






More information about the rt-users mailing list